gary rong
1212c7b844
core: fix default trie cache limit ( #17860 )
6 years ago
lash
201a0bf181
p2p/simulations, swarm/network: Custom services in snapshot ( #17991 )
...
* p2p/simulations: Add custom services to simnodes + remove sim down conn objs
* p2p/simulation, swarm/network: Add selective services to discovery sim
* p2p/simulations, swarm/network: Remove useless comments
* p2p/simulations, swarm/network: Clean up mess from rebase
* p2p/simulation: Add sleep to prevent connect flakiness in http test
* p2p/simulations: added concurrent goroutines to prevent sleeps on simulation connect/disconnect
* p2p/simulations, swarm/network/simulations: address pr comments
* reinstated dummy service
* fixed http snapshot test
6 years ago
Andrew Chiw
a0876f7433
Imply that SwarmApiFlag is the API endpoint to connect to, not to listen on ( #18071 )
6 years ago
Corey Lin
1ff152f3a4
rawdb: remove unused parameter for WritePreimages func ( #18059 )
...
* rawdb: remove unused parameter for WritePreimages func and modify a
spelling mistake
* rawdb: update the doc for function WritePreimages
6 years ago
Kurkó Mihály
f574c4e74b
metrics, p2p: add ephemeral registry ( #18067 )
...
* metrics, p2p: add ephemeral registry
* metrics: fix linter issue
6 years ago
Felix Lange
870efeef01
core/state: remove lock ( #18065 )
...
The lock in StateDB is useless. It's only held in Copy, but Copy is safe
for concurrent use because all it does is read.
6 years ago
gary rong
144c1c6c52
consensus: extend getWork API with block number ( #18038 )
6 years ago
tamirms
b16cc501a8
ethclient: include block hash from FilterQuery ( #17996 )
...
ethereum/go-ethereum#16734 introduced BlockHash to the FilterQuery
struct. However, ethclient was not updated to include BlockHash in the actual
RPC request.
6 years ago
Felix Lange
9313fa63f9
event/filter: delete unused package ( #18063 )
6 years ago
Péter Szilágyi
d0675e9d9c
Merge pull request #17982 from holiman/polish_contantinople_extcodehash
...
core/vm: check empty in extcodehash
6 years ago
Ryan Schneider
bd519ab8ae
internal/web3ext: add eth.getProof ( #18052 )
6 years ago
JoranHonig
1064e3283d
common/compiler: capture runtime code and source maps ( #18020 )
6 years ago
Corey Lin
a5dc087845
core/vm, eth/tracers: use pointer receiver for GetRefund ( #18018 )
6 years ago
Corey Lin
212bf266c5
eth, p2p: fix comment typos ( #18014 )
6 years ago
Liang Ma
c71e4fc4d5
p2p: fix comment typo ( #18027 )
6 years ago
Corey Lin
968f6019d0
event, event/filter: minor code cleanup ( #18061 )
6 years ago
Kurkó Mihály
503993c819
p2p: use enode.ID type in metered connection ( #17933 )
...
Change the type of the metered connection's id field from string to enode.ID.
6 years ago
Anton Evangelatov
cf3b187bde
swarm, cmd/swarm: address ineffectual assignments ( #18048 )
...
* swarm, cmd/swarm: address ineffectual assignments
* swarm/network: remove unused vars from testHandshake
* swarm/storage/feed: revert cursor changes
6 years ago
Mark Vujevits
81533deae5
swarm/network: light nodes are not dialed, saved and requested from ( #17975 )
...
* RequestFromPeers does not use peers marked as lightnode
* fix warning about variable name
* write tests for RequestFromPeers
* lightnodes should be omitted from the addressbook
* resolve pr comments regarding logging, formatting and comments
* resolve pr comments regarding comments and added a missing newline
* add assertions to check peers in live connections
6 years ago
Felix Lange
0bcff8f525
eth/downloader: speed up tests by generating chain only once ( #17916 )
...
* core: speed up GenerateChain
Use a mock implementation of ChainReader instead of creating
and destroying a BlockChain object for each generated block.
* eth/downloader: speed up tests by generating chain only once
This change reworks the downloader tests so they share a common test
blockchain instead of generating a chain in every test. The tests are
roughly twice as fast now.
6 years ago
Javier Peletier
36ca85fa1c
swarm/api: Fix #18007 , missing signature should return HTTP 400 ( #18008 )
6 years ago
Wenbiao Zheng
b35165555d
eth/downloader: remove the expired id directly ( #17963 )
6 years ago
Martin Holst Swende
5b74bb6445
signer: remove ineffectual assignments ( #18049 )
...
* signer: remove ineffectual assignments
* signer: remove ineffectual assignments
6 years ago
Martin Holst Swende
eea3ae42a3
core, eth/downloader: fix validation flaw, fix downloader printout flaw ( #17974 )
6 years ago
Martin Holst Swende
dc6648bb58
downloader: measure successfull deliveries, not failed ( #17983 )
...
* downloader: measure successfull deliveries, not failed
* downloader: fix typos
6 years ago
Corey Lin
0fe0b8f7b9
p2p/protocols: use keyed fields for struct instantiation ( #18017 )
6 years ago
Samuel Marks
80e2f3aca4
travis, appveyor: bump to Go 1.11.2 ( #18031 )
6 years ago
gary rong
e2640a96d4
miner: fix miner stress test ( #18039 )
6 years ago
holisticode
79c7a69ac8
swarm: Better syncing and retrieval option definition ( #17986 )
...
* swarm: Better syncing and retrieval option definition
* swarm/network/stream: better comments
* swarm/network/stream: addressed PR comments
6 years ago
Anton Evangelatov
53eb4e0b0f
swarm/api: unexport Respond methods ( #18037 )
6 years ago
KimMachineGun
baee850471
swarm: modify context key ( #17925 )
...
* swarm: modify context key
* gofmt sctx.go
6 years ago
Elad
126dfde6c9
cmd/swarm: auto resolve default path according to env flag ( #17960 )
6 years ago
Elad
f08f596a37
all: updated code owners file ( #17987 )
6 years ago
Roc Yu
3e1cfbae93
cmd/swarm/swarm-smoke: fix issue that loop variable capture in func ( #17992 )
6 years ago
Ferenc Szabo
54f650a3be
swarm: clean up unused private types and functions ( #17989 )
...
* swarm: clean up unused private types and functions
Those that were identified by code inspection tool.
* swarm/storage: move/add Proximity GoDoc from deleted private function
The mentioned proximity() private function was deleted in:
1ca8fc1e6f
6 years ago
Martin Holst Swende
1b6fd032e3
core/vm: check empty in extcodehash
6 years ago
holisticode
8ed4739176
p2p accounting ( #17951 )
...
* p2p/protocols: introduced protocol accounting
* p2p/protocols: added TestExchange simulation
* p2p/protocols: add accounting simulation
* p2p/protocols: remove unnecessary tests
* p2p/protocols: comments for accounting simulation
* p2p/protocols: addressed PR comments
* p2p/protocols: finalized accounting implementation
* p2p/protocols: removed unused code
* p2p/protocols: addressed @nonsense PR comments
6 years ago
Johns Beharry
80d3907767
cmd/clef: replace password arg with prompt ( #17897 )
...
* cmd/clef: replace password arg with prompt (#17829 )
Entering passwords on the command line is not secure as it is easy to recover from bash_history or the process table.
1. The clef command addpw was renamed to setpw to better describe the functionality
2. The <password> argument was removed and replaced with an interactive prompt
* cmd/clef: remove undeclared variable
6 years ago
Wenbiao Zheng
6810933640
eth/downloader: SetBlocksIdle is not used ( #17962 )
...
__
<(o )___
( ._> /
`---'
6 years ago
Felix Lange
7f22b59f87
core/state: simplify proof methods ( #17965 )
...
This fixes the import cycle build error in core/vm tests.
There is no need to refer to core/vm for a type definition.
6 years ago
Martin Holst Swende
4c0883e20d
core/vm: adds refund as part of the json standard trace ( #17910 )
...
This adds the global accumulated refund counter to the standard
json output as a numeric json value. Previously this was not very
interesting since it was not used much, but with the new sstore
gas changes the value is a lot more interesting from a consensus
investigation perspective.
6 years ago
Wenbiao Zheng
3088c122d8
eth/downloader: fix comment typos ( #17956 )
6 years ago
holisticode
88b41a9e68
swarm/network/stream: disambiguate chunk delivery messages (retrieval… ( #17920 )
...
* swarm/network/stream: disambiguate chunk delivery messages (retrieval vs syncing)
* swarm/network/stream: addressed PR comments
* swarm/network/stream: stream protocol version change due to new message types in this PR
6 years ago
Elad
66debd91d9
swarm/api/http: remove ModTime=now for direct and multipart uploads ( #17945 )
6 years ago
Felix Lange
75060ef96e
cmd/bootnode: fix -writeaddress output ( #17932 )
6 years ago
Wenbiao Zheng
6ff97bf2e5
accounts: wallet derivation path comment is mistaken ( #17934 )
6 years ago
Wuxiang
d98c45f70f
core: fix a typo ( #17941 )
6 years ago
Elad
aeb733623e
swarm/network: disallow historical retrieval requests ( #17936 )
6 years ago
Simon Jentzsch
97fb08342d
EIP-1186 eth_getProof ( #17737 )
...
* first impl of eth_getProof
* fixed docu
* added comments and refactored based on comments from holiman
* created structs
* handle errors correctly
* change Value to *hexutil.Big in order to have the same output as parity
* use ProofList as return type
6 years ago
Attila Gazso
cdf5982cfc
swarm: Lightnode mode: disable sync, retrieve, subscription ( #17899 )
...
* swarm: Lightnode mode: disable sync, retrieve, subscription
* swarm/network/stream: assign error and check in one line
* swarm: restructured RegistryOption initializing
* swarm: empty commit to retrigger CI build
* swarm/network/stream: Added comments explaining RegistryOptions
6 years ago