From 15283cd1bf926254fad09ae04b1e04e381966c06 Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Tue, 9 Apr 2024 22:32:39 +0200 Subject: dashboard: Messages and Cancel implemented --- dashboard/dashboard.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dashboard/dashboard.go') 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 } -- cgit v1.2.3