remotedbserver

package
v0.0.0-...-c80a3f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MaxTxTTL = 60 * time.Second

Variables

View Source
var KvServiceAPIVersion = &types.VersionReply{Major: 6, Minor: 0, Patch: 0}

KvServiceAPIVersion - use it to track changes in API 1.1.0 - added pending transactions, add methods eth_getRawTransactionByHash, eth_retRawTransactionByBlockHashAndIndex, eth_retRawTransactionByBlockNumberAndIndex| Yes | | 1.2.0 - Added separated services for mining and txpool methods 2.0.0 - Rename all buckets 3.0.0 - ?? 4.0.0 - Server send tx.ViewID() after open tx 5.0 - BlockTransaction table now has canonical ids (txs of non-canonical blocks moving to NonCanonicalTransaction table) 5.1.0 - Added blockGasLimit to the StateChangeBatch 6.0.0 - Blocks now have system-txs - in the begin/end of block

Functions

This section is empty.

Types

type KvServer

type KvServer struct {
	remote.UnimplementedKVServer // must be embedded to have forward compatible implementations.
	// contains filtered or unexported fields
}

func NewKvServer

func NewKvServer(ctx context.Context, kv kv.RoDB, snapshots Snapsthots, historySnapshots Snapsthots) *KvServer

func (*KvServer) SendStateChanges

func (s *KvServer) SendStateChanges(ctx context.Context, sc *remote.StateChangeBatch)

func (*KvServer) Snapshots

func (*KvServer) StateChanges

func (s *KvServer) StateChanges(req *remote.StateChangeRequest, server remote.KV_StateChangesServer) error

func (*KvServer) Tx

func (s *KvServer) Tx(stream remote.KV_TxServer) error

func (*KvServer) Version

Version returns the service-side interface version number

type Snapsthots

type Snapsthots interface {
	Files() []string
}

type StateChangePubSub

type StateChangePubSub struct {
	// contains filtered or unexported fields
}

func (*StateChangePubSub) Len

func (s *StateChangePubSub) Len() int

func (*StateChangePubSub) Pub

func (s *StateChangePubSub) Pub(reply *remote.StateChangeBatch)

func (*StateChangePubSub) Sub

func (s *StateChangePubSub) Sub() (ch chan *remote.StateChangeBatch, remove func())

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL