mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-03 06:37:14 +00:00
gen_tx for signing transactions
This commit is contained in:
@@ -12,6 +12,7 @@ func init() {
|
||||
log.SetHandler(
|
||||
log15.LvlFilterHandler(
|
||||
log15.LvlWarn,
|
||||
//log15.LvlDebug,
|
||||
log15.StreamHandler(os.Stderr, log15.LogfmtFormat()),
|
||||
),
|
||||
)
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ func RegisterType(info *TypeInfo) *TypeInfo {
|
||||
typeInfos[ptrRt] = info
|
||||
|
||||
// See if the type implements HasTypeByte
|
||||
if rt.Implements(reflect.TypeOf((*HasTypeByte)(nil)).Elem()) {
|
||||
if rt.Kind() != reflect.Interface && rt.Implements(reflect.TypeOf((*HasTypeByte)(nil)).Elem()) {
|
||||
zero := reflect.Zero(rt)
|
||||
typeByte := zero.Interface().(HasTypeByte).TypeByte()
|
||||
if info.HasTypeByte && info.TypeByte != typeByte {
|
||||
|
||||
Reference in New Issue
Block a user