From 166a546078426798175bfae320dda2ed1f36b0d0 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 25 Jun 2013 10:15:58 -0500 Subject: [PATCH] Modify DropAfterBlockBySha to accept a pointer. Since all other functions take pointers, this makes the interface more consistent. --- db.go | 2 +- sqlite3/sqlite.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db.go b/db.go index 13c369aa5..2e1810465 100644 --- a/db.go +++ b/db.go @@ -49,7 +49,7 @@ type Db interface { // the given block. It terminates any existing transaction and performs // its operations in an atomic transaction which is commited before // the function returns. - DropAfterBlockBySha(btcwire.ShaHash) (err error) + DropAfterBlockBySha(*btcwire.ShaHash) (err error) // ExistsSha returns whether or not the given block hash is present in // the database. diff --git a/sqlite3/sqlite.go b/sqlite3/sqlite.go index d8df4ae95..64e634db5 100644 --- a/sqlite3/sqlite.go +++ b/sqlite3/sqlite.go @@ -468,7 +468,7 @@ func (db *SqliteDb) rePlayTransaction() (err error) { // DropAfterBlockBySha will remove any blocks from the database after the given block. // It terminates any existing transaction and performs its operations in an // atomic transaction, it is terminated (committed) before exit. -func (db *SqliteDb) DropAfterBlockBySha(sha btcwire.ShaHash) (err error) { +func (db *SqliteDb) DropAfterBlockBySha(sha *btcwire.ShaHash) (err error) { var row *sql.Row db.dbLock.Lock() defer db.dbLock.Unlock()