aboutsummaryrefslogtreecommitdiff
path: root/dashboard/inmemory.go
diff options
context:
space:
mode:
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
commit08ca372b0a95025a5ab49ccb4ee51af1aa1185ff (patch)
tree6ca088cc5dd600f8e5331b8439a949a72832bfc7 /dashboard/inmemory.go
parentb8a1ae8aca5e36ffa90316a66bf826e020c73ef7 (diff)
dashboard: api refactor
Diffstat (limited to 'dashboard/inmemory.go')
-rw-r--r--dashboard/inmemory.go6
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
+}