aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.h
diff options
context:
space:
mode:
authorAdam Stein <adaminsky@gmail.com>2020-08-02 00:53:41 -0700
committerAdam Stein <adaminsky@gmail.com>2020-08-12 15:16:22 -0700
commitc133cdcdc3397a734d57e05494682bf9bf6f4c15 (patch)
tree30d186332c06ca9d17cd54dae5f7f179034df849 /src/protocol.h
parent007e15dcd7f8b42501e31cc36343655c53027077 (diff)
Cap listsinceblock target_confirmations param
Previously, listsinceblock would fail with error code -1 when the target_confirmations exceeded the number of confirmations of the genesis block. This commit allows target_confirmations to refer to a lastblock hash with more confirmations than exist in the chain by setting the lastblock hash to the genesis hash in this case. This allows for `listsinceblock "" 6` to not fail if the block count is less than 5 which may happen on regtest. Includes update to the functional test for listsinceblock to test for this case.
Diffstat (limited to 'src/protocol.h')
0 files changed, 0 insertions, 0 deletions