Skip to content

Commit 877793a

Browse files
authored
Migrate go-bt to bsv-blockchain org dependency (#6)
1 parent f1e8af3 commit 877793a

15 files changed

+27
-29
lines changed

coinbase_placeholder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package subtree
22

33
import (
4-
"github.com/libsv/go-bt/v2"
5-
"github.com/libsv/go-bt/v2/chainhash"
4+
"github.com/bsv-blockchain/go-bt/v2"
5+
"github.com/bsv-blockchain/go-bt/v2/chainhash"
66
)
77

88
var (

coinbase_placeholder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package subtree
33
import (
44
"testing"
55

6-
"github.com/libsv/go-bt/v2"
6+
"github.com/bsv-blockchain/go-bt/v2"
77
"github.com/stretchr/testify/assert"
88
)
99

go.mod

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module github.com/bsv-blockchain/go-subtree
33
go 1.24
44

55
require (
6-
github.com/bsv-blockchain/go-safe-conversion v1.0.0
7-
github.com/bsv-blockchain/go-tx-map v1.0.0
8-
github.com/libsv/go-bt/v2 v2.2.5
6+
github.com/bsv-blockchain/go-bt/v2 v2.3.0
7+
github.com/bsv-blockchain/go-safe-conversion v1.0.1
8+
github.com/bsv-blockchain/go-tx-map v1.0.2
99
github.com/stretchr/testify v1.10.0
1010
golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b
1111
)
@@ -21,5 +21,3 @@ require (
2121
google.golang.org/protobuf v1.36.6 // indirect
2222
gopkg.in/yaml.v3 v3.0.1 // indirect
2323
)
24-
25-
replace github.com/libsv/go-bt/v2 => github.com/ordishs/go-bt/v2 v2.2.22

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
github.com/bsv-blockchain/go-safe-conversion v1.0.0 h1:5KVzKpCcuDVYDwuvAiP/9E4xe80CCvFuLY/nwtht7wc=
2-
github.com/bsv-blockchain/go-safe-conversion v1.0.0/go.mod h1:Fmat8fhPfMrdGCGv9PZ+QOkpQutD61hssbaLto4+3ks=
3-
github.com/bsv-blockchain/go-tx-map v1.0.0 h1:oeGI6et039crvzuELKHojYdlZwDNf+UCv9r1+63sZHE=
4-
github.com/bsv-blockchain/go-tx-map v1.0.0/go.mod h1:xCauj1rtF8dxuxP8WusegkFLzmcVCuLzcYZfjwXOi3Y=
1+
github.com/bsv-blockchain/go-bt/v2 v2.3.0 h1:ZEFtKV93wq59qna9/DEp4NJmVb5hZgF3h1vGXNLKMeU=
2+
github.com/bsv-blockchain/go-bt/v2 v2.3.0/go.mod h1:NzalErv8cCi3VDZYNLaHxnP2PiiDFIQS6dgQgBGTV4A=
3+
github.com/bsv-blockchain/go-safe-conversion v1.0.1 h1:b/AVkGVF2JnKRgG0oVpCRFAZBgghylDbgSD47VdM6KI=
4+
github.com/bsv-blockchain/go-safe-conversion v1.0.1/go.mod h1:q2+SQIAONrc2T7Ip1W9OsEzKXLoWeI06vuVm0Q85Bss=
5+
github.com/bsv-blockchain/go-tx-map v1.0.2 h1:ysCpTSxNJg2xjksDTeF3x9vdXpLIhuoZA4St6OIMAGM=
6+
github.com/bsv-blockchain/go-tx-map v1.0.2/go.mod h1:ObWqa+SIkbRhXYa8swAiRSof1Bhw8Z13w4QxYBiNy6E=
57
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
68
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
79
github.com/dolthub/maphash v0.1.0 h1:bsQ7JsF4FkkWyrP3oCnFJgrCUAFbFf3kOl4L/QxPDyQ=
@@ -16,8 +18,6 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
1618
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
1719
github.com/libsv/go-bk v0.1.6 h1:c9CiT5+64HRDbzxPl1v/oiFmbvWZTuUYqywCf+MBs/c=
1820
github.com/libsv/go-bk v0.1.6/go.mod h1:khJboDoH18FPUaZlzRFKzlVN84d4YfdmlDtdX4LAjQA=
19-
github.com/ordishs/go-bt/v2 v2.2.22 h1:5WmTQoX74g9FADM9hpbXZOE34uep4EqeSwpIy4CbWYE=
20-
github.com/ordishs/go-bt/v2 v2.2.22/go.mod h1:bOaZFOoazYognJH/nfcBjuDFud1XmIc05n7bp4Tvvfk=
2121
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
2222
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
2323
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=

inpoints.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"math"
99
"slices"
1010

11-
"github.com/libsv/go-bt/v2"
12-
"github.com/libsv/go-bt/v2/chainhash"
11+
"github.com/bsv-blockchain/go-bt/v2"
12+
"github.com/bsv-blockchain/go-bt/v2/chainhash"
1313
)
1414

1515
type Inpoint struct {

inpoints_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package subtree
33
import (
44
"testing"
55

6-
"github.com/libsv/go-bt/v2/chainhash"
6+
"github.com/bsv-blockchain/go-bt/v2/chainhash"
77
"github.com/stretchr/testify/assert"
88
"github.com/stretchr/testify/require"
99
)

merkle_tree.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"math"
77
"sync"
88

9-
"github.com/libsv/go-bt/v2/chainhash"
9+
"github.com/bsv-blockchain/go-bt/v2/chainhash"
1010
)
1111

1212
func GetMerkleProofForCoinbase(subtrees []*Subtree) ([]*chainhash.Hash, error) {

merkle_tree_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package subtree
33
import (
44
"testing"
55

6-
"github.com/libsv/go-bt/v2/chainhash"
6+
"github.com/bsv-blockchain/go-bt/v2/chainhash"
77
"github.com/stretchr/testify/assert"
88
"github.com/stretchr/testify/require"
99
)

subtree.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"math"
1010
"sync"
1111

12+
"github.com/bsv-blockchain/go-bt/v2/chainhash"
1213
safe "github.com/bsv-blockchain/go-safe-conversion"
1314
txmap "github.com/bsv-blockchain/go-tx-map"
14-
"github.com/libsv/go-bt/v2/chainhash"
1515
)
1616

1717
type SubtreeNode struct {

subtree_benchmark_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"encoding/binary"
66
"testing"
77

8+
"github.com/bsv-blockchain/go-bt/v2/chainhash"
89
"github.com/bsv-blockchain/go-subtree"
9-
"github.com/libsv/go-bt/v2/chainhash"
1010
"github.com/stretchr/testify/assert"
1111
"github.com/stretchr/testify/require"
1212
)

0 commit comments

Comments
 (0)