mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-29 07:07:16 +00:00
Added update txn function
This commit is contained in:
parent
945b0e9e0f
commit
988a4b5510
@ -56,6 +56,10 @@ func NewMemoryBatch(tx kv.Tx) *MemoryMutation {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *MemoryMutation) UpdateTxn(tx kv.Tx) {
|
||||||
|
m.db = tx
|
||||||
|
}
|
||||||
|
|
||||||
func (m *MemoryMutation) isTableCleared(table string) bool {
|
func (m *MemoryMutation) isTableCleared(table string) bool {
|
||||||
_, ok := m.clearedTables[table]
|
_, ok := m.clearedTables[table]
|
||||||
return ok
|
return ok
|
||||||
|
Loading…
Reference in New Issue
Block a user