-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
InvalidStateHash has computedStateHash, added a lot of debugging logs
- Loading branch information
1 parent
120a54f
commit 384dccf
Showing
13 changed files
with
114 additions
and
36 deletions.
There are no files selected for viewing
This file contains 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 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
47 changes: 47 additions & 0 deletions
47
node-it/src/test/scala/com/wavesplatform/it/sync/ContinuousMiningTestSuite.scala
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package com.wavesplatform.it.sync | ||
|
||
import com.typesafe.config.{Config, ConfigFactory} | ||
import com.wavesplatform.it.api.SyncHttpApi.* | ||
import com.wavesplatform.it.{BaseFunSuite, NodeConfigs} | ||
import com.wavesplatform.transaction.TxHelpers | ||
|
||
import scala.concurrent.duration.* | ||
|
||
class ContinuousMiningTestSuite extends BaseFunSuite { | ||
// private val txnSendingInterval = 4.millis | ||
|
||
override protected val nodeConfigs: Seq[Config] = Seq( | ||
ConfigFactory | ||
.parseString(s"""waves { | ||
| blockchain.custom.functionality.pre-activated-features = { | ||
| 1 = 0 | ||
| 16 = 0 | ||
| 17 = 0 | ||
| 18 = 0 | ||
| 19 = 0 | ||
| 20 = 0 | ||
| 21 = 0 | ||
| 22 = 0 | ||
| 23 = 0 | ||
| } | ||
| miner { | ||
| quorum = 0 | ||
| micro-block-interval = 6ms | ||
| min-micro-block-age = 10ms # 100ms | ||
| } | ||
|}""".stripMargin) | ||
.withFallback(NodeConfigs.Miners.head) | ||
.resolve() | ||
) | ||
|
||
test("Can continue mining with a last micro block removing") { | ||
val waitHeight = miner.height + 10 | ||
var i = 0 | ||
while (miner.height < waitHeight) { | ||
if (i == 0) miner.transfer(miner.keyPair, TxHelpers.secondAddress.toString, 1, minFee) | ||
else i = (i + 1) % 5 | ||
// Thread.sleep(txnSendingInterval.toMillis) | ||
} | ||
} | ||
} | ||
|
This file contains 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 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 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 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 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 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 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 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 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 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