-
Notifications
You must be signed in to change notification settings - Fork 1k
Add option --from-blockheight #990
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
Changes from all commits
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 |
|---|---|---|
|
|
@@ -26,6 +26,9 @@ struct config { | |
| /* How long do we let them lock up our funds? (blocks) */ | ||
| u32 locktime_max; | ||
|
|
||
| /* Add block from blockheight (-1 to use default chaintopology strategy). */ | ||
| s32 from_blockheight; | ||
|
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. This is probably a y43k bug in the making 😉
Contributor
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. Do you suggest to use s64? or use a different default value?
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. Just kidding :-) |
||
|
|
||
| /* How many blocks before we expect to see anchor?. */ | ||
| u32 anchor_onchain_wait; | ||
|
|
||
|
|
||
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.
Are you sure that we want to start 100 blocks after the specified value?
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.
get_init_blockhash starts 100 blocks behind the selected block. If it is more safe to always consider 100 blocks before the selected input block ( so the first "Adding block", in the log, starts 100 blocks before the specified blockheight in the option), I will remove this sum.
Uh oh!
There was an error while loading. Please reload this page.
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.
The
+suggestes to me that if I specify height 500 this would start at 600 which is rather uexpected to me.EDIT: Oh I see, it's compensating the
-= 100that we do inget_init_blockhash, I'd rather pull that subtraction out, instead of trying to compensate here.