Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Fix progress reporting & initialblockdownload #6

Merged
merged 2 commits into from
Dec 7, 2018

Conversation

stevenroose
Copy link
Collaborator

@stevenroose stevenroose commented Nov 20, 2018

depends on #9

Both the debug log and getblockchaininfo were showing progress=1 always.

This PR replaces Core's chain statistics-based estimation with simple block-based estimation because are dealing with fixed-interval blocks.

Also implements the initialblockdownload value in getblockchaininfo based on the same heuristic.

@instagibbs
Copy link
Collaborator

should be easy to test via -con_npowtargetspacing, right? Set a 1 second interval, wait 5(?) seconds, see if progress goes down.

Does this need port to elements?

@stevenroose
Copy link
Collaborator Author

@instagibbs Updated PR to use nPowTargetSpacing, thanks.

@instagibbs
Copy link
Collaborator

I'd really like a functional test for this since it's touching a number of internals I haven't touched before

@stevenroose stevenroose force-pushed the progress branch 7 times, most recently from 28c1fe7 to bf8569a Compare December 6, 2018 18:33
@instagibbs
Copy link
Collaborator

utACK, waiting on travis

@stevenroose stevenroose force-pushed the progress branch 2 times, most recently from 0148fae to ee1d706 Compare December 7, 2018 11:14
@stevenroose stevenroose merged commit ee1d706 into Blockstream:liquid.3.14.1 Dec 7, 2018
stevenroose added a commit that referenced this pull request Dec 7, 2018
ee1d706 Fix progress reporting issue (Steven Roose)
80282cc Fix Travis build (Steven Roose)
shesek added a commit to shesek/electrs that referenced this pull request Jan 25, 2019
shesek added a commit to shesek/electrs that referenced this pull request Jan 26, 2019
stevenroose added a commit to stevenroose/elements that referenced this pull request Mar 20, 2019
stevenroose added a commit to stevenroose/elements that referenced this pull request Mar 20, 2019
stevenroose added a commit to stevenroose/elements that referenced this pull request Mar 21, 2019
stevenroose added a commit to stevenroose/elements that referenced this pull request Mar 21, 2019
instagibbs added a commit to ElementsProject/elements that referenced this pull request Mar 21, 2019
5b8c79a Fix progress reporting issue (Steven Roose)

Pull request description:

  Based on #515

  Reimplementation of Blockstream/liquid#6

Tree-SHA512: 292be614802d0ca74bc9a19080bce46812bc4d5c386ed01f87e74898830946276359100d404868dda8fd4b4087699a9be804370a8ad387c7d92f4a3f5572d0b0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants