Skip to content

Commit c935a53

Browse files
chore: use postage snapshot from batch-archive v0.1.0
1 parent ae1ad4e commit c935a53

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/caddyserver/certmagic v0.21.6
1010
github.com/coreos/go-semver v0.3.0
1111
github.com/ethereum/go-ethereum v1.17.3
12-
github.com/ethersphere/batch-archive v0.0.9
12+
github.com/ethersphere/batch-archive v0.1.0
1313
github.com/ethersphere/go-price-oracle-abi v0.6.9
1414
github.com/ethersphere/go-storage-incentives-abi v0.9.4
1515
github.com/ethersphere/go-sw3-abi v0.6.9

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab/go.mod h1
246246
github.com/ethereum/go-ethereum v1.10.4/go.mod h1:nEE0TP5MtxGzOMd7egIrbPJMQBnhVU3ELNxhBglIzhg=
247247
github.com/ethereum/go-ethereum v1.17.3 h1:Ev/sQHH+UdKZHWjuVzhu2pxhi/sXaPZl23Q+Q5LDd4Q=
248248
github.com/ethereum/go-ethereum v1.17.3/go.mod h1:f2EhRwqewIZkGoQekywI2Y2RZAMTSavLNkD9qItFy1A=
249-
github.com/ethersphere/batch-archive v0.0.9 h1:lhVbwHmbngJgwXq3gtRCpxkICghPqSrDVy0WIiR6QGM=
250-
github.com/ethersphere/batch-archive v0.0.9/go.mod h1:41BPb192NoK9CYjNB8BAE1J2MtiI/5aq0Wtas5O7A7Q=
249+
github.com/ethersphere/batch-archive v0.1.0 h1:zxGK6i1FHg5kEq11NcEjR6Ykw0UxWaAPR9tlpdTQ+xI=
250+
github.com/ethersphere/batch-archive v0.1.0/go.mod h1:41BPb192NoK9CYjNB8BAE1J2MtiI/5aq0Wtas5O7A7Q=
251251
github.com/ethersphere/go-price-oracle-abi v0.6.9 h1:bseen6he3PZv5GHOm+KD6s4awaFmVSD9LFx+HpB6rCU=
252252
github.com/ethersphere/go-price-oracle-abi v0.6.9/go.mod h1:sI/Qj4/zJ23/b1enzwMMv0/hLTpPNVNacEwCWjo6yBk=
253253
github.com/ethersphere/go-storage-incentives-abi v0.9.4 h1:mSIWXQXg5OQmH10QvXMV5w0vbSibFMaRlBL37gPLTM0=

pkg/postage/snapshot/snapshot.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ func (f *SnapshotLogFilterer) loadSnapshot() error {
7171
return nil
7272
}
7373

74+
// parseLogs decodes the snapshot NDJSON into types.Log entries.
75+
//
76+
// The snapshot is produced by ethersphere/batch-export, whose default slim
77+
// encoding carries only the types.Log fields Bee reads today: address, topics,
78+
// data, blockNumber, transactionHash (and logIndex). Any other field —
79+
// BlockHash, TxIndex, Removed — decodes to its zero value here with no error.
80+
// Before consuming a new types.Log field anywhere downstream of this filterer
81+
// (FilterLogs callers, listener.processEvent, transaction.ParseEvent), extend
82+
// SlimLog in batch-export's pkg/filestore and republish the snapshot first;
83+
// otherwise the field is silently empty for snapshot-sourced logs.
7484
func (f *SnapshotLogFilterer) parseLogs(reader io.Reader) error {
7585
var parsedLogs []types.Log
7686
var currentMaxBlockHeight uint64

0 commit comments

Comments
 (0)