]> Git Repo - VerusCoin.git/commit
Auto merge of #3520 - Eirik0:3327-sign-offline, r=bitcartel
authorHomu <[email protected]>
Wed, 19 Sep 2018 22:02:52 +0000 (15:02 -0700)
committerHomu <[email protected]>
Wed, 19 Sep 2018 22:02:52 +0000 (15:02 -0700)
commit36243f41f1d8df98bdc834825ba539263f1da121
treef628136f05bfc78e39fff60e97ded0314eb20d27
parent25c3f903c1bd643fc3243cd401038074abb74fb8
parentc10249f3ded369a1926fd5dbe2a3d74794a898e6
Auto merge of #3520 - Eirik0:3327-sign-offline, r=bitcartel

Fix signing raw transactions with unsynced offline nodes

This PR address the issue in two different ways:

- In `signrawtransaction` we determine the consensus branch ID (which we then later use to construct the transaction) using the chain height. We now also consider the `APPROX_RELEASE_HEIGHT` as this is a better estimation than 0 for the height of the chain if we are unsynced. (This in and of itself solves the Overwinter signing issue).
- We have added an additional parameter to `signrawtransaction` to allow manually overriding the consensus branch ID that zcashd determines we are on. This allows users to work around corner cases where the first strategy is still insufficient.

Closes #3327.
qa/pull-tester/rpc-tests.sh
src/consensus/upgrades.cpp
src/consensus/upgrades.h
src/rpc/rawtransaction.cpp
This page took 0.029598 seconds and 4 git commands to generate.