Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Not in chain...Asking for block from..." loop? #61

Closed
nicocesar opened this issue May 29, 2014 · 7 comments
Closed

"Not in chain...Asking for block from..." loop? #61

nicocesar opened this issue May 29, 2014 · 7 comments
Milestone

Comments

@nicocesar
Copy link

I get the following

$ bin/ethereal.sh
2014/05/28 23:48:38 [CHAIN] Last known block height #0
2014/05/28 23:48:38 Last block: f5232afe32aba6b366f8aa86a6939437c5e13d1fd71a0f51e77735d3456eb1a6
2014/05/28 23:48:38 Starting Ethereum GUI v0.5.0 RC11
2014/05/28 23:48:38 Ready and accepting connections
2014/05/28 23:48:38 [SERV] Retrieving seed nodes
2014/05/28 23:48:38 [SERV] Found DNS Go Peer: 94.242.229.217:30303
2014/05/28 23:48:38 [SERV] Adding peer (94.242.229.217:30303) 1 / 10
2014/05/28 23:48:39 [SERV] Found DNS Bootstrap Peer: 54.200.139.158:30303
2014/05/28 23:48:39 [SERV] Adding peer (54.200.139.158:30303) 2 / 10
2014/05/28 23:48:39 [GUI] Starting GUI
2014/05/28 23:48:39 Requesting blockchain f5232afe... from peer 94.242.229.217:30303
2014/05/28 23:48:39 [PEER] connected 94.242.229.217:30303 [Peer discovery | Block chain relaying | Transaction relaying]
2014/05/28 23:48:41 Not in chain: f5232afe32aba6b366f8aa86a6939437c5e13d1fd71a0f51e77735d3456eb1a6
2014/05/28 23:48:41 Asking for block from f5232afe32aba6b366f8aa86a6939437c5e13d1fd71a0f51e77735d3456eb1a6 (1 total) from 94.242.229.217:30303
2014/05/28 23:48:43 Not in chain: f5232afe32aba6b366f8aa86a6939437c5e13d1fd71a0f51e77735d3456eb1a6
2014/05/28 23:48:43 Asking for block from f5232afe32aba6b366f8aa86a6939437c5e13d1fd71a0f51e77735d3456eb1a6 (1 total) from 94.242.229.217:30303

... this is from commit 0b4c42d

Is there a way to select my peers? seem that 94.242.229.217:30303 and 54.200.139.158:30303 don't have f5232afe32aba6b366f8aa86a6939437c5e13d1fd71a0f51e77735d3456eb1a6

What are my options?

@obscuren
Copy link
Contributor

Make sure you delete your chain. It's either you spamming the network or someone else is which you're trying to insert into your chain. I'll get some anti spam soon.

@nicocesar
Copy link
Author

I already move ~/.ethereum out of the way. Is there anything else I should delete ?
How can I avoid spamming? this is a fresh compilation with no data...

@nicocesar
Copy link
Author

just to add something more to the situation. My test in ethchain marks as failed :(

github.com/ethereum/eth-go/ethchain

ethchain/state_test.go:4: imported and not used: "fmt"
ethchain/vm_test.go:65: assignment count mismatch: 2 = 3

@obscuren
Copy link
Contributor

Could you checkout develop and retry? You should definitely not be seeing that

@obscuren obscuren added this to the poc5 milestone May 30, 2014
@nicocesar
Copy link
Author

So, I changed github.com/ethereum/go-ethereum/ethereal to develop branch ( commit f0f2050 )

I notice that master and develop are the same now in github.com/ethereum/eth-go (commit 17c825f )

removed /home/ncesar/.ethereal

and now I get a panic: object does not expose a method "addLog"

2014/05/30 13:03:02 Debug logging directory /home/ncesar/.ethereal doesn't exist, creating it
2014/05/30 13:03:12 UPnP failed write udp4: i/o timeout
2014/05/30 13:03:12 f8abf8a7a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347940000000000000000000000000000000000000000a012582945fc5ad12c3e7b67c4fc37a68fc0d52d995bb7f7291ff41a2739a7ca1680834000008080830f4240808080a004994f67dc55b09e814ab7ffc8df3686b4afb2bb53e60eae97ef043fe03fb829c0c0
2014/05/30 13:03:12 Last block: c305511e7cb9b33767e50f5e94ecd7b1c51359a04f45183860ec6808d80b0d3f
2014/05/30 13:03:12 Starting Ethereum GUI v0.5.0 RC11
2014/05/30 13:03:12 Ready and accepting connections
2014/05/30 13:03:12 [SERV] Retrieving seed nodes
2014/05/30 13:03:12 [SERV] Found DNS Go Peer: 94.242.229.217:30303
2014/05/30 13:03:12 [SERV] Adding peer (94.242.229.217:30303) 1 / 10
2014/05/30 13:03:12 [SERV] Found DNS Bootstrap Peer: 54.200.139.158:30303
2014/05/30 13:03:12 [SERV] Adding peer (54.200.139.158:30303) 2 / 10
2014/05/30 13:03:12 [GUI] Starting GUI
panic: object does not expose a method "addLog"

goroutine 1 [running]:
runtime.panic(0x7dae00, 0xc210543bb0)
/usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
github.com/go-qml/qml.cmust(0x2744a00)
/home/ncesar/src/go-ethereum/src/github.com/go-qml/qml/qml.go:832 +0x7c
github.com/go-qml/qml.(_Common).Call(0xc21097a1d0, 0x9286a0, 0x6, 0xc21097a1e0, 0x1, ...)
/home/ncesar/src/go-ethereum/src/github.com/go-qml/qml/qml.go:687 +0x1ae
github.com/ethereum/go-ethereum/ethereal/ui.(_Gui).Println(0xc2100b0840, 0xc21097a180, 0x1, 0x1)
/home/ncesar/src/go-ethereum/src/github.com/ethereum/go-ethereum/ethereal/ui/gui.go:295 +0x1eb
github.com/ethereum/eth-go/ethutil.(_Logger).Infoln(0xc2100ad100, 0xc21097a180, 0x1, 0x1)
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/ethutil/config.go:168 +0x8d
github.com/ethereum/go-ethereum/ethereal/ui.(_Gui).Start(0xc2100b0840, 0x7fff52544371, 0x50)
/home/ncesar/src/go-ethereum/src/github.com/ethereum/go-ethereum/ethereal/ui/gui.go:97 +0x6ff
main.main()
/home/ncesar/src/go-ethereum/src/github.com/ethereum/go-ethereum/ethereal/ethereum.go:141 +0x982

goroutine 3 [syscall]:
os/signal.loop()
/usr/lib/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
/usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x31

goroutine 4 [syscall]:
runtime.goexit()
/usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 6 [syscall]:
github.com/go-qml/qml._Cfunc_applicationExec(0x106f990)
github.com/go-qml/qml/_obj/_cgo_defun.c:58 +0x31
github.com/go-qml/qml.guiLoop()
/home/ncesar/src/go-ethereum/src/github.com/go-qml/qml/bridge.go:43 +0x132
created by github.com/go-qml/qml.Init
/home/ncesar/src/go-ethereum/src/github.com/go-qml/qml/qml.go:44 +0xa0

goroutine 7 [finalizer wait]:
runtime.park(0x49e700, 0x1064758, 0x1045248)
/usr/lib/go/src/pkg/runtime/proc.c:1342 +0x66
runfinq()
/usr/lib/go/src/pkg/runtime/mgc0.c:2279 +0x84
runtime.goexit()
/usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 8 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc2100856c0)
/home/ncesar/src/go-ethereum/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:117 +0x1c5
created by github.com/syndtr/goleveldb/leveldb.openDB
/home/ncesar/src/go-ethereum/src/github.com/syndtr/goleveldb/leveldb/db.go:116 +0x429

goroutine 9 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).compaction(0xc2100856c0)
/home/ncesar/src/go-ethereum/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:447 +0x75f
created by github.com/syndtr/goleveldb/leveldb.openDB
/home/ncesar/src/go-ethereum/src/github.com/syndtr/goleveldb/leveldb/db.go:119 +0x46a

goroutine 10 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).writeJournal(0xc2100856c0)
/home/ncesar/src/go-ethereum/src/github.com/syndtr/goleveldb/leveldb/db_write.go:36 +0x142
created by github.com/syndtr/goleveldb/leveldb.openDB
/home/ncesar/src/go-ethereum/src/github.com/syndtr/goleveldb/leveldb/db.go:120 +0x481

goroutine 12 [select]:
github.com/ethereum/eth-go/ethchain.(_TxPool).queueHandler(0xc2100b0120)
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/ethchain/transaction_pool.go:184 +0x2c8
created by github.com/ethereum/eth-go/ethchain.(_TxPool).Start
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/ethchain/transaction_pool.go:255 +0x2e

goroutine 16 [IO wait]:
net.runtime_pollWait(0x7ff422ce1108, 0x72, 0x0)
/usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(_pollDesc).Wait(0xc210532220, 0x72, 0x7ff422cde148, 0xb)
/usr/lib/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(_pollDesc).WaitRead(0xc210532220, 0xb, 0x7ff422cde148)
/usr/lib/go/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(_netFD).accept(0xc2105321c0, 0xa10538, 0x0, 0x7ff422cde148, 0xb)
/usr/lib/go/src/pkg/net/fd_unix.go:382 +0x2c2
net.(_TCPListener).AcceptTCP(0xc2105008a0, 0x0, 0x0, 0x0)
/usr/lib/go/src/pkg/net/tcpsock_posix.go:233 +0x47
net.(_TCPListener).Accept(0xc2105008a0, 0x0, 0x0, 0x0, 0x0)
/usr/lib/go/src/pkg/net/tcpsock_posix.go:243 +0x27
github.com/ethereum/eth-go.(_Ethereum).peerHandler(0xc210080000, 0x7ff422ce6610, 0xc2105008a0)
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/ethereum.go:429 +0x2d
created by github.com/ethereum/eth-go.(*Ethereum).Start
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/ethereum.go:356 +0x2a5

goroutine 17 [chan receive]:
github.com/ethereum/eth-go.(_Ethereum).ReapDeadPeerHandler(0xc210080000)
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/ethereum.go:338 +0x67
created by github.com/ethereum/eth-go.(_Ethereum).Start
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/ethereum.go:364 +0x18e

goroutine 19 [IO wait]:
net.runtime_pollWait(0x7ff422ce1060, 0x77, 0x0)
/usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(_pollDesc).Wait(0xc21004cb50, 0x77, 0x7ff422cde148, 0x72)
/usr/lib/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(_pollDesc).WaitWrite(0xc21004cb50, 0x72, 0x7ff422cde148)
/usr/lib/go/src/pkg/net/fd_poll_runtime.go:90 +0x30
net.(_netFD).connect(0xc21004caf0, 0x0, 0x0, 0x7ff422ce01c8, 0xc2100ad3a0, ...)
/usr/lib/go/src/pkg/net/fd_unix.go:86 +0x166
net.(_netFD).dial(0xc21004caf0, 0x7ff422ce6648, 0x0, 0x7ff422ce6648, 0xc2100aac90, ...)
/usr/lib/go/src/pkg/net/sock_posix.go:121 +0x2fd
net.socket(0x93ade0, 0x3, 0x2, 0x1, 0x0, ...)
/usr/lib/go/src/pkg/net/sock_posix.go:91 +0x40b
net.internetSocket(0x93ade0, 0x3, 0x7ff422ce6648, 0x0, 0x7ff422ce6648, ...)
/usr/lib/go/src/pkg/net/ipsock_posix.go:136 +0x161
net.dialTCP(0x93ade0, 0x3, 0x0, 0xc2100aac90, 0xecb1ab0ee, ...)
/usr/lib/go/src/pkg/net/tcpsock_posix.go:155 +0xef
net.dialSingle(0x93ade0, 0x3, 0xc210531da0, 0x14, 0x0, ...)
/usr/lib/go/src/pkg/net/dial.go:225 +0x3d8
net.func·015(0xecb1ab0ee, 0x1570420e, 0x1066740, 0x6fc23ac00, 0xecb1ab0ee, ...)
/usr/lib/go/src/pkg/net/dial.go:158 +0xde
net.dial(0x93ade0, 0x3, 0x7ff422ce65e0, 0xc2100aac90, 0x7ff418273e38, ...)
/usr/lib/go/src/pkg/net/fd_unix.go:40 +0x45
net.(*Dialer).Dial(0xc210087dc0, 0x93ade0, 0x3, 0xc210531da0, 0x14, ...)
/usr/lib/go/src/pkg/net/dial.go:165 +0x3e0
net.DialTimeout(0x93ade0, 0x3, 0xc210531da0, 0x14, 0x6fc23ac00, ...)
/usr/lib/go/src/pkg/net/dial.go:145 +0xaa
github.com/ethereum/eth-go.func·010()
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/peer.go:168 +0x5f
created by github.com/ethereum/eth-go.NewOutboundPeer
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/peer.go:182 +0x14f

goroutine 20 [select]:
github.com/ethereum/eth-go.(_Peer).HandleOutbound(0xc21051d540)
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/peer.go:226 +0x246
created by github.com/ethereum/eth-go.(_Peer).Start
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/peer.go:507 +0x2a0

goroutine 21 [sleep]:
time.Sleep(0x1dcd6500)
/usr/lib/go/src/pkg/runtime/time.goc:31 +0x31
github.com/ethereum/eth-go.(_Peer).HandleInbound(0xc21051d540)
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/peer.go:268 +0x5f
created by github.com/ethereum/eth-go.(_Peer).Start
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/peer.go:509 +0x2ba

@nicocesar
Copy link
Author

commit be27309 has the same addLog issue.

BTW, @obscuren since it's not a ' "Not in chain...Asking for block from..." loop? ' anymore, should we close this issue and open a new one?

@obscuren
Copy link
Contributor

Yes. Closed

fjl pushed a commit to fjl/go-ethereum that referenced this issue Oct 23, 2014
…hereum#61

* CLI ethereum should no longer require the Qt/QML package
recmo pushed a commit to recmo/go-ethereum that referenced this issue Feb 17, 2021
maoueh pushed a commit to streamingfast/go-ethereum that referenced this issue Aug 13, 2021
maoueh pushed a commit to streamingfast/go-ethereum that referenced this issue Aug 13, 2021
tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this issue Jan 20, 2022
jwasinger added a commit to jwasinger/go-ethereum that referenced this issue Jan 24, 2022
* use proof serialization

* remove cruft

* save current state

* fix most issues up to this point

* fix remaining build issues

* update the go.mod to use the right branch

* remove custom-defined set type

* update go-verkle to get merged PRs

* extract key, value data from proof

* only activate precomp calculations if this is a verkle chain

Co-authored-by: Jared Wasinger <[email protected]>
Inphi pushed a commit to Inphi/go-ethereum that referenced this issue Dec 2, 2022
zhiqiangxu pushed a commit to zhiqiangxu/go-ethereum that referenced this issue Dec 5, 2022
Co-authored-by: blockchaindevsh <[email protected]>
joshuacolvin0 pushed a commit to joshuacolvin0/go-ethereum that referenced this issue Jan 4, 2023
…onfigs

Extend ArbitrumChainParams (part of Configurable chain configs)
jsign pushed a commit to jsign/go-ethereum that referenced this issue Feb 15, 2023
verkle: Implement Trie, NodeIterator and Database ifs

Fix crash in TestDump

Fix TestDump

Fix TrieCopy

remove unnecessary traces

fix: Error() returned errIteratorEnd in verkle node iterator

rewrite the iterator and change the signature of OpenStorageTrie

add the adapter to reuse the account trie for storage

don't try to deserialize a storage leaf into an account

Fix statedb unit tests (ethereum#14)

* debug code

* Fix more unit tests

* remove traces

* Go back to the full range

One tree to rule them all

remove updateRoot, there is no root to update

store code inside the account leaf

fix build

save current state for Sina

Update go-verkle to latest

Charge WITNESS_*_COST gas on storage loads

Add witness costs for SSTORE as well

Charge witness gas in the case of code execution

corresponding code deletion

add a --verkle flag to separate verkle experiments from regular geth operations

use the snapshot to get data

stateless execution from block witness

AccessWitness functions

Add block generation test + genesis snapshot generation

test stateless block execution (ethereum#18)

* test stateless block execution

* Force tree resolution before generating the proof

increased coverage in stateless test execution (ethereum#19)

* test stateless block execution

* Force tree resolution before generating the proof

* increase coverage in stateless test execution

ensure geth compiles

fix issues in tests with verkle trees deactivated

Ensure stateless data is available when executing statelessly (ethereum#20)

* Ensure stateless data is available when executing statelessly

* Actual execution of a statless block

* bugfixes in stateless block execution

* code cleanup

 - Reduce PR footprint by reverting NewEVM to its original signature
 - Move the access witness to the block context
 - prepare for a change in AW semantics
   Need to store the initial values.
 - Use the touch helper function, DRY

* revert the signature of MustCommit to its original form (ethereum#21)

fix leaf proofs in stateless execution (ethereum#22)

* Fixes in witness pre-state

* Add the recipient's nonce to the witness

* reduce PR footprint and investigate issue in root state calculation

* quick build fix

cleanup: Remove extra parameter in ToBlock

revert ToBlock to its older signature

fix import cycle in vm tests

fix linter issue

fix appveyor build

fix nil pointers in tests

Add indices, yis and Cis to the block's Verkle proof

upgrade geth dependency to drop geth's common dep

fix cmd/devp2p tests

fix rebase issues

quell an appveyor warning

fix address touching in SLOAD and SSTORE

fix access witness for code size

touch target account data before calling

make sure the proper locations get touched in (ext)codecopy

touch all code pages in execution

add pushdata to witness

remove useless code in genesis snapshot generation

testnet: fix some of the rebase/drift issues

Fix verkle proof generation in block

fix an issue occuring when chunking past the code size

fix: ensure the code copy doesn't extend past the code size

Upgrade go-verkle to its IPA version (ethereum#24)

fixes for the IPA testnet

upgrade to latest go-verkle

update go-verkle to get more fixes

simplify code by removing all stateless references (ethereum#25)

fix verkle proof test by enforcing values alignment to 32 bytes

remove unneeded KZG tag

fix the stateless test

Move AccessWitness into StateDB (ethereum#27)

* move AccessWitness into StateDB

* set Accesses in TxContext constructor

* Ensures that a statedb is initialized with a witness

* copy AccessWitness in StateDB.Copy.  use copied state in miner worker.commit.

* remove redundant line

Co-authored-by: Guillaume Ballet <[email protected]>

Fix contract creation issue

enable verkle on cancun block: take 2 (ethereum#28)

* enable verkle on cancun block: take 2

* fix typo.  make unreachable line panic message more clear

fix rebase issues

fix linter issue

merge undefined instead of panicking (ethereum#30)

initialize the new access witness if not already present

fix boundary check in PUSH

fix bound check in code chunking

fix boundary condition check in PUSH32

add circleci support (ethereum#32)

* add circleci support

* disable linter, which is broken again

* actually run tests

remove unnecessary cancun block declaration in tests (ethereum#33)

upgrade go version (ethereum#34)

fix calculation in get_tree_key_for_storage_slot (ethereum#35)

use the witness in statedb, revert applyTx signature (ethereum#36)

* use the witness in statedb, revert applyTx signature

* fix miner tests

* fix catalyst build

Remove access witness from the signature of Process (ethereum#38)

consensus/ethash: ensure uncle accounts are included in block witness (ethereum#40)

consensus/ethash: move accumulation of coinbase witness before coinbase account is credited (ethereum#41)

remove outdated comment

miner: embed verkle proof in sealing block (ethereum#39)

* miner: embed verkle proof in sealing block

* add test to ensure that verkle proof is present in mined blocks

Refactor witness-accumulation in EVM (ethereum#42)

* make push dynamically-charged.  charge witness gas costs for push.  refactor evm witness gas charging to move logic for touching a range of bytecode into a helper method 'touchEachChunksAndChargeGas'

* add witness gas calculation for CodeCopy, ExtCodeCopy, SLoad back to gas_table.go

* witness gas charging for CALL

* remove explicit reference to evm.TxContext

* core/vm: make touchEachChunksAndCharge gas handle nil code value

* core/vm: call implementation, separate out witnesses into touch/set

* some fixes

* remove witness touching from opCall: this will go in evm.go

* remove witness touching for call from gas_table.go

* (hopefully) fix tests

* add SSTORE witness charging that was removed mistakenly

* charge witness gas for call

* clean up and comment touchEachChunksAndChargeGas

* make suggested changes

* address remaining points

* fix build issues

* remove double-charging for contract creation witness gas charging

call onleaf in verkle commit (ethereum#45)

replace sha256 with pedersen_hash in get_key (ethereum#46)

* replace sha256 with pedersen_hash

* fix: prevent an OOB

* workaround timeout in unit test

* update go-ipa and reduce the timeout

* fix for unit tests: do not call NewAccessWitness in NewEVMTxContext (ethereum#49)

* potential fix: do not call NewAccessWitness in NewEVMTxContext

* more fixes: check for the existence of Accesses

* fix absence of witness in copy

* fix another witness issue

* workaround: ensure the prefetcher is off in verkle mode

* fix the remaining issues in tests

* review feedback

* fix witness allocation in stateless test

reactivate working lines in test

fix: don't create settings each time a key is calculated (ethereum#53)

fix: don't use rlp in the tree for slot values (ethereum#51)

* fix: don't use rlp in the tree for slot values

* fix timeout after rebase

core/vm: don't include contract deployer bytecode in AccessWitness or charge witness access costs for it (ethereum#54)

Verkle EXTCODECOPY implementation (ethereum#55)

* core/vm: verkle extcodecopy naive way (do jumpdest analysis on target contract every EXTCODECOPY)

* no double-charge

* address edge-case in touchEachChunksAndChargeGas

* simplify line

Co-authored-by: Guillaume Ballet <[email protected]>

Use IsCancun where applicable (ethereum#56)

* replace Accesses != nil with IsCancun(...)

* fix

Charge witness gas when calling/creating a contract (ethereum#60)

* Charge witness gas when calling/creating a contract

Co-authored-by: Jared Wasinger <[email protected]>

* gofmt

* replace checks with evm.Access!=nil with IsCancun

* remove double-charging of witness access costs for contract creation initialization

Co-authored-by: Jared Wasinger <[email protected]>

verkle proof deserialization (ethereum#61)

* use proof serialization

* remove cruft

* save current state

* fix most issues up to this point

* fix remaining build issues

* update the go.mod to use the right branch

* remove custom-defined set type

* update go-verkle to get merged PRs

* extract key, value data from proof

* only activate precomp calculations if this is a verkle chain

Co-authored-by: Jared Wasinger <[email protected]>

fix: build more than one block in stateless test (ethereum#66)

* reproduce the bug

* fix the nil AccessWitness when Resetting

* fix nonce management in blocks

* fix: make sure the snapshot is reused during the chain generation

Fix GetTreeKey (ethereum#65)

* trie/utils: fix GetTreeKey

* disable the faulty test, tracking issue opened

Co-authored-by: Guillaume Ballet <[email protected]>

Implement latest stateless gas charging spec (ethereum#63)

* latest stateless gas-charging spec: add write event charging

* rename gas calculation function so that it doesn't seem it's charging gas

Co-authored-by: Guillaume Ballet <[email protected]>

Various fixes for rust-verkle proof format compatibility (ethereum#67)

* code to extract the block

* separate proof from keys in block

* display state root of block 0

* change file name to reflect the correct block number

* use RLP instead of flat binary for keyvals in block

* update go-verkle to fix build

* fix rebase issues

* make test pass

* fix issue in map copy

Co-authored-by: Jared Wasinger <[email protected]>

Fix contract creation aw (ethereum#68)

* fix contract creation AccessWitness

* remove tracing

* remove tracing

* remove block2.rlp

* move repeated error message into its own error type

fix a couple linter issues

Sload fix (ethereum#69)

* move SLOAD gas calculation to gasSLoadEIP2929

* re-add gasSLoad, used by SSTORE

* make requested changes

fix: witness gas costs being charged more than once (ethereum#70)

* fix: witness gas costs being charged more than one

* update test case

Co-authored-by: Jared Wasinger <[email protected]>

re-enable VerkleTrie::ToDot

core/state: implement GetCodeSize for VerkleDB (ethereum#75)

implement core/state: implement GetCodeSize for VerkleDB

copy the pre-state, use an untouched copy for the proof (ethereum#72)

test to compare the proof format with that of rust verkle (ethereum#73)

* test to compare the proof format with that of rust verkle

* comment block extraction code

check proof in verkle tree test

don't delete from the trie when we encounter empty state object if verkle is enabled (ethereum#74)

core/state: write code to rawdb under codehash key when verkle is enabled (ethereum#76)

force the 32-byte alignment of nonce and balance (ethereum#71)

* force the 32-byte alignment of nonce and balance

* review feedback: fix endianness in output

core/state - ensure storage value is set properly in snapshot when verkle is enabled (ethereum#78)

fixes for the return type change in go-verkle (ethereum#77)

* fixes for the return type change in go-verkle

* update go-verkle

* fix endianness issue + workaround for witness fix

* add changes to miner

Co-authored-by: Jared Wasinger <[email protected]>

calculate tree index correctly for SLOAD access event (ethereum#79)

core/vm: witness write event for SSTORE (ethereum#80)

* core/vm: witness write event for SSTORE

* remove TODO that is addressed by this branch

fix estimateGas (handle ErrInsufficientBalanceWitness).  Return proper error message when ErrInsufficientBalanceWitness is encountered (ethereum#81)

Verkle/fix/perdersen hash (ethereum#84)

* remove ineffective statement

* fix endianness in pedersen_hash

refactor: set witness account values in getStateObject() (ethereum#83)

* enforce 32-byte alignment

* save current state

* write account values to witness from getObject

* code cleanup + sanity checks

* fix RLP serialization of missing keys

* remove code redundancy for GetTreeKeyCodeChunk

* fix stem calculation issue for code and storage

* remove redundant SetLeafValue calls

* Add a contract creation tx to the test

* fix botched module version update

* detail gas calculation cost in verkle contract deployment

fix verkle trie iterator to not miss leaf values in the first index of a leaf node (ethereum#88)

creation-time CODECOPY adds no code to the witness (ethereum#86)

* creation-time CODECOPY adds no code to the witness

* Add a more complex test to ensure EXTCODECOPY is called

* Fix offset calculations in the slot function

* minor tweaks

* fix initial value capture for storage

* fix build

* fix: get the proper byte in get_tree_key_for_storage_slot

* fix length calculation in getDataAndAdjustedBounds

* fix verkle test

small simplification in order to facilitate rebase

upgrade go-ipa + go-verkle: faster precomp loading

fix: place slot value, not its rlp encoding in witness

fix: code chunification with incorrect header (ethereum#89)

* fix: code chunification with incorrect header

* add a test from rust-verkle and fix offset bug

* fix ci build

* complete coverage of rust-verkle chunking tests

* fix: make sure the witness value is set

* add another code chunking test from rust-verkle

spec: don't add the trailing pushdata for a final PUSHn (ethereum#90)

cleanup: don't evaluate 0 coeffs in get_tree_key (ethereum#87)

ensure no overflow occurs in the chunk touch function

load the full coinbase account in reward

fix: previous commit broke stateless test

rework the way the gas is charged per code chunk

update go-verkle to grab the fix for ethereum#200

fix: don't add PUSH1-data during contract deployment (ethereum#91)

* fix: don't add PUSH1-data during contract deployment

* remove import cycle in tests (ethereum#92)

fix: redundant proof-of-absence stems (ethereum#93)

test: missing children of the same internal node produce a single extension status (ethereum#94)

ParseNode with commitment parameter (ethereum#95)

review feedback for rebase over kiln (ethereum#97)

safe gas add (ethereum#98)

* safe gas add

* fix build

ensure 10-byte addresses are right-aligned in pedersen_hash (ethereum#99)

Co-authored-by: Tanishq Jasoria <[email protected]>

Remove the code analysis interface to reduce PR footprint (ethereum#100)

* Remove the code analysis interface to reduce PR footprint

* fix unit test

fix: set IsDeployment=false outside of contract creation (ethereum#101)

remove trailing line

verkle test: count the code chunks in the witness (ethereum#102)

temp fix: little endian pedersen_hash (ethereum#103)

factor the amount of polynomial evaluations in access witness (ethereum#106)

reuse polynomial evaluation in account update (ethereum#108)

fix: remove redundant balance touching in access witness (ethereum#107)

add github workflow

reuse address point evaluation in code chunking (ethereum#109)
protolambda added a commit to protolambda/go-ethereum that referenced this issue Jul 14, 2023
The gas price oracle calculates L1 data costs using an unsigned transaction. However, `op-geth` was calculating L1 data costs using a _signed_ transaction, which included an additional 68 unnecessary bytes (1088 gas) in the cost.

This PR removes those extra bytes as part of the Regolith hardfork.

Co-authored-by: protolambda <[email protected]>
lochjin pushed a commit to lochjin/go-ethereum that referenced this issue Nov 22, 2024
feat:modify insert stats report log level to debug
s1na pushed a commit to s1na/go-ethereum that referenced this issue Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants