You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@davecgh I have two bitcoind nodes in regtest mode, both connecting with each other locally. I am using rpcclient to get the information about block with GetBlockVerbose command.
I caused chain reorganisation by removing the data directory and restarting one of the nodes, this caused bitcoind to return -1 in confirmation number, which caused GetBlockVerbose fail with json: cannot unmarshal number -1 into Go struct field GetBlockVerboseResult.confirmations of type uint64.
Do you think that we could change uint64 to int64, to avoid such error, so that I could handle chain reorganisation properly in my service?
The text was updated successfully, but these errors were encountered:
@davecgh I have two
bitcoind
nodes inregtest
mode, both connecting with each other locally. I am usingrpcclient
to get the information about block withGetBlockVerbose
command.I caused chain reorganisation by removing the data directory and restarting one of the nodes, this caused
bitcoind
to return-1
in confirmation number, which causedGetBlockVerbose
fail withjson: cannot unmarshal number -1 into Go struct field GetBlockVerboseResult.confirmations of type uint64
.Do you think that we could change
uint64
toint64
, to avoid such error, so that I could handle chain reorganisation properly in my service?The text was updated successfully, but these errors were encountered: