Modify DropAfterBlockBySha to accept a pointer.
Since all other functions take pointers, this makes the interface more consistent.
This commit is contained in:
parent
2c0dc2d862
commit
166a546078
2 changed files with 2 additions and 2 deletions
2
db.go
2
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.
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue