Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions blockchain/sync/core/epoch_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (data *EpochData) queryReceipts(client sdk.ClientOperator) error {
epochNumber := pivotBlock.EpochNumber.ToInt().Uint64()
for _, blockReceipts := range epochReceipts {
for _, receipt := range blockReceipts {
if receipt.EpochNumber == nil || uint64(*receipt.EpochNumber) != epochNumber {
if uint64(receipt.EpochNumber) != epochNumber {
return errors.Errorf("Receipt epoch number mismatch %v", receipt.EpochNumber)
}
}
Expand Down Expand Up @@ -105,7 +105,7 @@ func (data *EpochData) queryTraces(client sdk.ClientOperator) error {

// try to detect reorg
for i, v := range traces.CfxTraces {
if v.EpochHash == nil || *v.EpochHash != pivotBlock.Hash {
if v.EpochHash != pivotBlock.Hash {
return errors.Errorf("Trace epoch hash mismatch with pivot block hash, index = %v", i)
}
}
Expand Down
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/Conflux-Chain/go-conflux-util
go 1.23.0

require (
github.com/Conflux-Chain/go-conflux-sdk v1.5.11
github.com/Conflux-Chain/go-conflux-sdk v1.6.1
github.com/DmitriyVTitov/size v1.5.0
github.com/PagerDuty/go-pagerduty v1.8.0
github.com/ethereum/go-ethereum v1.15.11
Expand Down Expand Up @@ -49,6 +49,7 @@ require (
github.com/deckarep/golang-set v1.8.0 // indirect
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
github.com/deepmap/oapi-codegen v1.8.2 // indirect
github.com/ethereum/c-kzg-4844/v2 v2.1.1 // indirect
github.com/ethereum/go-verkle v0.2.2 // indirect
github.com/fatih/color v1.16.0 // indirect
Expand All @@ -70,6 +71,8 @@ require (
github.com/holiman/uint256 v1.3.2 // indirect
github.com/huin/goupnp v1.3.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/influxdata/influxdb-client-go/v2 v2.4.0 // indirect
github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097 // indirect
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
Expand Down
Loading
Loading