Temirlan
44266a9237
rcpdaemon, erigon: add --rpc.evmtimeout flag ( #5395 )
2022-09-17 13:25:27 +07:00
Alex Sharov
25e615a878
erigon22: historyReader22 and more tests ( #5281 )
...
* save
* save
2022-09-05 21:31:00 +07:00
ledgerwatch
693017c554
Cleanup Tevm experimental code ( #5259 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-09-01 19:49:29 +01:00
hexoscott
c61fbff74c
fix eth gas estimate when no pending block is available ( #4898 )
2022-08-04 11:47:11 +01:00
Enrique Jose Avila Asapche
0908536e0a
check if eip-1559 ( #4927 )
2022-08-04 12:30:20 +03:00
bgelb
6481757175
fix regressions in trace_call and eth_createAccessList introduced by PR #3517 ( #4807 )
2022-07-24 09:50:43 +01:00
Enrique Jose Avila Asapche
d72fba3bec
eth_estimateGas: read header instead of whole block ( #4561 )
...
* check if block is nil
* using read header
* returning 0, nil
2022-06-29 17:29:31 +03:00
Alex Sharov
b315394c48
eth_estimateGas to use snapshots and blocksLRU ( #4556 )
2022-06-28 13:56:08 +06:00
Enrique Jose Avila Asapche
352e5b3d2a
Clean up ( #4445 )
...
* changed to rpchelper
* got rid of getBlockNumber file
2022-06-14 14:29:49 +01:00
Enrique Jose Avila Asapche
a5cb53d690
safe and finalized blocks from eth_getBlockByNumber ( #4436 )
...
* added getFinalzed and getSafe block num
* added rpc finalized and safe block num
* getting nums
* returning nil
* returning nil
* added to helper.go
* removed repeated code
* added functions into rpchelper
* returning err
* simplified
* using previous latest getter
* getting pending block with filter/
* Fix plain state block number
* Fix test
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-14 11:07:46 +03:00
ledgerwatch
fd8adddce8
trace_filter implementation based on erigon 2 update 2 data ( #4431 )
...
* trace_filter implementation based on erigon 2 update 2 data
* Fix test compile, extract txNums
* Update to erigon-lib, add generic heap
* Fix getHeaderHash for RPC methods
* Missing files
* Skip tests
* Add reward traces
* Filter trace lint
* Reinstate filtering
* Print
* Print
* Fix
* Print
* Print txNums
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* Remove prints
* Fix nil dereference
* Inclusive toBlock bound
* Print
* Print
* Hack
* remove some deps
* Fix lint
* Update erigon-lib
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-12 12:44:01 +01:00
Igor Mandrigin
7f1771516c
Fix 'all defaults' case for eth_estimateGas ( #3790 )
...
* Fix 'all defaults' case for eth_estimateGas
* fix tests
Co-authored-by: Igor Mandrigin <i@mandrigin.ru>
2022-03-30 08:04:51 +07:00
alex.sharov
6ac254b54e
fix devel
2022-03-12 09:54:07 +07:00
ledgerwatch
2d1d71153a
Update eth_call.go
2022-03-12 00:16:18 +00:00
leonardchinonso
14b300214a
Feature/test event logs ( #3631 )
...
* Adding contract code for event logs subscription
* Saving changes
* gofmt'd files
* Setting up devnet test tool for log subscription testing
* Fixed lint errors
* Changes to debug case
* fixed linting
* Committing debugging changes
* Finalised contract tx creation and mining
* Fixed lint errors
* Made base fee upper limit a constant
2022-03-09 22:45:24 +00:00
Enrique Jose Avila Asapche
a65f12b248
State override support ( #3628 )
...
* added stateOverride type
* solved import cycle
* refactoring
* imported wrong package
* fixed Call arguments
* typo
* override for traceCall
2022-03-01 15:40:24 +00:00
ledgerwatch
ee488020dd
Auto detect latest block for optimal use of plain state and state cache ( #3598 )
...
* Auto detect latest block for optimal use of plain state and state cache
* Fix lint
* Fix test
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-02-23 23:42:14 +00:00
ledgerwatch
266625f56a
Fixes to access list and state overrides ( #3570 )
...
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-02-22 10:29:02 +00:00
Andrew Ashikhmin
64f4de50cd
Optimized eth_createAccessList ( #3453 )
...
* Make blockNrOrHash optional in CreateAccessList (in line with geth)
* OptimizedAccessList
* cosmetics
* optimizeGas param instead of separate method
* Inline toAddress
2022-02-14 18:39:45 +00:00
Alex Sharov
f3973afee8
Rule guard linter enable ( #3168 )
2021-12-26 10:54:26 +07:00
ledgerwatch
7a1a2db3ce
Reverse order of arguments in eth_createAccessList ( #3066 )
...
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-12-01 07:34:58 +00:00
TBC Dev
5eca3beea9
Avoid redundant BitLen() ( #3056 )
...
* Prefer uint256.IsZero() or big.Sign() for 0-testing over BitLen()
* Avoid redundant BitLen()
2021-11-29 22:35:51 +00:00
ledgerwatch
0e6e47e913
Create access list ( #3048 )
...
* Create access list
* CreateAccessList compiles
* fixes
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-11-29 09:28:35 +00:00
ledgerwatch
2f9128cf21
eth_estimateGas to correctly recap to balance for London txs ( #3006 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-11-21 11:19:33 +00:00
Alex Sharov
da00e949c4
RemoteRPC: coherentCache for kv.Code; LocalRPC: enable small blocksLRU ( #2815 )
2021-10-12 12:04:04 +07:00
Alex Sharov
54cdf74394
Rpcdaemon: add --tevm flag to enable experiment ( #2788 )
2021-10-06 16:09:47 +07:00
Alex Sharov
17abe11cc0
Remote RPC: add state cache ( #2738 )
2021-09-29 08:36:25 +07:00
Evgeny Danilenko
4cd72c8328
Keep readonly value while changing interpreters back and forth ( #2508 )
...
* restore TEVM
* fuzzing and property based
* comment
* lint
* stack callback into defer ater checking an error
* sequential tests
2021-08-10 09:48:56 +07:00
Alex Sharov
6bd44eb26c
move kv to erigon-lib ( #2467 )
2021-07-29 18:53:13 +07:00
Alex Sharov
5069558752
Apache licensed logger ( #2460 )
2021-07-29 17:23:23 +07:00
Alex Sharov
838e5f9ef2
Move bucket constants into kv package, move kv interface to kv package ( #2455 )
2021-07-28 09:47:38 +07:00
Roman Koblov
18fa156d92
Make default gas for eth_call to be maximum gas capacity instead of 0 ( #2232 )
...
* Make default gas for eth_Call to be maximum gas capacity instead of 0
* Fix nil pointer dereference
2021-06-24 15:48:54 +01:00
alex.sharov
6ca2aacab4
remove left usage of object db in rpcdaemon
2021-05-31 17:12:48 +07:00
Alex Sharov
0be3044b7e
rename ( #1978 )
...
* rename
* rename "make grpc"
* rename "abi bindings templates"
* rename "abi bindings templates"
2021-05-20 19:25:53 +01:00
Alex Sharov
0c91bfbf3e
RPCDaemon: support Pending block ( #1942 )
...
* clean
* save
* pubsub
* pubsub
* pubsub
* pubsub
* pubsub
* pubsub
* save
* tx pub-sub
* tx pub-sub
* clean
* clean
* save
* save
* save
* save
* save
* Squashed 'interfaces/' content from commit c469f3ae0
git-subtree-dir: interfaces
git-subtree-split: c469f3ae073b60c8821b61fed2910191080ef835
* save
* save
* save
* save
* Squashed 'interfaces/' changes from c469f3ae0..958dfc669
958dfc669 save
git-subtree-dir: interfaces
git-subtree-split: 958dfc669f8daeefe686a13aa852fb95f1537886
* save
* save
* up some deps
* up some deps
* clean
* test
* test
* test
* test
* test
* test
* test
* test
* test
* test
* test
* test
2021-05-17 13:15:19 +01:00
Alex Sharov
aacc457ea8
rawdb deprecated methods with Database interface ( #1854 )
2021-05-01 14:42:23 +07:00
Artem Vorotnikov
b71c6323a0
KVGetter, replace old geth interfaces with it ( #1676 )
2021-04-05 20:04:58 +07:00
Artem Vorotnikov
d66555268d
Harmonize DB APIs ( #1669 )
2021-04-03 09:26:00 +03:00
Alex Sharov
527fafe051
estimate_gas: to accept optional block or hash ( #1639 )
2021-03-31 11:32:52 +07:00
Artem Vorotnikov
d4c10c9a47
Port rpcdaemon to KV interface ( #1627 )
2021-03-30 12:53:54 +03:00
Alex Sharov
86ccfd0338
RPC: Pending transactions/blocks/logs ( #1625 )
2021-03-30 14:09:00 +07:00
ledgerwatch
c00f85ab6c
Simplification of eth_estimageGas ( #1531 )
...
* Simplification of eth_estimageGas
* Set GasCap by default
* Add a test
* Fix crash
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-03-02 22:47:44 +00:00
ledgerwatch
e8501bbf43
eth_getTransactionReceipt to return nil for transactions not in the d… ( #1505 )
...
* eth_getTransactionReceipt to return nil for transactions not in the database
* Fix compile error
2021-02-21 09:38:00 +01:00
Alex Sharov
75cb938980
rpcdaemon performance improve - less reading blocks, less allocs on server ( #1426 )
...
* rpcdaemon performance improve - less reading blocks, less allocs on server
* rpcdaemon performance improve - less reading blocks, less allocs on server
* rpcdaemon performance improve - less reading blocks, less allocs on server
* rpcdaemon performance improve - less reading blocks, less allocs on server
* don't use global variables
* df
* avoid use non-transactional db instance to reduce amount of cursors
2021-01-02 19:28:22 +00:00
ledgerwatch
0953fd42cb
WIP trace_call implementation ( #1399 )
...
* trace_call initial
* Fix tests
* More tracing
* Add more fields to the action
* Completed first example query
* Add initial bench11 to compare trace_call with OpenEthereum
* Exclude precompile calls from call traces
* Add self-destruct, call types, more comparison in rpctest
* Support for execution errors
* Stack underflow error and delegatecall value
* Fix lint
* Fix suicide traceAddress, Bad instruction error
* Fix lint
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2020-12-14 11:27:52 +00:00
Thomas Jay Rush
546b91f47e
Updating RPC tests in Postman ( #1340 )
2020-11-09 09:52:18 +01:00
Igor Mandrigin
c0f9b57b42
rpcdaemon: read chainConfig from the DB (remove hardcode) ( #1339 )
...
* read chainConfig from the db
* get dbtx properly
2020-11-08 06:46:53 +01:00
Alex Sharov
331dcd45eb
Store receipts separately - one record per tx ( #1271 )
...
* squash
* add --database flag to integration
* clean
* split to 2 buckets
* split to 2 buckets
* split to 2 buckets
* split to 2 buckets
* split to 2 buckets
* save progress
* save progress
* improve test
* improve test
* save progress
* change app logic
* change app logic
* return err from rawdb package
* don't clean automatically
* don't clean automatically
* clean
* clean
* clean
* don't rely on `make clean`
* improve cbor code
* clean
* clean
* clean
* fix tests
* rebase master
* stop on error: headers stage
* make TxDb walk and multiwalk safe
* Fix panics
Co-authored-by: Alexey Akhunov <akhounov@gmail.com>
2020-10-25 08:38:55 +00:00
Ricardo Guilherme Schmidt
e9572ae981
Fix infinite rpc.gascap on eth_estimateGas ( #1292 )
...
* Fix infinite rpc.gascap on eth_estimateGas
* use `gasCap.Sign() > 0` instead of `gasCap.Uint64() != 0`
2020-10-25 08:19:59 +00:00
Thomas Jay Rush
1af3e09d75
1209 automate documentation ( #1290 )
...
* Automate documentation
* Updating
* Updating
* Fixing lint
* Updating readthedocs documentation
* Updating testing
* Updating testing
2020-10-24 18:03:52 +01:00