-
Notifications
You must be signed in to change notification settings - Fork 1k
Onchaind replay different txs #1171
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
Merged
cdecker
merged 17 commits into
ElementsProject:master
from
rustyrussell:onchaind-replay-different-txs
Mar 7, 2018
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
5bb1c2f
lightningd: don't discard const in get_chainparams().
rustyrussell 419f902
Makefile: add COMPAT_V052 define.
rustyrussell d86a881
Travis: do test build without compat defined.
rustyrussell b84d8ba
wallet: wrap missing last_processed_block handling in COMPAT_V052.
rustyrussell 2a3d439
pay: wrap missing route_channels handling in COMPAT_V052.
rustyrussell 5044f90
txfilter: clean up prototypes.
rustyrussell 958dcd1
wallet: add check-source to makefile.
rustyrussell cd1b165
channel: reserve a bip32 index as soon as channel is opened.
rustyrussell d5c8fa6
db: migrate old shutdown_keyidx_local -1 values onto key 0.
rustyrussell 6e4eb65
onchaind: don't require an exact match for proposals.
rustyrussell 16ed504
test_lightningd.py: test case where onchaind restarts with different …
rustyrussell 720b9b3
onchaind: don't create zero-output txs if fees overwhelm us.
rustyrussell a472502
test_lightningd.py: test onchaind when all turn into fees.
rustyrussell e5f59fb
onchaind: add a new state for where we're not producing an output.
rustyrussell 4a8cff7
onchaind: fix too-eager OUR_HTLC_TIMEOUT_TX.
rustyrussell 71ce8f4
onchaind: fix confusing message about delayed txs.
rustyrussell 419d95a
wallet: Fix header ordering
cdecker 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
Does not standard
OP_RETURNrequire an additional push after theOP_RETURN? Otherwise the tx may not get broadcast across the Bitcoin network to reach a miner?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.
bitcoind source doesn't seem to, but I added a test to be sure!
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.
Where is test? I think regtest and testnet skip over
IsStandardTxcheck?The bitcoind source doesn't seem to indeed; it allows a plain
OP_RETURN: https://github.com/bitcoin/bitcoin/blob/d889c036cd6f683116e6a27e404be2809d1deb76/src/script/standard.cpp#L88-L96All the guides I found on the Internet indicate a single data push after
OP_RETURNbut the actual code seems to allow 0 to any number of data pushes, as long as the total length is below the limit.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.
Sorry, found some other issues, took me much longer to push than I hoped!