-
Notifications
You must be signed in to change notification settings - Fork 411
script: add and default to SIGHASH_ALL_WITH_RANGEPROOF for pre-taproot signing #1584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
529eaa1
6a531c2
be15b06
2d625d4
e5bd24e
fbd9fb1
eedea3c
897fdc8
bbb1f5a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -702,6 +702,7 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati | |
| OutputType TransactionChangeType(const std::optional<OutputType>& change_type, const std::vector<CRecipient>& vecSend) const; | ||
|
|
||
| /** Fetch the inputs and sign with SIGHASH_ALL. */ | ||
| // ELEMENTS: sign with SIGHASH_ALL_WITH_RANGEPROOF for DynaFed chains | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor nit: this comment seems to contradict the one above
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, I thought to leave the original comment and just add an Elements specific one. Less merge conflicts, and the Elements line is only true for DynaFed chains.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, better for future merges. |
||
| bool SignTransaction(CMutableTransaction& tx) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||
| /** Sign the tx given the input coins and sighash. */ | ||
| bool SignTransaction(CMutableTransaction& tx, const std::map<COutPoint, Coin>& coins, int sighash, std::map<int, bilingual_str>& input_errors) const; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include <bitcoin-build-config.h> // IWYU pragma: keepat top for linter