diff options
author | Özgür Kesim <oec@kesim.org> | 2024-11-10 17:23:17 +0100 |
---|---|---|
committer | Özgür Kesim <oec@kesim.org> | 2024-11-10 17:23:17 +0100 |
commit | 08ca372b0a95025a5ab49ccb4ee51af1aa1185ff (patch) | |
tree | 6ca088cc5dd600f8e5331b8439a949a72832bfc7 /dashboard | |
parent | b8a1ae8aca5e36ffa90316a66bf826e020c73ef7 (diff) |
dashboard: api refactor
Diffstat (limited to 'dashboard')
-rw-r--r-- | dashboard/inmemory.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dashboard/inmemory.go b/dashboard/inmemory.go index 0548494..5735211 100644 --- a/dashboard/inmemory.go +++ b/dashboard/inmemory.go @@ -115,7 +115,7 @@ func (m *inmemory) Join(auctionId string, return ErrAuctionNotReady } auction.commitments[bidderId] = commitment - auction.messages[bidderId] = make([]SignedMessage, auction.description.BitLength) + auction.messages[bidderId] = make([]SignedMessage, auction.description.Bitlength) return nil } @@ -178,7 +178,7 @@ func (m *inmemory) Publish(auctionId string, round uint8, message SignedMessage, if completed { auction.round += 1 - if auction.round == auction.description.BitLength { + if auction.round == auction.description.Bitlength { auction.state = AuctionStateFinished } } @@ -239,4 +239,4 @@ func (m *inmemory) Cancel(auctionId string, reason SignedMessage, publickey ed25 func (m *inmemory) Result(auctionId string) (price uint64, winner ed25519.PublicKey, e error) { return 0, nil, fmt.Errorf("Result not implemented") -}
\ No newline at end of file +} |