Shane Bammel
f04f51cd0c
Simplify DoEstimateGas with RequiredGas field
...
By tracking the RequiredGas independently from refunds,
DoEstimateGas() can return an accurate gas estimate without the
complexity of the binary search.
2022-02-16 10:40:17 -06:00
Shane Bammel
f6ce963881
Track required gas for executing a transaction
2022-02-15 21:06:28 -06:00
sjb933
6424b258b0
Merge branch 'merge-upstream-v1.10.15' into 'master'
...
0.7.0 Release
Closes #38 and #32
See merge request pulsechaincom/go-pulse!39
2022-01-27 22:18:33 +00:00
Shane Bammel
5cdaeb9699
Use sane gas cap for the getValidators system call
2022-01-14 20:29:25 -06:00
Shane Bammel
64bdf24bd0
Post-merge cleanup
2022-01-14 19:24:28 -06:00
Shane Bammel
9b8a328d0b
Merge go-ethereum v1.10.15
2022-01-12 23:42:34 -06:00
Shane Bammel
50979d3af9
Updated patch version number for release
2022-01-07 12:28:45 -06:00
sjb933
19a61e1b45
Merge branch 'phantom-slashes' into 'master'
...
Apply slashes on first pass though commit
Closes #36
See merge request pulsechaincom/go-pulse!37
2022-01-07 17:34:59 +00:00
Shane Bammel
961ac6c085
Apply slashes on first pass though commit
...
The commit() func will only be called twice if there are transactions
in the block. To ensure slashes aren't missed in an empty block,
apply slashing logic on the first pass through FinalizeAndAssemble().
2022-01-06 18:56:57 -06:00
sjb933
6878d681a4
Merge branch 'bs-trace-errors' into 'master'
...
Ignore base fee for system transactions
Closes #29
See merge request pulsechaincom/go-pulse!36
2022-01-05 23:55:40 +00:00
Shane Bammel
160ef47ca1
Ignore base fee for system transactions
...
System transactions have a gas cap of zero which violates the
post-london consensus rules.
2022-01-05 16:59:04 -06:00
Felix Lange
8be800ffa9
params: go-ethereum v1.10.15 stable
2022-01-05 17:16:40 +01:00
Martin Holst Swende
335914a63a
les: fix serverHandler crash after setHead ( #24200 )
2022-01-05 16:40:45 +01:00
Sina Mahmoodi
3ccd6b6dbb
graphql: fix block resolving for parent field ( #24191 )
...
Fixes #24161
2022-01-05 16:22:46 +01:00
Sina Mahmoodi
c20de3c4bd
graphql: fix pre-byzantium receipt status ( #24188 )
...
Fixes #24124
2022-01-05 16:21:08 +01:00
Felix Lange
0169d579d0
ethclient: fix unmarshaling of ethereum.SyncProgress ( #24199 )
...
SyncProgress was modified in PR #23576 to add the fields reported for
snap sync. The PR also changed ethclient to use the SyncProgress struct
directly instead of wrapping it for hex-decoding. This broke the
SyncProgress method.
Fix it by putting back the custom wrapper. While here, also put back the
fast sync related fields because SyncProgress is stable API and thus
removing fields is not allowed.
Fixes #24180
Fixes #24176
2022-01-05 16:12:47 +01:00
Sina Mahmoodi
c0d17bca52
graphql: check header first in blocks query ( #24190 )
...
Fixes #24167
New behaviour is that the endpoint returns results only for available
blocks without returning an error when it doesn't find a block. Note we
skip any block after a non-existent block.
This adds a header fetch for every block in range (even if header
is not needed). Alternatively, we could do the check in every field's
resolver method to avoid this overhead.
2022-01-05 16:11:46 +01:00
Martin Holst Swende
66a908c5e8
core/rawdb: fix double-lock causing hang ( #24189 )
...
Fixes #24159
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-01-04 19:02:37 +01:00
peter cresswell
d0bd5017ed
accounts: correct comment ( #24186 )
...
Change two instances of the word `calulcated` to `calculated`.
2022-01-04 17:24:28 +02:00
Water
98be5f9a72
trie: fix spelling mistake ( #24185 )
...
mispelled words in comments: th enext
2022-01-04 17:23:52 +02:00
zgfzgf
356bbe343a
core/asm: change order of items in stringtokenTypes ( #24153 )
...
This orders the items in slice definition same as the enum values.
2021-12-26 14:58:17 +01:00
Felix Lange
dddf73abbd
params: begin v1.10.15 release cycle
2021-12-23 11:23:07 +01:00
Felix Lange
11a3a35097
params: release go-ethereum v1.10.14 stable
2021-12-23 11:21:45 +01:00
Alexey Shekhirin
3f2e96cf95
cmd/geth: add missing sepolia testnet flag checks ( #24147 )
2021-12-22 17:51:57 +01:00
Felix Lange
980b7682b4
core/types: document JSON field name equivalents of DynamicFeeTx ( #24143 )
2021-12-22 15:32:17 +01:00
Felix Lange
b8edc04ce3
build: upgrade -dlgo version to Go 1.17.5 ( #24144 )
2021-12-22 15:31:41 +01:00
sjb933
0a9c8cf488
Merge branch 'system-zero' into 'master'
...
SystemZero fork
See merge request pulsechaincom/go-pulse!35
2021-12-21 00:15:17 +00:00
Shane Bammel
268b4f7f14
Updated minor version number for release
2021-12-20 16:36:41 -06:00
Shane Bammel
e14acb5752
Improved error message
2021-12-20 16:29:45 -06:00
Shane Bammel
55ad275d51
Added SystemZero fork beginning free system txs
...
System transactions must always run with priority regardless of their
size or other transactions in the block.
2021-12-20 16:28:13 -06:00
fomotrader
99be62a9b1
accounts/abi: avoid unnecessary alloc ( #24128 )
2021-12-20 10:25:46 +01:00
sjb933
702604813e
Merge branch 'badblock-fix' into 'master'
...
Implemented fix for bad block sync bug
See merge request pulsechaincom/go-pulse!34
2021-12-17 17:23:30 +00:00
Shane Bammel
d7ac6330f6
Updated version for patch release
2021-12-17 11:14:32 -06:00
xwjack
8bbf83e7a4
core: ignore basefee when comparing with pool gasprice in txpool ( #24080 )
...
This reverts commit 9489853321
.
2021-12-17 15:44:57 +01:00
Marius van der Wijden
2295640ebd
eth/catalyst: implement kintsugi-spec v3 ( #24067 )
2021-12-17 15:38:58 +01:00
Ikko Ashimine
f5f5c0855a
tests/solidity/contracts: fix typo in OpCodes.sol ( #24123 )
2021-12-17 15:19:34 +01:00
Sina Mahmoodi
ada9c774e9
eth, les: update unclean shutdown markers regularly ( #24077 )
...
Fixes #22580
Co-authored-by: Felix Lange <fjl@twurst.com>
2021-12-17 15:18:51 +01:00
Andrei Maiboroda
3e47e38a4e
core/vm: Make INVALID a defined opcode ( #24017 )
...
* core/vm: Define 0xfe opcode as INVALID
* core/vm: Remove opInvalid as opUndefined handles it
Co-authored-by: Alex Beregszaszi <alex@rtfs.hu>
2021-12-17 13:44:05 +01:00
Paweł Bylica
81ec6b1d4c
core/vm: reverse bit order in bytes of code bitmap ( #24120 )
...
* core/vm: reverse bit order in bytes of code bitmap
This bit order is more natural for bit manipulation operations and we
can eliminate some small number of CPU instructions.
* core/vm: drop lookup table
2021-12-17 10:32:00 +01:00
Shane Bammel
1926e96f78
Implemented fix for bad block sync bug
...
During mining, commit is called twice, to generate an empty block for
concurrent sealing. This resulted in inadvertent double-slashing of
out-of-turn validators during block creation leading to bad blocks.
2021-12-16 21:46:16 -06:00
Marius van der Wijden
bc6bf1e193
README: remove mentions of snap sync ( #24122 )
2021-12-16 11:50:05 +01:00
Shane Bammel
8c6a10133b
Record bad block signer
2021-12-15 22:29:44 -06:00
sjb933
791960e368
Merge branch 'memleak' into 'master'
...
Avoid memory leak during block stasis
Closes #31
See merge request pulsechaincom/go-pulse!32
2021-12-15 19:26:53 +00:00
Roman Mazalov
0ba0b81e54
rpc: fix time key collision for logger with json output ( #24112 )
...
The "t" key overrides the log message time in JSON output.
Co-authored-by: Felix Lange <fjl@twurst.com>
2021-12-15 15:30:54 +01:00
sjb933
ea09e5a94f
Merge branch 'log-level' into 'master'
...
Increased logging level for validator slashing
See merge request pulsechaincom/go-pulse!33
2021-12-15 00:08:40 +00:00
Shane Bammel
49aad482d9
Increased logging level for validator slashing
2021-12-14 18:07:12 -06:00
Shane Bammel
e37543182d
Parlia: avoid memory leak during block stasis
...
Mirrors upstream fix to clique consensus (#23861 ),
see previous commit for more detail.
2021-12-14 15:13:24 -06:00
Martin Holst Swende
06edad55f2
miner, consensus/clique: avoid memory leak during block stasis ( #23861 )
...
This PR fixes a problem which arises on clique networks when there is a network stall. Previously, the worker packages were tracked, even if the sealing engine decided not to seal the block (due to clique rules about recent signing). These tracked-but-not-sealed blocks kept building up in memory.
This PR changes the situation so the sealing engine instead returns an error, and the worker can thus un-track the package.
2021-12-14 15:03:53 -06:00
Felföldi Zsolt
fc01a7ce8e
les/vflux/client, p2p/nodestate: fix data races ( #24058 )
...
Fixes #23848
2021-12-14 11:34:50 +01:00
Martin Holst Swende
155795be99
core/vm: avoid memory expansion check for trivial ops ( #24048 )
2021-12-14 11:30:20 +01:00