Alex Sharov
85009dabe6
return error from .First() and .Next() methods of RemoteDb ( #292 )
...
* return error from .First() and .Next() methods of RemoteDb
* re-run CI
2020-01-06 18:38:21 +07:00
ledgerwatch
dbc37b5660
bolt vs badger log parser and chart ( #284 )
2019-12-24 13:26:29 +00:00
Alex Sharov
805f9aa501
benchmark rpc daemon
...
* tracing, write bench1() result into files
* add context to computeTxEnv, remote_db cursor lazy cache allocation,
* more results
* added
* added
* added
* more info
* make linter happy
* exit from tracing gorutines
* remove unused param
* re-run CI
* re-run CI
* remove concept txHandle
* batch cursor in reports
* remove debug output
* fix shadow variables and unhandled errors
2019-12-22 21:10:46 +06:00
Evgeny Danilenko
9d5949a0b9
Retesteth restore mining ( #278 )
...
* initial commit
* add callers
* restore mining for retesteth
* unlock even if panics
* try to restore accountRange
* fmt
* rename MineBlock
* fmt
* linters
2019-12-19 13:44:43 +03:00
alex.sharov
31889869d9
better functions naming
2019-12-16 20:55:10 +06:00
alex.sharov
e6b33b376f
make ci happy
2019-12-16 20:55:10 +06:00
alex.sharov
f57015c4ea
re-run ci
2019-12-16 20:55:10 +06:00
alex.sharov
88b05bd162
make linter happy
2019-12-16 20:54:30 +06:00
alex.sharov
d7a3c031f9
remove unused field
2019-12-16 20:34:51 +06:00
alex.sharov
4fa90b9856
make linter happy
2019-12-16 20:27:49 +06:00
alex.sharov
54d24190b9
compute state to exact transaction precision (but only for mainnet)
2019-12-13 09:56:30 +06:00
alex.sharov
73b50e080d
debug_StorageRangeAt v0, got wrong response on request: {"jsonrpc":"2.0","method":"debug_storageRangeAt","params":["0x2bf07c790737be3bc4c57cbf3dedb231806f6bfef434657d59dcc9ddbe4665ab", 1,"0x8b3b3b624c3c0397d3da8fd861512393d51dcbac","0xfade75560a6cfb895f5dc7c4ab3fa10089ac2372c98aa78280d029ab36285ad6",1024],"id":1377}
2019-12-13 09:56:30 +06:00
Evgeny Danilenko
5b4f352acb
Restore Ethash mining ( #231 )
...
* initial
* mining
* remove debug
* debug
* restore random seed in the mining tests
* green tests
* fix blockchain tests
* fix lint
* init miner only if asked
* linters
* do not store trie as singlton
* fmt
* new trieDbState constructor
2019-12-10 16:12:21 +03:00
Giulio rebuffo
01e2dc5ce4
fixed pics ( #249 )
2019-12-10 12:25:28 +00:00
alex.sharov
71dc098968
include to report` only blocks on chain with highest difficulty
2019-12-09 21:34:47 +07:00
alex.sharov
04a6517c5b
added gasLimits to report object
2019-12-09 21:34:47 +07:00
alex.sharov
7a4023b4eb
added gasLimits to report object
2019-12-09 21:34:47 +07:00
alex.sharov
005d715545
move gasLimits to remote db
2019-12-09 21:34:47 +07:00
Igor Mandrigin
cbfc2fa8d1
Merge pull request #248 from ledgerwatch/geth-1-9-9
...
Geth 1.9.9
2019-12-09 13:32:32 +01:00
Martin Holst Swende
fffac1a5ed
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-09 12:56:07 +01:00
Guillaume Ballet
a3747e06f0
cmd/faucet, cmd/geth: fix staticcheck warnings ( #20374 )
2019-12-09 12:12:12 +01:00
zaccoding
61358fef20
cmd: fix command help messages in modules ( #20203 )
2019-12-09 10:45:55 +01:00
ledgerwatch
8a632e764b
Continue comparison of genesis block with geth, expand long values ( #223 )
2019-12-06 12:03:12 +00:00
Igor Mandrigin
1e231a8a9a
Add storage mode flags as letters. ( #229 )
2019-12-06 12:19:00 +01:00
alex.sharov
bb2f7080ce
Moved connection to .View method. Not very optimal, but it allow cancel connection from client side or configure timeout, also in future it will allow us make connection pool there (maybe don't need).
2019-12-06 08:12:02 +07:00
alex.sharov
8b69c54936
move context to from .NewDb to .View method
2019-12-06 08:12:02 +07:00
alex.sharov
ada5d88be8
fix linter warnings
2019-12-06 08:12:02 +07:00
alex.sharov
344b8029cc
handle interruption signals, added context for client and server. Only problem that it's context to DB, but not to each server call - it means you can't use HTTP Request context here (or create new connection on each request).
2019-12-06 08:12:02 +07:00
alex.sharov
49a614eae8
Bug fixes:
...
- rollback must catch local variable, if you write value to lastError variable
- then you can't do "return" - because it closing connection and client can't send CmdLastError
- somewhere error values was ommited in loging
2019-12-06 08:12:02 +07:00
alex.sharov
75e0b1bc85
revert changed bucket name
2019-12-06 08:12:02 +07:00
alex.sharov
1ffbb97752
removed unnecessary allocations, add tcp context
2019-12-06 08:12:02 +07:00
alex.sharov
d8f93ae187
Batch cursor.First and cursor.Next for remote db.
2019-12-06 08:12:02 +07:00
Igor Mandrigin
28d9b7c812
Use binary tries for the stateless action as an option. ( #218 )
2019-12-04 13:48:38 +01:00
Igor Mandrigin
ec6350fa15
apply post-rebase fixups
2019-12-03 16:27:57 +01:00
meows
6a8042fe21
cmd/geth: remove network id from version cmd
...
It was reflective only of the Default setting,
and not chain aware.
2019-12-03 14:00:47 +01:00
Martin Holst Swende
47fe645fb9
cmd/puppeth: make ssh prompt more user-friendly
2019-12-03 13:50:06 +01:00
meows
b1d5f7c1d4
cmd/puppeth: x-spec nonce data type, use types.BlockNonce
...
Refactors to use existing BlockNonce type instead of
hand-rolled bytes logic.
2019-12-03 13:49:51 +01:00
gary rong
157a52dd45
cmd/puppeth: update chain spec of parity ( #20241 )
2019-12-03 13:45:56 +01:00
Felix Lange
121cc658b4
cmd/ethkey: fix file permissions in changepassword command ( #20313 )
...
Found by staticcheck.
2019-12-03 13:41:22 +01:00
Felix Lange
38143122a0
cmd/clef: fix staticcheck warnings ( #20314 )
2019-12-03 13:40:28 +01:00
Felix Lange
1314aeebdb
build: use golangci-lint ( #20295 )
...
* build: use golangci-lint
This changes build/ci.go to download and run golangci-lint instead
of gometalinter.
* core/state: fix unnecessary conversion
* p2p/simulations: fix lock copying (found by go vet)
* signer/core: fix unnecessary conversions
* crypto/ecies: remove unused function cmpPublic
* core/rawdb: remove unused function print
* core/state: remove unused function xTestFuzzCutter
* core/vm: disable TestWriteExpectedValues in a different way
* core/forkid: remove unused function checksum
* les: remove unused type proofsData
* cmd/utils: remove unused functions prefixedNames, prefixFor
* crypto/bn256: run goimports
* p2p/nat: fix goimports lint issue
* cmd/clef: avoid using unkeyed struct fields
* les: cancel context in testRequest
* rlp: delete unreachable code
* core: gofmt
* internal/build: simplify DownloadFile for Go 1.11 compatibility
* build: remove go test --short flag
* .travis.yml: disable build cache
* whisper/whisperv6: fix ineffectual assignment in TestWhisperIdentityManagement
* .golangci.yml: enable goconst and ineffassign linters
* build: print message when there are no lint issues
* internal/build: refactor download a bit
2019-12-03 13:38:59 +01:00
Michael Forney
1f01ebb26c
cmd/evm: Allow loading input from file ( #20273 )
...
Make it possible to load input from a file. Simlar to `--code` / `--codefile`, have `--input`/`--inputfile`.
2019-12-03 13:36:01 +01:00
Felix Lange
745897e61a
dashboard: remove the dashboard ( #20279 )
...
This removes the dashboard project. The dashboard was an experimental
browser UI for geth which displayed metrics and chain information in
real time. We are removing it because it has marginal utility and nobody
on the team can maintain it.
Removing the dashboard removes a lot of dependency code and shaves
6 MB off the geth binary size.
2019-12-03 13:30:03 +01:00
gary rong
a430b92ea2
accounts/abi/bind, cmd/abigen: implement alias for abigen ( #20244 )
...
* accounts/abi/bind, cmd/abigen: implement alias for abigen
* accounts/abi/bind: minor fixes
* accounts/abi/bind: address comments
* cmd/abigen: address comments
* accounts/abi/bind: print error log when identifier collision
* accounts/abi/bind: address comments
* accounts/abi/bind: address comment
2019-12-03 13:26:50 +01:00
Kurkó Mihály
5a022eff02
dashboard: send current block to the dashboard client ( #19762 )
...
This adds all dashboard changes from the last couple months.
We're about to remove the dashboard, but decided that we should
get all the recent work in first in case anyone wants to pick up this
project later on.
* cmd, dashboard, eth, p2p: send peer info to the dashboard
* dashboard: update npm packages, improve UI, rebase
* dashboard, p2p: remove println, change doc
* cmd, dashboard, eth, p2p: cleanup after review
* dashboard: send current block to the dashboard client
2019-12-03 13:25:45 +01:00
gary rong
052e52ddf4
cmd/puppeth: integrate istanbul into puppeth ( #19926 )
...
* cmd/puppeth: integrate istanbul into puppeth
* cmd/puppeth: address comment
* cmd/puppeth: use hexutil.Big for fork indicator
* cmd/puppeth: finalize istanbul fork
* cmd/puppeth: fix 2200 for parity, rename is to eip1283ReenableTransition
* cmd/puppeth: fix eip1108
* cmd/puppeth: add blake2f for parity
* cmd/puppeth: add aleth istanbul precompiled
* cmd/puppeth: use hexutil.Big
* cmd/puppeth: fix unit tests
* cmd/puppeth: update testdata
2019-12-03 13:20:11 +01:00
Péter Szilágyi
9fb7ac8d3e
cmd/devp2p, core/forkid: make forkid.Filter API uniform
2019-12-03 13:14:45 +01:00
Felix Lange
0016180259
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-12-03 13:08:33 +01:00
Michael Forney
206ba4ea54
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-12-03 13:03:44 +01:00
Martin Holst Swende
4e93af5661
clef: resolve windows pipes, fixes #20121 ( #20166 )
2019-12-03 13:02:45 +01:00