Open OttoAllmendinger opened 5 years ago
I'd propose to do deserialization with the wire
package from btcd. Have been using this without problems for the last few month.
I'd use defined types for the channels. Transaction
and Block
similar to:
Transaction
: wire.MsgTx
and a fee as int64
(maybe embedd wire.MsgTx
)Block
: wire.MsgBlock
Implemented in https://github.com/0xB10C/bademeister-go/pull/14
hashtx
rawblock
TODO:
vsize
rawblock
- receive, parse extended notification containing
vsize
vsize
) to the database
rawtx
messages, deserialize and put into go channelrawblock
messages, deserialize and put into go channelwe could have multiple concurrent backends in the future (multiple nodes, other instances of bademeister)