message_inv = pack.ComposedType([
('invs', pack.ListType(pack.ComposedType([
- ('type', pack.EnumType(pack.IntType(32), {'tx': 1, 'block': 2})),
+ ('type', pack.EnumType(pack.IntType(32), {1: 'tx', 2: 'block'})),
('hash', pack.IntType(256)),
]))),
])
message_getdata = pack.ComposedType([
('requests', pack.ListType(pack.ComposedType([
- ('type', pack.EnumType(pack.IntType(32), {'tx': 1, 'block': 2})),
+ ('type', pack.EnumType(pack.IntType(32), {1: 'tx', 2: 'block'})),
('hash', pack.IntType(256)),
]))),
])