Closed Zshan0 closed 2 years ago
Keeping the sighash_type
as SigHashType::All
was throwing an error:
Error while updating tip: \'Bitcoind server error: RPC error response: RpcError { code: -1, message: "SIGHASH_ALL is not a valid sighash parameter.", data: None }\''
After looking at cljdocs I changed the value to "ALL"
and the tests passed locally. I was not able to find the correct Macro for it, please let me know if there are any more changes required.
Since the Bitcoin Core ignores the sighash type specified inside the PSBT inputs,
sign_psbt
relied on the default value ofsighash_type
which aligned with our requirements. https://github.com/bitcoin/bitcoin/pull/22514 changed the default value fromSIGHASH_ALL
toSIGHASH_DEFAULT
. Makingsighash_type
explicit fixes the minor breaking change caused by the update in the bitcoin wallet. Note that sincesighashtype
parameter comes after thesign
parameter, the value ofsign
has been set to the default value,true
.Along with the fix,
bitcoind
version used in CI has been bumped from22.0
to23.0
.This issue closes #414.