aboutsummaryrefslogtreecommitdiff
path: root/dashboard/dashboard.go
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@codeblau.de>2024-04-09 22:32:39 +0200
committerÖzgür Kesim <oec@codeblau.de>2024-04-09 22:32:39 +0200
commit15283cd1bf926254fad09ae04b1e04e381966c06 (patch)
treecbb51ed5c117712f3948b7127aaadf52715045d9 /dashboard/dashboard.go
parent5759f3e45ffad8f1caffbbc68c71b0455da275cb (diff)
dashboard: Messages and Cancel implemented
Diffstat (limited to 'dashboard/dashboard.go')
-rw-r--r--dashboard/dashboard.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/dashboard/dashboard.go b/dashboard/dashboard.go
index 9b6dedd..6f384f9 100644
--- a/dashboard/dashboard.go
+++ b/dashboard/dashboard.go
@@ -46,6 +46,7 @@ const (
ErrAuctionFinished
ErrAuctionCanceled
ErrAuctionTimeout
+ ErrAuctionInvalidRound
ErrBidderUnknown
ErrBidderTimeout
@@ -79,6 +80,8 @@ func (d Error) Error() string {
return "action has timed out"
case ErrAuctionCanceled:
return "auction has been canceled"
+ case ErrAuctionInvalidRound:
+ return "invalid round"
case ErrBidderUnknown:
return "bidder is unknown"
@@ -120,7 +123,6 @@ func (s *SignedCommitment) Verify(pubkey ed25519.PublicKey) bool {
buf := &bytes.Buffer{}
e := json.NewEncoder(buf).Encode(s.Commitment)
if e != nil {
- // TODO: log message?
return false
}