mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
signblock: use blockheader hash not entire serialized block
This commit is contained in:
parent
1648fb9488
commit
4d249f3521
1 changed files with 1 additions and 1 deletions
|
|
@ -3937,7 +3937,7 @@ UniValue signblock(const JSONRPCRequest& request)
|
|||
|
||||
// Expose SignatureData internals in return value in lieu of "Partially Signed Bitcoin Blocks"
|
||||
SignatureData block_sigs;
|
||||
GenericSignScript(*pwallet, block, block.proof.challenge, block_sigs);
|
||||
GenericSignScript(*pwallet, block.GetBlockHeader(), block.proof.challenge, block_sigs);
|
||||
|
||||
// Error if sig data didn't "grow"
|
||||
if (!block_sigs.complete && block_sigs.signatures.empty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue