Commit graph

1842 commits

Author SHA1 Message Date
Adam Schmideg
a69b0a9b50 Remove genesis.json not used anymore 2020-02-27 10:06:38 +01:00
Adam Schmideg
6d045200d1 Clean up 2020-02-26 15:31:50 +01:00
Adam Schmideg
841103c5bd Ugly code works with clique 2020-02-26 14:05:31 +01:00
Adam Schmideg
c8b998acaa Create account and unlock it 2020-02-21 15:51:49 +01:00
Adam Schmideg
c267cee021 addPeer waits only for add event, because we're adding a peer to the prio client 2020-02-13 13:54:20 +01:00
Adam Schmideg
16a2401cff Check peers properly 2020-02-13 12:51:06 +01:00
Adam Schmideg
7b930f6fdb minor comment change 2020-02-12 16:35:42 +01:00
Adam Schmideg
b85a769b7a Refactor: addPeer(*gethrpc). It seems to work now. 2020-02-12 15:52:41 +01:00
Adam Schmideg
698c934558 wait for a second event when adding a priority node 2020-02-12 15:13:20 +01:00
Adam Schmideg
0bfcc072bd Start to count peers on server 2020-02-12 13:04:05 +01:00
Adam Schmideg
cffc70055d Numeric literal should conform to go 1.11 2020-02-12 12:26:49 +01:00
Adam Schmideg
2ec32405e5 Use *testgeth for logging 2020-02-12 12:15:29 +01:00
Adam Schmideg
5a4fe0c945 Use datadir as already handled by testgeth 2020-02-12 12:11:18 +01:00
Adam Schmideg
ea4f93f18e Clean up log messages 2020-02-12 11:45:03 +01:00
Adam Schmideg
d2a28b29d8 Make lightserver a miner, the first server doesn't really matter 2020-02-12 11:22:07 +01:00
Adam Schmideg
0158889e7d Merge branch 'master' into les-test 2020-02-12 10:16:26 +01:00
Adam Schmideg
155dc297af Clean up 2020-02-11 15:18:30 +01:00
Adam Schmideg
d0f848f422 Add a miner and make light server sync from it first 2020-02-11 13:06:02 +01:00
winsvega
dcffb7777f
cmd/geth retesteth: add eth_getBlockByHash (#20621) 2020-02-11 10:54:05 +01:00
Adam Schmideg
9f64fb4f7a Full test written, but not working 2020-02-07 12:58:24 +01:00
Adam Schmideg
e5b0e0eded Simplify common cmd line switches 2020-02-07 12:37:06 +01:00
Adam Schmideg
46c49a4236 WaitSynced but still not working 2020-02-07 11:45:00 +01:00
Adam Schmideg
3b043ddbef refactor: test field is now a member of the gethrpc struct 2020-02-07 11:11:06 +01:00
Adam Schmideg
3d208fbd64 client adds peer but error: peer is unknown or unhealthy 2020-02-06 20:23:23 +01:00
Adam Schmideg
ca1fd4402a Get enode from light server 2020-02-06 19:37:36 +01:00
Adam Schmideg
ddc7d7a0a4 Start light server for testing 2020-02-06 18:47:04 +01:00
Felix Lange
976a0f5558
cmd/devp2p: fix Route53 TXT record splitting (#20626)
For longer records and subtree entries, the deployer created two
separate TXT records. This doesn't work as intended because the client
will receive the two records in arbitrary order. The fix is to encode
longer values as "string1""string2" instead of "string1", "string2".
This encoding creates a single record on AWS Route53.
2020-02-05 15:29:59 +01:00
meowsbits
711ed74e09
cmd/geth: add 'dumpgenesis' command (#20191)
Adds the 'geth dumpgenesis' command, which writes the configured
genesis in JSON format to stdout. This provides a way to generate the
data (structure and content) that can then be used with the 'geth init'
command.
2020-02-04 11:49:13 +01:00
Martin Holst Swende
3c776c7199
retesteth: clean txpool on rewind, default dao support (#20596) 2020-01-31 12:00:37 +01:00
Felix Lange
a903912b96
rpc: check module availability at startup (#20597)
Fixes #20467

Co-authored-by: meowsbits <45600330+meowsbits@users.noreply.github.com>
2020-01-28 10:37:08 +01:00
Guillaume Ballet
7b68975a00 console, internal/jsre: use github.com/dop251/goja (#20470)
This replaces the JavaScript interpreter used by the console with goja,
which is actively maintained and a lot faster than otto. Clef still uses otto
and eth/tracers still uses duktape, so we are currently dependent on three
different JS interpreters. We're looking to replace the remaining uses of otto
soon though.
2020-01-27 11:50:48 +01:00
Guillaume Ballet
60deeb103e cmd/evm: accept --input for disasm command (#20548) 2020-01-27 10:05:21 +01:00
Martin Holst Swende
0b284f6c6c
cmd/geth/retesteth: use canon head instead of keeping alternate count (#20572) 2020-01-23 20:55:56 +01:00
Martin Holst Swende
33c56ebc67 cmd: implement abidump (#19958)
* abidump: implement abi dump command

* cmd/abidump: add license
2020-01-21 15:51:36 +01:00
Felix Lange
31baf3a9af log, internal/debug: delete RotatingFileHandler (#20586)
* log: delete RotatingFileHandler

We added this for the dashboard, which is gone now. The
handler never really worked well and had data race and file
handling issues.

* internal/debug: remove unused RotatingFileHandler setup code
2020-01-21 14:57:33 +02:00
Felix Lange
0af96d2556
cmd/devp2p: submit Route53 changes in batches (#20524)
This change works around the 32k RDATA character limit per change
request and fixes several issues in the deployer which prevented it from
working for our production trees.
2020-01-17 11:32:29 +01:00
Yole
9e0f934e2b cmd/geth: update copyright year (#20512)
Update copyright from 2013-2019 to 2013-2020
2020-01-07 11:56:16 +02:00
Kumar Anirudha
35f95aef6f cmd/puppeth: change dashboard title to not use "testnet" (#20513) 2020-01-07 11:08:33 +02:00
Guillaume Ballet
433937fb42 cmd/geth: fix forked exe leak in console tests (#20480) 2020-01-06 12:07:21 +01:00
Paweł Bylica
49cf000df7 cmd/evm: Add --bench flag for benchmarking (#20330)
The --bench flag uses the testing.B to execute the EVM bytecode many times and get the average exeuction time out of it.
2019-12-18 09:43:18 +01:00
Guillaume Ballet
275cd4988d
cmd/abigen: Sanitize vyper's combined json names (#20419)
* cmd/abigen: Sanitize vyper's combined json names

* Review feedback: handle full paths
2019-12-16 13:37:15 +01:00
Felix Lange
f51cf573b5
cmd/devp2p: implement AWS Route53 enrtree deployer (#20446) 2019-12-12 22:25:12 +01:00
Felix Lange
191364c350 p2p/dnsdisc: add enode.Iterator API (#20437)
* p2p/dnsdisc: add support for enode.Iterator

This changes the dnsdisc.Client API to support the enode.Iterator
interface.

* p2p/dnsdisc: rate-limit DNS requests

* p2p/dnsdisc: preserve linked trees across root updates

This improves the way links are handled when the link root changes.
Previously, sync would simply remove all links from the current tree and
garbage-collect all unreachable trees before syncing the new list of
links.

This behavior isn't great in certain cases: Consider a structure where
trees A, B, and C reference each other and D links to A. If D's link
root changed, the sync code would first remove trees A, B and C, only to
re-sync them later when the link to A was found again.

The fix for this problem is to track the current set of links in each
clientTree and removing old links only AFTER all links are synced.

* p2p/dnsdisc: deflake iterator test

* cmd/devp2p: adapt dnsClient to new p2p/dnsdisc API

* p2p/dnsdisc: tiny comment fix
2019-12-12 11:15:36 +02:00
Martin Holst Swende
bc01593afb consensus/ethash, params: eip-2384: bump difficulty bomb (#20347)
* consensus/ethash, params: implement eip-2384: bump difficulty bomb

* params: EIP 2384 compat checks

* consensus, params: add Muir Glacier block number (mainnet,ropsten) + official name

* core/forkid: forkid tests for muir glacier

* params/config: address review concerns

* params, core/forkid: review nitpicks

* cmd/geth,eth,les: add override option for muir glacier

* params: nit fix
2019-12-06 11:36:40 +02:00
Guillaume Ballet
1ff3d7c2d4 cmd/faucet, cmd/geth: fix staticcheck warnings (#20374) 2019-11-29 11:38:34 +01:00
zaccoding
23c8c74131 cmd: fix command help messages in modules (#20203) 2019-11-26 11:46:39 +01:00
meows
d9d2a4eef9
cmd/geth: remove network id from version cmd
It was reflective only of the Default setting,
and not chain aware.
2019-11-25 06:17:45 -05:00
Péter Szilágyi
f56f969dd3
Merge pull request #20350 from holiman/puppeth_ssh
cmd/puppeth: make ssh prompt more user-friendly
2019-11-21 15:08:10 +02:00
Martin Holst Swende
216ff5a952
cmd/puppeth: make ssh prompt more user-friendly 2019-11-21 13:18:12 +01:00
meows
59177bc8c0
cmd/puppeth: x-spec nonce data type, use types.BlockNonce
Refactors to use existing BlockNonce type instead of
hand-rolled bytes logic.
2019-11-20 10:26:31 -05:00