gen_tx for signing transactions

This commit is contained in:
Jae Kwon
2014-12-31 22:13:49 -08:00
parent 8a18a11431
commit 2fd137d9e5
10 changed files with 150 additions and 24 deletions

View File

@ -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 {