Skip to content

Commit 641887d

Browse files
committed
Merge branch 'master' of https://github.com/SiaFoundation/coreutils into pj/locked-outputs
2 parents 498a5b5 + d475ec7 commit 641887d

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 0.15.2 (2025-05-29)
2+
3+
### Fixes
4+
5+
- Update core to v0.13.1
6+
7+
## 0.15.1 (2025-05-29)
8+
9+
### Fixes
10+
11+
- Fix race in FundV2Transaction
12+
- Fixed an issue sending partial blocks to peers.
13+
114
## 0.15.0 (2025-05-26)
215

316
### Breaking Changes

chain/manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,15 +881,15 @@ func (m *Manager) TransactionsForPartialBlock(missing []types.Hash256) (txns []t
881881
}
882882
// TODO: might want to cache these
883883
for _, txn := range m.txpool.txns {
884-
if h := txn.FullHash(); want[h] {
884+
if h := txn.MerkleLeafHash(); want[h] {
885885
txns = append(txns, txn)
886886
if delete(want, h); len(want) == 0 {
887887
return
888888
}
889889
}
890890
}
891891
for _, txn := range m.txpool.v2txns {
892-
if h := txn.FullHash(); want[h] {
892+
if h := txn.MerkleLeafHash(); want[h] {
893893
v2txns = append(v2txns, txn)
894894
if delete(want, h); len(want) == 0 {
895895
return

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module go.sia.tech/coreutils // v0.15.0
1+
module go.sia.tech/coreutils // v0.15.2
22

33
go 1.23.1
44

@@ -8,7 +8,7 @@ require (
88
github.com/quic-go/quic-go v0.52.0
99
github.com/quic-go/webtransport-go v0.8.1-0.20241018022711-4ac2c9250e66
1010
go.etcd.io/bbolt v1.4.0
11-
go.sia.tech/core v0.13.0
11+
go.sia.tech/core v0.13.1
1212
go.sia.tech/mux v1.4.0
1313
go.uber.org/zap v1.27.0
1414
golang.org/x/crypto v0.38.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOf
3131
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
3232
go.etcd.io/bbolt v1.4.0 h1:TU77id3TnN/zKr7CO/uk+fBCwF2jGcMuw2B/FMAzYIk=
3333
go.etcd.io/bbolt v1.4.0/go.mod h1:AsD+OCi/qPN1giOX1aiLAha3o1U8rAz65bvN4j0sRuk=
34-
go.sia.tech/core v0.13.0 h1:LulIZQe1A3DZ9/CyX1mcJvHy3zmw/0jEkZfuNp92D2w=
35-
go.sia.tech/core v0.13.0/go.mod h1:hAsdf7uqD8+oBgg5pwxFFgW7Rv41kBKM1v6r3a7UZqc=
34+
go.sia.tech/core v0.13.1 h1:dBKzZBhWZsgdV7qZa6qiaZtTDj5evvSqYWpeGNenlRI=
35+
go.sia.tech/core v0.13.1/go.mod h1:oMOgHT4bf9VSXUCOgtt9w4MFns/pY0LRUgwyMXdxW5w=
3636
go.sia.tech/mux v1.4.0 h1:LgsLHtn7l+25MwrgaPaUCaS8f2W2/tfvHIdXps04sVo=
3737
go.sia.tech/mux v1.4.0/go.mod h1:iNFi9ifFb2XhuD+LF4t2HBb4Mvgq/zIPKqwXU/NlqHA=
3838
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=

syncer/peer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,12 @@ func (s *Syncer) handleRPC(id types.Specifier, stream *gateway.Stream, origin *P
344344
want[h] = true
345345
}
346346
for _, txn := range b.Transactions {
347-
if want[txn.FullHash()] {
347+
if want[txn.MerkleLeafHash()] {
348348
r.Transactions = append(r.Transactions, txn)
349349
}
350350
}
351351
for _, txn := range b.V2Transactions() {
352-
if want[txn.FullHash()] {
352+
if want[txn.MerkleLeafHash()] {
353353
r.V2Transactions = append(r.V2Transactions, txn)
354354
}
355355
}

0 commit comments

Comments
 (0)