Merge pull request #1454 from molecula/remove-rbftx-frag

Remove unused RBFTx.frag field
This commit is contained in:
Ben Johnson 2021-02-23 09:42:50 -07:00 committed by GitHub
commit 4454df0af0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
rbf.go
View file

@ -184,7 +184,6 @@ type RBFTx struct {
// initialIndex is only a debugging aid. Transactions
// can cross indexes. It can be left empty without consequence.
initialIndex string
frag *fragment
tx *rbf.Tx
o Txo
sn int64 // serial number
@ -520,7 +519,6 @@ func (w *RbfDBWrapper) NewTx(write bool, initialIndex string, o Txo) (_ Tx, err
rtx := &RBFTx{
tx: tx,
initialIndex: initialIndex,
frag: o.Fragment,
o: o,
sn: sn,
Db: w,