-
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.
NODE-2633 Allowed mining by light node (#3918)
- Loading branch information
Showing
6 changed files
with
62 additions
and
43 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
node-it/src/test/scala/com/wavesplatform/it/sync/lightnode/LightNodeMiningSuite.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,26 @@ | ||
package com.wavesplatform.it.sync.lightnode | ||
|
||
import com.typesafe.config.Config | ||
import com.wavesplatform.it.api.SyncHttpApi.* | ||
import com.wavesplatform.it.{BaseFunSuite, NodeConfigs, TransferSending} | ||
|
||
class LightNodeMiningSuite extends BaseFunSuite with TransferSending { | ||
override def nodeConfigs: Seq[Config] = | ||
NodeConfigs.newBuilder | ||
.overrideBase(_.lightNode) | ||
.withDefault(2) | ||
.buildNonConflicting() | ||
|
||
test("nodes can mine in light mode") { | ||
val first = nodes.head | ||
val second = nodes.last | ||
|
||
val tx1 = first.transfer(first.keyPair, second.address, 1, waitForTx = true) | ||
nodes.waitForHeightArise() | ||
second.transactionStatus(tx1.id).applicationStatus.get shouldBe "succeeded" | ||
|
||
val tx2 = second.transfer(second.keyPair, first.address, 1, waitForTx = true) | ||
nodes.waitForHeightArise() | ||
first.transactionStatus(tx2.id).applicationStatus.get shouldBe "succeeded" | ||
} | ||
} |
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