Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
markspanbroek committed Nov 28, 2024
1 parent 824d3a2 commit 1f67e98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion mysticeti/validator.nim
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func addBlock(validator: Validator, signedBlock: SignedBlock) =
validator.updateSkipped(signedBlock.blck)
validator.updateCertified(signedBlock.blck)

proc propose*[Transaction](validator: Validator, transactions: seq[Transaction]): auto =
proc propose*(validator: Validator, transactions: seq[Validator.Dependencies.Transaction]): auto =
type Block = blocks.Block[Validator.Dependencies]
type SignedBlock = blocks.SignedBlock[Validator.Dependencies]
let round = validator.rounds.latest
Expand Down
12 changes: 6 additions & 6 deletions tests/mysticeti/committee/testCommittee.nim
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ suite "Committee":

test "members have stake":
let identifiers = array[4, Identifier].example
let stakes = @[
(identifiers[0], 1/8),
(identifiers[1], 1/2),
(identifiers[2], 1/4),
(identifiers[3], 1/8)
]
let stakes = @{
identifiers[0]: 1/8,
identifiers[1]: 1/2,
identifiers[2]: 1/4,
identifiers[3]: 1/8
}
let committee = Committee.new(stakes)
for (identifier, stake) in stakes:
let member = !committee.membership(identifier)
Expand Down

0 comments on commit 1f67e98

Please sign in to comment.