diff options
Diffstat (limited to 'daemon/algod/api/server/v2/test/helpers.go')
-rw-r--r-- | daemon/algod/api/server/v2/test/helpers.go | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/daemon/algod/api/server/v2/test/helpers.go b/daemon/algod/api/server/v2/test/helpers.go index b248e40d9..31e6053a6 100644 --- a/daemon/algod/api/server/v2/test/helpers.go +++ b/daemon/algod/api/server/v2/test/helpers.go @@ -21,7 +21,6 @@ import ( "math/rand" "strconv" "testing" - "time" "github.com/algorand/go-algorand/agreement" "github.com/algorand/go-algorand/config" @@ -87,6 +86,22 @@ type mockNode struct { err error } +func (m mockNode) InstallParticipationKey(partKeyBinary []byte) (account.ParticipationID, error) { + panic("implement me") +} + +func (m mockNode) ListParticipationKeys() ([]account.ParticipationRecord, error) { + panic("implement me") +} + +func (m mockNode) GetParticipationKey(id account.ParticipationID) (account.ParticipationRecord, error) { + panic("implement me") +} + +func (m mockNode) RemoveParticipationKey(id account.ParticipationID) error { + panic("implement me") +} + func makeMockNode(ledger *data.Ledger, genesisID string, nodeError error) mockNode { return mockNode{ ledger: ledger, @@ -171,7 +186,7 @@ func (m mockNode) GetTransactionByID(txid transactions.Txid, rnd basics.Round) ( return node.TxnWithStatus{}, fmt.Errorf("get transaction by id not implemented") } -func (m mockNode) AssembleBlock(round basics.Round, deadline time.Time) (agreement.ValidatedBlock, error) { +func (m mockNode) AssembleBlock(round basics.Round) (agreement.ValidatedBlock, error) { return nil, fmt.Errorf("assemble block not implemented") } |