-
Notifications
You must be signed in to change notification settings - Fork 812
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
Update Regtest Specific Params #676
Conversation
8c9a188
to
b10aea8
Compare
Codecov Report
@@ Coverage Diff @@
## master #676 +/- ##
==========================================
+ Coverage 53.38% 53.39% +0.01%
==========================================
Files 104 104
Lines 27709 27711 +2
Branches 4746 4747 +1
==========================================
+ Hits 14792 14797 +5
+ Misses 12917 12914 -3
Continue to review full report at Codecov.
|
Confirmed these match bitcoin core regtest params: https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp#L342-L348 Also compiled Bitcoin Core from source, ran it in regtest and networked it with bcoin in regtest running locally. Ran my |
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.
OK
Also just confirming Bitcoin Core regtest SegWit is "always active" so no deployment time: |
So I'm still getting an issue with connecting a Bitcoin Core regtest node and Bcoin regtest node here because of the activation time.
The change here 53a09b0 with the activation was necessary for that. |
@braydonf What's your process? I networked bcoin and Bitcoin Core in regtest, and in bcoin:
Bitcoin Core shows the block in the chain just fine (even though coinbase address was segwit)
|
Oh weird - ok, however bcoin rejected a segwit block from Core:
|
Here are my steps for testing: Start and connect Bitcoin Core and Bcoin nodes:
Make sure that the regtest chain data is clear for each for a fresh chain and that the nodes connect. Your port configurations may vary. Getting blockchain information from Bitcoin Core:
Getting blockchain information from Bcoin:
Generating blocks:
And then verifying that both chains have the block using the above commands. |
Actually I can confirm with Bitcoin Core:
bcoin:
|
Gonna revert b10aea8 and test more |
b10aea8
to
177403f
Compare
Tested, and is syncing and the deployments cache will be refreshed. |
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.
LGTM after rebase on master.
The deployments are written to and read from a database and the start time is a U32. Changing the value to -1 will cause the value to be read incorrectly and cause the tests to fail.
177403f
to
b016cb0
Compare
Rebased |
possible to get this merged? |
Update Regtest Specific Params
Merged at 39684df |
This pull request updates the key prefixes and address prefixes to match
bitcoind
andbtcd
.Addresses this issue: #579
See https://github.com/satoshilabs/slips/blob/master/slip-0173.md for a list of human readable prefixes
It build on #580 and reverts the change that sets the segwit
startTime
to-1
https://github.com/bcoin-org/bcoin/pull/580/files#diff-44d3bcd9142fb799b54cb36cac72561eR804.
startTime
is written and read from leveldb as auint
, as seen here:https://github.com/bcoin-org/bcoin/blob/master/lib/blockchain/chaindb.js#L648
so setting it to
-1
will cause an underflow and breaks some tests