Add Transakcio block&batch txs generationfrom code

This commit is contained in:
arnaucube
2020-10-07 17:21:02 +02:00
parent 182e3d36f5
commit b40bccfc00
7 changed files with 437 additions and 181 deletions

View File

@@ -80,11 +80,16 @@ func Warn(args ...interface{}) {
log.Warn(args...)
}
// Error calls log.Error and stores the error message into the ErrorFile
// Error calls log.Error
func Error(args ...interface{}) {
log.Error(args...)
}
// Fatal calls log.Fatal
func Fatal(args ...interface{}) {
log.Fatal(args...)
}
// Debugf calls log.Debugf
func Debugf(template string, args ...interface{}) {
log.Debugf(template, args...)
@@ -100,6 +105,11 @@ func Warnf(template string, args ...interface{}) {
log.Warnf(template, args...)
}
// Fatalf calls log.Warnf
func Fatalf(template string, args ...interface{}) {
log.Fatalf(template, args...)
}
// Errorf calls log.Errorf and stores the error message into the ErrorFile
func Errorf(template string, args ...interface{}) {
log.Errorf(template, args...)
@@ -120,7 +130,12 @@ func Warnw(template string, kv ...interface{}) {
log.Warnw(template, kv...)
}
// Errorw calls log.Errorw and stores the error message into the ErrorFile
// Errorw calls log.Errorw
func Errorw(template string, kv ...interface{}) {
log.Errorw(template, kv...)
log.Fatalw(template, kv...)
}
// Fatalw calls log.Fatalw
func Fatalw(template string, kv ...interface{}) {
log.Fatalw(template, kv...)
}