Skip to content

Commit

Permalink
Fixes after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
xrtm000 committed Oct 21, 2022
1 parent fdd10d9 commit 557636f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions node/src/test/scala/com/wavesplatform/db/TestUtxPool.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ import com.wavesplatform.state.{Blockchain, Diff}
import com.wavesplatform.utils.Time
import com.wavesplatform.utx.UtxPoolImpl

class TestUtxPool(time: Time, blockchain: Blockchain, utxSettings: UtxSettings, isMiningEnabled: Boolean, beforeSetPriorityDiffs: () => Unit)
extends UtxPoolImpl(time, blockchain, utxSettings, isMiningEnabled) {
class TestUtxPool(
time: Time,
blockchain: Blockchain,
utxSettings: UtxSettings,
maxTxErrorLogSize: Int,
isMiningEnabled: Boolean,
beforeSetPriorityDiffs: () => Unit
) extends UtxPoolImpl(time, blockchain, utxSettings, maxTxErrorLogSize, isMiningEnabled) {

override def setPriorityDiffs(discDiffs: Seq[Diff]): Unit = {
beforeSetPriorityDiffs()
Expand Down
2 changes: 1 addition & 1 deletion node/src/test/scala/com/wavesplatform/history/Domain.scala
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ case class Domain(
def createDiffE(tx: Transaction): Either[ValidationError, Diff] = transactionDiffer(tx).resultE
def createDiff(tx: Transaction): Diff = createDiffE(tx).explicitGet()

lazy val utxPool =
lazy val utxPool =
new TestUtxPool(SystemTime, blockchain, settings.utxSettings, settings.maxTxErrorLogSize, settings.minerSettings.enable, beforeSetPriorityDiffs)
lazy val wallet: Wallet = Wallet(settings.walletSettings.copy(file = None))

Expand Down

0 comments on commit 557636f

Please sign in to comment.