mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-19 00:54:12 +00:00
Fix compilation error in hack.go (#1633)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
This commit is contained in:
parent
6af1288831
commit
08174e8e2d
@ -936,7 +936,7 @@ func readAccount(chaindata string, account common.Address) error {
|
|||||||
return fmt.Errorf("acc not found")
|
return fmt.Errorf("acc not found")
|
||||||
}
|
}
|
||||||
fmt.Printf("CodeHash:%x\nIncarnation:%d\n", a.CodeHash, a.Incarnation)
|
fmt.Printf("CodeHash:%x\nIncarnation:%d\n", a.CodeHash, a.Incarnation)
|
||||||
if err := db.KV().View(context.Background(), func(tx ethdb.Tx) error {
|
if err := db.RwKV().View(context.Background(), func(tx ethdb.Tx) error {
|
||||||
c := tx.Cursor(dbutils.PlainStateBucket)
|
c := tx.Cursor(dbutils.PlainStateBucket)
|
||||||
for k, v, e := c.Seek(account.Bytes()); k != nil && e == nil; k, v, e = c.Next() {
|
for k, v, e := c.Seek(account.Bytes()); k != nil && e == nil; k, v, e = c.Next() {
|
||||||
if e != nil {
|
if e != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user