Commit graph

12491 commits

Author SHA1 Message Date
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
2018-11-07 20:33:36 +01:00
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.
2018-11-07 15:07:43 +01:00
Javier Peletier
36ca85fa1c swarm/api: Fix #18007, missing signature should return HTTP 400 (#18008) 2018-11-07 14:49:42 +01:00
Wenbiao Zheng
b35165555d eth/downloader: remove the expired id directly (#17963) 2018-11-07 15:30:19 +02:00
Martin Holst Swende
5b74bb6445 signer: remove ineffectual assignments (#18049)
* signer: remove ineffectual assignments

* signer: remove ineffectual assignments
2018-11-07 14:55:54 +02:00
Martin Holst Swende
eea3ae42a3 core, eth/downloader: fix validation flaw, fix downloader printout flaw (#17974) 2018-11-07 14:47:11 +02:00
Martin Holst Swende
dc6648bb58 downloader: measure successfull deliveries, not failed (#17983)
* downloader: measure successfull deliveries, not failed

* downloader: fix typos
2018-11-07 14:18:07 +02:00
Corey Lin
0fe0b8f7b9 p2p/protocols: use keyed fields for struct instantiation (#18017) 2018-11-07 13:22:31 +02:00
Samuel Marks
80e2f3aca4 travis, appveyor: bump to Go 1.11.2 (#18031) 2018-11-07 13:17:41 +02:00
gary rong
e2640a96d4 miner: fix miner stress test (#18039) 2018-11-07 10:55:56 +02:00
parmarrushabh
9fb0674907 add a pair connections with each peer 2018-11-07 12:23:51 +05:30
AnilChinchwale
9414ae6f2a Add penalty feature for prevent signer without sign in epoc make slow 2018-11-07 12:05:58 +05:30
MestryOmkar
7892d7c162 Fixed unit test for new randomize smc. 2018-11-07 11:49:10 +05:30
AnilChinchwale
b53a7a111a add validation to randomize smc 2018-11-07 11:42:03 +05:30
parmarrushabh
15c5f76c39 change EstimateGas from pending block to latest block 2018-11-07 11:27:55 +05:30
parmarrushabh
38d7c2c707 tiny fix hook penalty 2018-11-07 11:23:55 +05:30
AnilChinchwale
d9ba92e66c keep the debug 2018-11-07 11:21:46 +05:30
MestryOmkar
b30c348078 remove bash debug from docker entrypoint 2018-11-07 11:19:58 +05:30
MestryOmkar
7bca77170d fix gofmt 2018-11-07 11:18:06 +05:30
parmarrushabh
eb9742ae27 verify penalty info in header check point 2018-11-07 11:15:32 +05:30
parmarrushabh
b41dcb301f fix error when find penalties in 4 epoch ago 2018-11-07 11:02:12 +05:30
MestryOmkar
f39fe02a9c update log & check case a master node in,out continuity 2018-11-07 10:58:12 +05:30
AnilChinchwale
551fd57271 Fixed unit test for penalty feature. 2018-11-07 10:46:09 +05:30
AnilChinchwale
f5152bf0cf Add penalty feature for prevent signer without sign in epoc make slow… 2018-11-07 10:26:28 +05:30
parmarrushabh
b8cb600964 Optimize insert new block 2018-11-07 10:09:52 +05:30
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
2018-11-07 00:04:18 +01:00
AnilChinchawale
823cd1e6ef trim m2 set to fit m1 set 2018-11-06 18:16:36 +05:30
AnilChinchawale
b8cb19732f lookup txPool before listening to imcoming tx 2018-11-06 18:05:59 +05:30
MestryOmkar
b955291388 init double validation layer 2018-11-06 18:00:21 +05:30
MestryOmkar
fa02ac70cb Fixed duplicate nonce value for randomize and sign txs 2018-11-06 17:35:20 +05:30
AnilChinchawale
deb79f4a23 push Randomization implementation 2018-11-06 17:27:13 +05:30
Anton Evangelatov
53eb4e0b0f
swarm/api: unexport Respond methods (#18037) 2018-11-06 12:34:34 +01:00
parmarrushabh
944494f6e4 Revert Randomization implementation 2018-11-06 16:16:29 +05:30
KimMachineGun
baee850471 swarm: modify context key (#17925)
* swarm: modify context key

* gofmt sctx.go
2018-11-06 09:54:19 +01:00
MestryOmkar
c9ad5cedb2 minor fix for chainHeadCh 2018-11-05 14:47:35 +05:30
parmarrushabh
dd0f27ebeb add go1.11, remove go1.9 2018-11-06 12:33:45 +05:30
AnilChinchawale
1e01e469f1 Fixed epoc number to 900 for randomize. 2018-11-05 12:02:38 +05:30
MestryOmkar
7aa35671ad Fixed randomize generator not using matrix mechanism. 2018-11-05 11:58:04 +05:30
MestryOmkar
20c5123739 Fixed unit test for block randomize. 2018-11-05 11:45:14 +05:30
AnilChinchawale
d81dc08a50 Get randomize m2 offer from validators in smart contract. 2018-11-05 11:12:22 +05:30
parmarrushabh
94193184e8 remove pkey file from node image after importing the account 2018-11-05 17:56:33 +05:30
parmarrushabh
8f319018b3 adjust signed recently condition 2018-11-05 17:52:53 +05:30
AnilChinchawale
0c1fc6e0ae concurrence init messages from transactions when insert block 2018-11-05 17:41:45 +05:30
AnilChinchawale
a8c2a15886 adjust timeout for m1 2018-11-05 17:29:35 +05:30
MestryOmkar
e88e412f84 Add control over verbosity for docker image node via env var 2018-11-05 17:24:20 +05:30
Elad
126dfde6c9 cmd/swarm: auto resolve default path according to env flag (#17960) 2018-11-04 07:59:58 +01:00
parmarrushabh
638bd677b5 Update node image verbosity 2018-11-03 17:20:50 +05:30
parmarrushabh
1857fe3991 remove delay when mine new block 2018-11-03 17:12:18 +05:30
AnilChinchawale
c6c993a1f1 add node docker image 2018-11-02 16:54:20 +05:30
MestryOmkar
6917c59b16 change devnet network id 90 2018-11-02 16:43:26 +05:30