mirror of
https://github.com/logos-storage/nim-mysticeti.git
synced 2026-01-02 13:43:09 +00:00
cleanup
This commit is contained in:
parent
824d3a2f3b
commit
1f67e989bc
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user