Péter Szilágyi
64571f9379
eth: eth/64 - extend handshake packet with fork id
2019-10-29 18:04:39 +02:00
Péter Szilágyi
e306304414
Merge pull request #20204 from holiman/fix_downloader_race
...
eth/downloader: fix data race in downloader
2019-10-29 17:10:44 +02:00
Felix Lange
2c37142d2f
cmd/devp2p, p2p: dial using node iterator, discovery crawler ( #20132 )
...
* p2p/enode: add Iterator and associated utilities
* p2p/discover: add RandomNodes iterator
* p2p: dial using iterator
* cmd/devp2p: add discv4 crawler
* cmd/devp2p: WIP nodeset filter
* cmd/devp2p: fixup lesFilter
* core/forkid: add NewStaticFilter
* cmd/devp2p: make -eth-network filter actually work
* cmd/devp2p: improve crawl timestamp handling
* cmd/devp2p: fix typo
* p2p/enode: fix comment typos
* p2p/discover: fix comment typos
* p2p/discover: rename lookup.next to 'advance'
* p2p: lower discovery mixer timeout
* p2p/enode: implement dynamic FairMix timeouts
* cmd/devp2p: add ropsten support in -eth-network filter
* cmd/devp2p: tweak crawler log message
2019-10-29 17:08:57 +02:00
Martin Holst Swende
3eca7b5d27
eth/downloader: fix data race in downloader
2019-10-29 14:32:45 +01:00
Michael Forney
b0b277525c
core/asm: assembly parser label fixes ( #20210 )
...
* core/asm: Fix encoding of pushed labels
EVM uses big-endian byte-order, so to pad a label value to 4 bytes,
zeros must be added to the front, not the end.
* core/asm: Fix PC calculations when a label is pushed
Incrementing PC by 5 is only correct if the label appears after a jump,
in which case there is an implicit push. When it appears after an explicit
push, PC should only be incremented by 4.
* core/asm: Allow JUMP with no argument
This way, a label can be pushed explicitly, or loaded from memory to
implement a jump table.
2019-10-29 13:47:18 +01:00
gary rong
ecdbb402ee
trie: remove node ordering slice in sync batch ( #19929 )
...
When we flush a batch of trie nodes into database during the state
sync, we should guarantee that all children should be flushed before
parent.
Actually the trie nodes commit order is strict by: children -> parent.
But when we flush all ready nodes into db, we don't need the order
anymore since
(1) they are all ready nodes (no more dependency)
(2) underlying database provides write atomicity
2019-10-28 18:50:11 +01:00
Michael Forney
9c81387bef
cmd/evm: remove surrounding whitespace in hex input code ( #20211 )
...
This way, the output of `evm compile` can be used directly in `evm
--codefile code.txt run`, without stripping the trailing newline first.
2019-10-28 14:55:20 +01:00
Guillaume Ballet
72617a0742
consensus: fix possessives in comments. ( #20209 )
2019-10-28 09:57:34 +02:00
Jaynti Kanani
0d86eed2c3
add method to commit states
2019-10-27 01:50:57 +05:30
Jaynti Kanani
a4d92f8e30
span sync done right
2019-10-25 20:11:07 +05:30
Jaynti Kanani
e55e19da72
Merge branch 'bor' into span-sync
2019-10-25 15:16:48 +05:30
Jaynti Kanani
223f6a8834
no log for 0 matic transfer
2019-10-25 15:07:18 +05:30
Jaynti Kanani
521e7e295a
commit span WIP
2019-10-25 15:02:04 +05:30
Martin Holst Swende
db79143a13
clef: resolve windows pipes, fixes #20121 ( #20166 )
2019-10-24 10:45:07 +02:00
Jaynti Kanani
26ce6db06d
WIP span sync
2019-10-24 13:07:50 +05:30
Jaynti Kanani
15aeef09fb
add fees log if fees > 0
2019-10-21 19:07:02 +05:30
Piotr Dyraga
538f763fdc
accounts/abi/bind: take into account gas price during gas estimation ( #20189 )
...
The gas price was not passed to the `EstimateGas` function. As a result,
conditional execution paths depending on `tx.gasprice` could be not
correctly processed and we could get invalid gas estimates for contract
function calls.
2019-10-21 10:13:41 +02:00
Jaynti Kanani
4ea1f3388b
Merge pull request #5 from maticnetwork/bor-fees
...
Bor fees
2019-10-21 12:13:56 +05:30
gary rong
d4bb3798d8
miner: add generate and import unit test ( #20111 )
...
This PR adds a new unit test in miner package which will create some blocks from miner and then import into another chain. In this way, we can ensure all blocks generated by Geth miner obey consensus rules.
2019-10-20 12:36:40 +02:00
Marius Kjærstad
08953e42c1
metrics: change links in README.md to https ( #20182 )
2019-10-20 12:25:25 +02:00
Marius Kjærstad
b9299bbc46
dashboard: change links in README to https ( #20181 )
...
Changed http:// to https:// on links in dashboard/README.md
2019-10-18 21:30:53 +02:00
Marius Kjærstad
9a77065948
Changed http:// to https:// on links in log/README.md ( #20178 )
...
docs: change http to https on links in log/README.md
2019-10-18 08:51:54 +02:00
Jeffery Robert Walsh
a28093ced4
README: use new miner threads flag instead of legacy minerthreads flag ( #20165 )
2019-10-17 11:39:13 +03:00
Ross
d5b79e752e
p2p/simulations: add node properties support and utility functions ( #20060 )
2019-10-17 10:07:09 +02:00
Felix Lange
7300365956
p2p/dnsdisc: update to latest EIP-1459 spec ( #20168 )
...
This updates the DNS TXT record format to the latest
changes in ethereum/EIPs#2313 .
2019-10-16 14:35:24 +03:00
Martin Holst Swende
c476460cb2
params: check fork ordering when initializing new genesis, fixes #20136 ( #20169 )
...
prevent users from misconfiguring their nodes so that fork ordering is not preserved.
2019-10-16 13:23:14 +02:00
gary rong
028af3457d
cmd/utils: fix command line flag resolve ( #20167 )
...
In Geth, we have two sources for configuration:
(1) Config file
(2) Command line flag
Basically geth will first resolve config file and then overwrite
configs with command line flags.
This issue is: geth should only overwrite configs if flags are truly
set. So before we apply any flag to configs, `GlobalIsSet` check
is necessary.
2019-10-15 10:19:20 +02:00
Jaynti Kanani
810fd3adba
Merge pull request #4 from maticnetwork/bor-consensus-fix
...
Bor consensus fix
2019-10-08 02:58:27 +09:00
Jaynti Kanani
66b5132504
add transfer and fee log
2019-10-05 13:07:35 +05:30
Jaynti Kanani
4433db35c2
fees log
2019-10-04 13:50:36 +05:30
Jaynti Kanani
e92e0a3959
add tranfer log
2019-10-04 00:38:25 +05:30
Jaynti Kanani
b3473b729e
Revert "repeat log for test"
...
This reverts commit 4deebaedf4 .
2019-10-03 21:05:24 +05:30
Felix Lange
a73f3f4518
params: begin v1.9.7 release cycle
2019-10-03 11:29:55 +02:00
Felix Lange
bd05968077
params: release Geth v1.9.6 stable
2019-10-03 11:29:20 +02:00
Felix Lange
6e730915bd
les: add empty "les" ENR entry for servers ( #20145 )
2019-10-02 14:14:27 +03:00
Darrel Herbst
c713ea7c22
cmd/bootnode: fix exit behavior with -genkey ( #20110 )
2019-10-02 11:32:02 +02:00
Martin Holst Swende
7f5f62aaa0
tests: update test suite for istanbul ( #20082 )
...
* update tests for istanbul
* tests: updated blockchaintests, see https://github.com/ethereum/tests/issues/637
* tests: update again, hopefully fixed this time
* tests: skip time consuming, run legacy tests
* tests: update again
* build: disable long-running tests on travis
* tests: fix formatting nits
* tests: I hate github's editor
2019-10-02 11:33:51 +03:00
kikilass
b2f696e025
github: Added capital P ( #20139 )
2019-09-30 22:57:20 +03:00
Péter Szilágyi
62b43ee0d5
Merge pull request #20133 from karalabe/measure-subprotocol-traffic
...
p2p: measure subprotocol bandwidth usage
2019-09-30 12:02:29 +03:00
Jaynti Kanani
4deebaedf4
repeat log for test
2019-09-29 02:10:09 +05:30
Péter Szilágyi
a2a60869c8
p2p: measure subprotocol bandwidth usage
2019-09-27 18:00:25 +03:00
gary rong
df89233b57
ethdb/leveldb: disable seek compaction ( #20130 )
...
* vendor: update leveldb
* ethdb/leveldb: disable seek compaction and add metrics
* vendor: udpate latest levledb
* ethdb/leveldb: fix typo
2019-09-26 17:44:00 +03:00
Jaynti Kanani
f5c8b15722
Merge branch 'bor' of github.com:maticnetwork/go-ethereum into bor-consensus-fix
2019-09-26 14:43:57 +05:30
Jaynti Kanani
dae44a2a9c
add more logs
2019-09-26 14:42:33 +05:30
Martin Holst Swende
ead711779d
core: initialize current block/fastblock atomics to nil, fix #19286 ( #19352 )
2019-09-26 11:10:35 +02:00
zcheng9
2133f18f15
core/state: fix database leak and copy tests ( #19306 )
2019-09-26 11:09:59 +02:00
ywzqwwt
1a6ef5ae58
core/blockchain: remove block from futureBlocks on error ( #19763 )
2019-09-26 10:57:51 +02:00
Ryan Schneider
ad03d9801c
internal/ethapi: support block number or hash on state-related methods ( #19491 )
...
This change adds support for EIP-1898.
2019-09-26 10:47:31 +02:00
Lucas Hendren
62391ddbeb
tests/solidity: add contract to test every opcode ( #19283 )
...
Fixes #18210
2019-09-26 10:30:33 +02:00
Jaynti Kanani
374e438f42
use wiggle as 2*period
2019-09-26 13:54:12 +05:30