Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
feat(BUX-294): removed old usage of cmpslice in draft transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-4chain committed Oct 27, 2023
1 parent 2529fa2 commit 928e9cf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions model_bump.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ type BUMP struct {
allNodes []map[uint64]bool
}

// BUMPPath represents slices with paths
// type BUMPPath [][]BUMPNode

// BUMPLeaf represents each BUMP path element
type BUMPNode struct {
Offset uint64 `json:"offset,string"`
Expand Down
7 changes: 0 additions & 7 deletions model_draft_transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,13 +411,6 @@ func (m *DraftTransaction) createTransactionHex(ctx context.Context) (err error)
return ErrTransactionFeeInvalid
}

for _, v := range merkleProofs {
cmp, err := CalculateCompoundMerklePath(v)
if err != nil {
return err
}
m.CompoundMerklePathes = append(m.CompoundMerklePathes, cmp)
}
for _, v := range merkleProofs {
bump, err := CalculateMergedBUMP(v)
if err != nil {
Expand Down

0 comments on commit 928e9cf

Please sign in to comment.