From 72ff17e0b75ab625ae664eaeb60ab92af6c1866e Mon Sep 17 00:00:00 2001 From: Artem Vorotnikov Date: Sun, 21 Mar 2021 08:20:44 +0300 Subject: [PATCH] Hide TxDb (#1575) --- ethdb/tx_db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethdb/tx_db.go b/ethdb/tx_db.go index e05f51370..ad3d6ad05 100644 --- a/ethdb/tx_db.go +++ b/ethdb/tx_db.go @@ -32,7 +32,7 @@ func (m *TxDb) Close() { // NewTxDbWithoutTransaction creates TxDb object without opening transaction, // such TxDb not usable before .Begin() call on it // It allows inject TxDb object into class hierarchy, but open write transaction later -func NewTxDbWithoutTransaction(db Database, flags TxFlags) *TxDb { +func NewTxDbWithoutTransaction(db Database, flags TxFlags) DbWithPendingMutations { return &TxDb{db: db, txFlags: flags} }