Generate blocks in two rpc calls (#5011)

* Generate blocks in two rpc calls

* Empty commit to re-run CI

* Empty commit to re-run CI
This commit is contained in:
Chris Stewart 2023-03-15 07:29:53 -05:00 committed by GitHub
parent 875a67a73c
commit df5472f263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,7 +268,13 @@ class NeutrinoNodeTest extends NodeTestWithCachedBitcoindPair {
for {
_ <- NodeUnitTest.syncNeutrinoNode(node, bitcoind)
_ <- AkkaUtil.nonBlockingSleep(3.seconds)
_ <- bitcoind.generateToAddress(2, junkAddress)
//have to generate the block headers independent of one another
//rather than just calling generateToAddress(2,junkAddress)
//because of this bitcoin core bug: https://github.com/bitcoin-s/bitcoin-s/issues/1098
//hopefully they fix it some day...
_ <- bitcoind.generateToAddress(1, junkAddress)
_ <- AsyncUtil.nonBlockingSleep(500.millis)
_ <- bitcoind.generateToAddress(1, junkAddress)
_ <- NodeTestUtil.awaitAllSync(node, bitcoind)
} yield {
succeed