-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add segwit support to the BTC wallet #4568
Merged
sqrrm
merged 30 commits into
bisq-network:release/v1.4.0
from
oscarguindzberg:segwitWallet
Oct 8, 2020
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
f13a7b1
Create a P2WPKH keychain for new btc wallets
oscarguindzberg cd28660
Add a P2WPKH keychain for existing wallets
oscarguindzberg ced357c
AddressEntry: Add boolean segwit flag
oscarguindzberg e85c66b
Stop using LegacyAddress for btc addresses
oscarguindzberg 0c7f345
Fix log msg in BtcCoinSelector
oscarguindzberg 0f4c66f
Comment out segwit BSQ account path
oscarguindzberg 2551571
TradeWalletService: adapt to segwit wallet
oscarguindzberg d8b7557
WalletService: adapt to segwit wallet
oscarguindzberg a370848
New AddressEntry: use different script types
oscarguindzberg a9cc28f
AddressEntryList: arbitrator entry use P2PKH
oscarguindzberg f9f5d92
Add segwit/legacy checbox for address creation
oscarguindzberg 1f3c585
Serialize tx without segwit
oscarguindzberg 58afc00
Don't create an extra address at startup
oscarguindzberg e2f74f0
Don't create a wallet address when not needed
oscarguindzberg d1aeedd
Remove unused WalletService.findKeyFromPubKeyHash()
oscarguindzberg 78a2a43
Remove unused import
oscarguindzberg 01455d2
Enable reusing unused AVAILABLE entries
oscarguindzberg 4a2c0ad
Make codacy happy
oscarguindzberg 86ddd06
Validate AddressEntry.segwit
oscarguindzberg b9e404f
Make it clear segwit is not used for the trade protocol yet.
oscarguindzberg 5524ba3
BtcWalletService.getFreshAddressEntry(): code clean up
oscarguindzberg d1aaf3e
Construct dummy outputs with LegacyAddress
oscarguindzberg 3554e19
setWitness(): Code clean up
oscarguindzberg 499d7b7
Use try-with-resources
oscarguindzberg 1d82c01
Improve error handling for P2WPKH
oscarguindzberg 694446c
Switch back to LegacyAddress for fee estimation
oscarguindzberg a747e83
Fix add segwit keychain for encrypted wallet
oscarguindzberg 417daf5
Use bitcoinj 0.15.8 (commit a733034)
oscarguindzberg 87da2ae
Do a backup of the wallet before segwit migration
oscarguindzberg 261e0ec
Check migratedWalletToSegwit is true
oscarguindzberg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think we should add a
if(newValue)
to make it more clear/safe. As we change only once from false to true it would not matter but feels more correct.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.
Fixed 261e0ec