Summary
Add tbcapi-block-by-hash and tbcapi-block-by-hash-raw commands to TBC RPC.
Additionally, use chainhash.Hash for all hashes in RPC.
Closes #219
Changes
Add tbcapi-block-by-hash and tbcapi-block-by-hash-raw commands to TBC RPC, these commands can be used to retrieve blocks by their hash.
Use chainhash.Hash instead of api.ByteSlice for hashes in RPC. This is a breaking change. Raw RPC calls must now provide hashes in display-order as well.
Summary Add
tbcapi-block-by-hash
andtbcapi-block-by-hash-raw
commands to TBC RPC. Additionally, usechainhash.Hash
for all hashes in RPC.Closes #219
Changes
tbcapi-block-by-hash
andtbcapi-block-by-hash-raw
commands to TBC RPC, these commands can be used to retrieve blocks by their hash.chainhash.Hash
instead ofapi.ByteSlice
for hashes in RPC. This is a breaking change. Raw RPC calls must now provide hashes in display-order as well.Utxo
asUTXO
consistently in thetbcapi
package. Initialisms should be all uppercase, per https://go.dev/wiki/CodeReviewComments#initialisms