1
2
I'm using bitcoind's JSONRPC interface to get transaction information for my wallet, specifically, I'm running a little script every time a block gets broadcast (using -blocknotify) which calls the getrawtransaction method to get the parsed raw transaction.
Among the fields returned by getrawtransaction we have confirmations, but what does this field contain during a fork? Ie. if one were to call the getrawtransaction method when there are two "current" blocks, what would this field contain? (bare in mind that in case of a fork, one of the two "current" blocks may include a transaction while the other may not).