Documentation ¶
Index ¶
- func IncrementAccount(vTx kv.RwTx, tx kv.Tx, workers uint64, verkleWriter *VerkleTreeWriter, ...) error
- func IncrementStorage(vTx kv.RwTx, tx kv.Tx, workers uint64, verkleWriter *VerkleTreeWriter, ...) (libcommon.Hash, error)
- func RegeneratePedersenAccounts(outTx kv.RwTx, readTx kv.Tx, workers uint64, verkleWriter *VerkleTreeWriter) error
- func RegeneratePedersenCode(outTx kv.RwTx, readTx kv.Tx, workers uint64, verkleWriter *VerkleTreeWriter) error
- func RegeneratePedersenStorage(outTx kv.RwTx, readTx kv.Tx, workers uint64, verkleWriter *VerkleTreeWriter) error
- type VerkleMarker
- type VerkleTreeWriter
- func (v *VerkleTreeWriter) Close()
- func (v *VerkleTreeWriter) CommitVerkleTree(root libcommon.Hash) (libcommon.Hash, error)
- func (v *VerkleTreeWriter) CommitVerkleTreeFromScratch() (libcommon.Hash, error)
- func (v *VerkleTreeWriter) DeleteAccount(versionKey []byte, isContract bool) error
- func (v *VerkleTreeWriter) Insert(key, value []byte) error
- func (v *VerkleTreeWriter) UpdateAccount(versionKey []byte, codeSize uint64, isContract bool, acc accounts.Account) error
- func (v *VerkleTreeWriter) WriteContractCodeChunks(codeKeys [][]byte, chunks [][]byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncrementAccount ¶
func IncrementStorage ¶
func RegeneratePedersenCode ¶
Types ¶
type VerkleMarker ¶
type VerkleMarker struct {
// contains filtered or unexported fields
}
func NewVerkleMarker ¶
func NewVerkleMarker(tempdir string) *VerkleMarker
func (*VerkleMarker) MarkAsDone ¶
func (v *VerkleMarker) MarkAsDone(key []byte) error
func (*VerkleMarker) Rollback ¶
func (v *VerkleMarker) Rollback()
type VerkleTreeWriter ¶
type VerkleTreeWriter struct {
// contains filtered or unexported fields
}
func NewVerkleTreeWriter ¶
func NewVerkleTreeWriter(db kv.RwTx, tmpdir string, logger log.Logger) *VerkleTreeWriter
func (*VerkleTreeWriter) Close ¶
func (v *VerkleTreeWriter) Close()
func (*VerkleTreeWriter) CommitVerkleTree ¶
func (*VerkleTreeWriter) CommitVerkleTreeFromScratch ¶
func (v *VerkleTreeWriter) CommitVerkleTreeFromScratch() (libcommon.Hash, error)
func (*VerkleTreeWriter) DeleteAccount ¶
func (v *VerkleTreeWriter) DeleteAccount(versionKey []byte, isContract bool) error
func (*VerkleTreeWriter) Insert ¶
func (v *VerkleTreeWriter) Insert(key, value []byte) error
func (*VerkleTreeWriter) UpdateAccount ¶
func (*VerkleTreeWriter) WriteContractCodeChunks ¶
func (v *VerkleTreeWriter) WriteContractCodeChunks(codeKeys [][]byte, chunks [][]byte) error
Click to show internal directories.
Click to hide internal directories.