We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1483e8a commit 66c3179Copy full SHA for 66c3179
internal/test/ledger/ledger.go
@@ -16,6 +16,7 @@ package test_ledger
16
17
import (
18
"errors"
19
+ "time"
20
21
"github.com/blinklabs-io/gouroboros/ledger/common"
22
)
@@ -77,3 +78,13 @@ func (ls MockLedgerState) PoolRegistration(
77
78
}
79
return ret, nil
80
81
+
82
+func (ls MockLedgerState) SlotToTime(slot uint64) (time.Time, error) {
83
+ // TODO
84
+ return time.Now(), nil
85
+}
86
87
+func (ls MockLedgerState) TimeToSlot(t time.Time) (uint64, error) {
88
89
+ return 0, nil
90
ledger/common/state.go
@@ -35,6 +35,7 @@ type CertState interface {
35
type LedgerState interface {
36
UtxoState
37
CertState
38
+ SlotState
39
NetworkId() uint
40
41
0 commit comments