Skip to content

Commit 26e392d

Browse files
authored
upgrade go-conflux-sdk (#93)
* upgrade go-conflux-sdk
1 parent 6ff8580 commit 26e392d

File tree

3 files changed

+48
-5
lines changed

3 files changed

+48
-5
lines changed

blockchain/sync/core/epoch_data.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (data *EpochData) queryReceipts(client sdk.ClientOperator) error {
7777
epochNumber := pivotBlock.EpochNumber.ToInt().Uint64()
7878
for _, blockReceipts := range epochReceipts {
7979
for _, receipt := range blockReceipts {
80-
if receipt.EpochNumber == nil || uint64(*receipt.EpochNumber) != epochNumber {
80+
if uint64(receipt.EpochNumber) != epochNumber {
8181
return errors.Errorf("Receipt epoch number mismatch %v", receipt.EpochNumber)
8282
}
8383
}
@@ -105,7 +105,7 @@ func (data *EpochData) queryTraces(client sdk.ClientOperator) error {
105105

106106
// try to detect reorg
107107
for i, v := range traces.CfxTraces {
108-
if v.EpochHash == nil || *v.EpochHash != pivotBlock.Hash {
108+
if v.EpochHash != pivotBlock.Hash {
109109
return errors.Errorf("Trace epoch hash mismatch with pivot block hash, index = %v", i)
110110
}
111111
}

go.mod

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/Conflux-Chain/go-conflux-util
33
go 1.23.0
44

55
require (
6-
github.com/Conflux-Chain/go-conflux-sdk v1.5.11
6+
github.com/Conflux-Chain/go-conflux-sdk v1.6.1
77
github.com/DmitriyVTitov/size v1.5.0
88
github.com/PagerDuty/go-pagerduty v1.8.0
99
github.com/ethereum/go-ethereum v1.15.11
@@ -49,6 +49,7 @@ require (
4949
github.com/deckarep/golang-set v1.8.0 // indirect
5050
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
5151
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
52+
github.com/deepmap/oapi-codegen v1.8.2 // indirect
5253
github.com/ethereum/c-kzg-4844/v2 v2.1.1 // indirect
5354
github.com/ethereum/go-verkle v0.2.2 // indirect
5455
github.com/fatih/color v1.16.0 // indirect
@@ -70,6 +71,8 @@ require (
7071
github.com/holiman/uint256 v1.3.2 // indirect
7172
github.com/huin/goupnp v1.3.0 // indirect
7273
github.com/inconshreveable/mousetrap v1.1.0 // indirect
74+
github.com/influxdata/influxdb-client-go/v2 v2.4.0 // indirect
75+
github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097 // indirect
7376
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
7477
github.com/jinzhu/inflection v1.0.0 // indirect
7578
github.com/jinzhu/now v1.1.5 // indirect

0 commit comments

Comments
 (0)