Skip to content

Commit

Permalink
add future TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
darioush committed Jul 30, 2024
1 parent f6907b2 commit 3b1daac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions warp/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ type Backend interface {
GetBlockSignature(blockID ids.ID) ([bls.SignatureLen]byte, error)

// GetMessage retrieves the [unsignedMessage] from the warp backend database if available
// TODO: After E-Upgrade, the backend no longer needs to store the mapping from messageHash
// to unsignedMessage (and this method can be removed).
GetMessage(messageHash ids.ID) (*avalancheWarp.UnsignedMessage, error)

// Clear clears the entire db
Expand Down
1 change: 1 addition & 0 deletions warp/handlers/signature_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
)

// SignatureRequestHandler serves warp signature requests. It is a peer.RequestHandler for message.MessageSignatureRequest.
// TODO: After E-Upgrade, this handler can be removed and SignatureRequestHandlerP2P is sufficient.
type SignatureRequestHandler struct {
backend warp.Backend
codec codec.Manager
Expand Down

0 comments on commit 3b1daac

Please sign in to comment.