File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ func (t *Transaction) BEEF() ([]byte, error) {
100
100
if err != nil {
101
101
return nil , err
102
102
}
103
- bumps := map [ uint32 ]* MerklePath {}
103
+ bumps := [ ]* MerklePath {}
104
104
bumpIndex := map [uint32 ]int {}
105
105
txns := map [string ]* Transaction {t .TxID ().String (): t }
106
106
ancestors , err := t .collectAncestors (txns )
@@ -112,11 +112,11 @@ func (t *Transaction) BEEF() ([]byte, error) {
112
112
if tx .MerklePath == nil {
113
113
continue
114
114
}
115
- if _ , ok := bumps [tx .MerklePath .BlockHeight ]; ! ok {
115
+ if _ , ok := bumpIndex [tx .MerklePath .BlockHeight ]; ! ok {
116
116
bumpIndex [tx .MerklePath .BlockHeight ] = len (bumps )
117
- bumps [ tx . MerklePath . BlockHeight ] = tx .MerklePath
117
+ bumps = append ( bumps , tx .MerklePath )
118
118
} else {
119
- err := bumps [tx .MerklePath .BlockHeight ].Combine (tx .MerklePath )
119
+ err := bumps [bumpIndex [ tx .MerklePath .BlockHeight ] ].Combine (tx .MerklePath )
120
120
if err != nil {
121
121
return nil , err
122
122
}
You can’t perform that action at this time.
0 commit comments