Skip to content

Commit

Permalink
Merge pull request #953 from HorizenOfficial/pc/openStakeForgerList_fix
Browse files Browse the repository at this point in the history
openStakeForgerList fix
  • Loading branch information
paolocappelletti authored Nov 9, 2023
2 parents 5c254a8 + d47de38 commit 2199d4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ object ForgerStakeMsgProcessor {
val GetListOfForgersCmd: String = getABIMethodId("getAllForgersStakes()")
val AddNewStakeCmd: String = getABIMethodId("delegate(bytes32,bytes32,bytes1,address)")
val RemoveStakeCmd: String = getABIMethodId("withdraw(bytes32,bytes1,bytes32,bytes32)")
val OpenStakeForgerListCmd: String = getABIMethodId("openStakeForgerList(uint32,bytes32,bytes32)")
val OpenStakeForgerListCmd: String = getABIMethodId("openStakeForgerList(uint32,bytes32,bytes32")

// ensure we have strings consistent with size of opcode
require(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class ForgerGenerationRateTest extends JUnitSuite {
})

val slotFilledPercentage: Double = (stakes.count(s => s).toDouble / slotNumber) * 100
assertTrue("Expected stakes result", slotFilledPercentage <= 6 && slotFilledPercentage >= 4)
assertTrue("Unexpected slot filled percentage ("+slotFilledPercentage+" is not between 4 and 6)", slotFilledPercentage <= 6 && slotFilledPercentage >= 4)
}

@Ignore
Expand Down

0 comments on commit 2199d4a

Please sign in to comment.