@@ -41,12 +41,12 @@ import (
41
41
42
42
// PeerProgress is synchronization status of a peer
43
43
type PeerProgress struct {
44
- CurrentEpoch idx.Epoch
45
- CurrentBlock idx.Block
44
+ CurrentEpoch idx.EpochID
45
+ CurrentBlock idx.BlockID
46
46
CurrentBlockHash hash.Event
47
47
CurrentBlockTime inter.Timestamp
48
- HighestBlock idx.Block
49
- HighestEpoch idx.Epoch
48
+ HighestBlock idx.BlockID
49
+ HighestEpoch idx.EpochID
50
50
}
51
51
52
52
// Backend interface provides the common API services (that are provided by
@@ -70,7 +70,7 @@ type Backend interface {
70
70
HeaderByHash (ctx context.Context , hash common.Hash ) (* evmcore.EvmHeader , error )
71
71
BlockByNumber (ctx context.Context , number rpc.BlockNumber ) (* evmcore.EvmBlock , error )
72
72
StateAndHeaderByNumberOrHash (ctx context.Context , blockNrOrHash rpc.BlockNumberOrHash ) (state.StateDB , * evmcore.EvmHeader , error )
73
- ResolveRpcBlockNumberOrHash (ctx context.Context , blockNrOrHash rpc.BlockNumberOrHash ) (idx.Block , error )
73
+ ResolveRpcBlockNumberOrHash (ctx context.Context , blockNrOrHash rpc.BlockNumberOrHash ) (idx.BlockID , error )
74
74
BlockByHash (ctx context.Context , hash common.Hash ) (* evmcore.EvmBlock , error )
75
75
GetReceiptsByNumber (ctx context.Context , number rpc.BlockNumber ) (types.Receipts , error )
76
76
GetEVM (ctx context.Context , msg * core.Message , state vm.StateDB , header * evmcore.EvmHeader , vmConfig * vm.Config ) (* vm.EVM , func () error , error )
@@ -95,12 +95,12 @@ type Backend interface {
95
95
GetEventPayload (ctx context.Context , shortEventID string ) (* inter.EventPayload , error )
96
96
GetEvent (ctx context.Context , shortEventID string ) (* inter.Event , error )
97
97
GetHeads (ctx context.Context , epoch rpc.BlockNumber ) (hash.Events , error )
98
- CurrentEpoch (ctx context.Context ) idx.Epoch
98
+ CurrentEpoch (ctx context.Context ) idx.EpochID
99
99
SealedEpochTiming (ctx context.Context ) (start inter.Timestamp , end inter.Timestamp )
100
100
101
101
// Lachesis aBFT API
102
102
GetEpochBlockState (ctx context.Context , epoch rpc.BlockNumber ) (* iblockproc.BlockState , * iblockproc.EpochState , error )
103
- GetDowntime (ctx context.Context , vid idx.ValidatorID ) (idx.Block , inter.Timestamp , error )
103
+ GetDowntime (ctx context.Context , vid idx.ValidatorID ) (idx.BlockID , inter.Timestamp , error )
104
104
GetUptime (ctx context.Context , vid idx.ValidatorID ) (* big.Int , error )
105
105
GetOriginatedFee (ctx context.Context , vid idx.ValidatorID ) (* big.Int , error )
106
106
}
0 commit comments