Gav Wood
b437265082
Fix build.
2016-12-16 11:27:00 +01:00
Gav Wood
396ab5b361
Refactor and make is_syncing.
2016-12-16 10:31:10 +01:00
arkpar
f8961484c1
Merge branch 'master' of github.com:ethcore/parity into tx-block
2016-12-15 19:10:33 +01:00
arkpar
2952ea1b85
Delayed transactions
2016-12-15 18:19:19 +01:00
keorn
fa504e510f
Merge branch 'master' into auth-bft
2016-12-12 21:28:46 +01:00
keorn
19adb84527
TestNet flushing and cleanup
2016-12-12 19:44:24 +01:00
keorn
8ed89bb74f
propagate proposal to all peers
2016-12-12 13:00:51 +01:00
Gav Wood
c0a2d5c8f5
Merge pull request #3796 from ethcore/tx-broadcast
...
Avoid broadcasting transactions to peers that send them
2016-12-12 04:13:56 +01:00
Gav Wood
58b72c521d
Rename ethcore -> parity in licenses.
2016-12-11 19:31:31 +01:00
Tomasz Drwięga
b56f12adc6
Merge branch 'master' into tx-broadcast
...
Conflicts:
ethcore/light/src/net/context.rs
ethcore/light/src/net/tests/mod.rs
2016-12-11 17:31:56 +01:00
arkpar
c777362d02
Sync channel for consensus test
2016-12-11 12:32:01 +01:00
Tomasz Drwięga
19ca9ad460
Prevent broadcasting transactions to peer that send them.
2016-12-10 21:22:19 +01:00
keorn
f3af0f46be
Merge branch 'master' into auth-bft
2016-12-10 18:14:35 +01:00
Robert Habermeier
a6fcd8a0d9
Merge pull request #3794 from ethcore/net-fix
...
Network connectivity fixes
2016-12-10 16:55:17 +01:00
Tomasz Drwięga
704054ef40
Merge branch 'master' into tx-broadcast
...
Conflicts:
ethcore/src/client/traits.rs
2016-12-10 15:23:53 +01:00
Tomasz Drwięga
e1ade5b375
Maintaining a list of transactions propagated from other peers
2016-12-10 15:18:44 +01:00
arkpar
02c788a403
Network connectivity fixes
2016-12-10 14:20:34 +01:00
Gav Wood
5f1fcf95e0
Make *ID names consistent with std Rust (Id)
2016-12-09 23:01:43 +01:00
keorn
762e5f1e3e
proposed block sync tests
2016-12-09 12:05:56 +01:00
keorn
3ebfa1481d
better proposal block handling
2016-12-08 12:03:34 +01:00
keorn
6fc943ca6d
Merge branch 'master' into auth-bft
2016-12-05 16:37:35 +00:00
Gav Wood
43ec3d8f79
network_id -> u64
2016-12-05 06:54:31 -08:00
keorn
c946ffebf3
Merge branch 'master' into auth-bft
2016-12-05 11:30:11 +00:00
arkpar
b7dc60ace5
Don't share the snapshot while downloading old blocks
2016-11-30 23:33:17 +01:00
keorn
61f1699c0e
fix merge
2016-11-30 13:39:28 +00:00
keorn
155da50fcd
Merge branch 'master' into auth-bft
2016-11-30 13:06:21 +00:00
arkpar
95f81b2a2f
Moved consensus networking into Parity handler
2016-11-29 16:54:30 +01:00
Tomasz Drwięga
44314c5d02
Merge branch 'master' into clippy-bump
...
Conflicts:
rpc/src/v1/types/filter.rs
2016-11-29 11:56:55 +01:00
Tomasz Drwięga
64b1b898f1
Fixing compilation on stable
2016-11-28 17:43:38 +01:00
arkpar
bae8acee74
Allow pv62 peers
2016-11-28 17:24:02 +01:00
Tomasz Drwięga
2b3d100de2
Fixing some clippy warnings
2016-11-28 15:54:22 +01:00
keorn
1692c07ba6
Merge branch 'master' into auth-bft
2016-11-25 10:51:06 +00:00
arkpar
7da8f019d5
--no-ancient-blocks
2016-11-22 18:15:55 +01:00
keorn
6e0bd4072b
Merge branch 'master' into auth-bft
2016-11-21 12:17:00 +00:00
Gav Wood
0848a9ec3c
Merge branch 'master' into transactions-propagate
2016-11-20 13:24:08 +01:00
Arkadiy Paronyan
9c62dd3916
Limit sync reorg to 20 blocks ( #3519 )
...
* Limit sync reorg
* Fixed tests
2016-11-18 19:17:35 +01:00
Arkadiy Paronyan
51012d1fae
Revert "Limit sync reorganization to 20 blocks" ( #3517 )
2016-11-18 17:50:27 +01:00
Arkadiy Paronyan
15702a875c
Limit sync reorg ( #3509 )
2016-11-18 17:45:00 +01:00
keorn
9d61071dd7
Merge branch 'miner-no-ap' into auth-bft
2016-11-17 22:04:07 +00:00
arkpar
d890dd6f42
Updated sync algo desription
2016-11-17 13:02:44 +01:00
arkpar
5bddcd8003
Sync bandwidth optimization
2016-11-16 19:34:58 +01:00
Tomasz Drwięga
78b5c743f6
Stats RPC
2016-11-16 13:54:58 +01:00
Tomasz Drwięga
4febd0eb93
Maintaining the statistics for propagation of pending transactions
2016-11-16 10:45:55 +01:00
keorn
d19e8c5505
Merge remote-tracking branch 'parity/master' into bft
2016-11-15 10:26:37 +00:00
Tomasz Drwięga
8dc7fcbe07
Don't clear propagated transactions
2016-11-15 11:20:54 +01:00
Arkadiy Paronyan
eba0dd5023
Additional snapshot sync checks ( #3318 )
...
* Additional snapshot sync checks
* Proper checks
* Proper highset block check
2016-11-09 19:40:36 +01:00
keorn
ea960f1c27
Merge remote-tracking branch 'parity/master' into bft
2016-11-07 11:34:45 +00:00
Gav Wood
d3de475205
EIPs 155, 160, 161 ( #2976 )
...
* The front-end for each hard-fork, also EIP-160.
* Address EIP161 a/c
* Include EIP-161b
* EIP-161 part d.
* Fix test build.
* Fix one test, add another.
* Fix use of bloom & renaming.
* Initial groundwork for EIP-155
* Fix minor bug.
* Fix all tests finally.
* Rest of EIP-155.
* Add tests for EIP-155 algorithm.
Update transaction tests validation.
* Minor reformat.
* Address grumbles.
* Remove unused code.
* Fix SUICIDE gas mechanism and add consensus tests.
* Remove commented code.
* Set Frontier hardfork block number
* Fix warning.
* Transaction tests,
2016-11-03 22:22:25 +01:00
Arkadiy Paronyan
b7bebdbc75
Restart sync if no more peers with snapshots ( #3007 )
2016-10-31 14:59:41 +01:00
Arkadiy Paronyan
4ded10fcbe
Fixed transaction propagation ( #2984 )
2016-10-30 12:19:20 +01:00
Tomasz Drwięga
f17cad9dff
Fixing clippy warnings 2 ( #2961 )
2016-10-29 13:08:49 +02:00
Arkadiy Paronyan
9e82eeccfe
Snapshot sync improvements ( #2960 )
...
* Status packet timeout
* Snapshot collection state
* Pause snapshot download
* Updated tests
2016-10-29 13:07:06 +02:00
Arkadiy Paronyan
3edd9e4bee
Fixed GetNodeData output ( #2892 )
2016-10-27 15:25:54 +02:00
Tomasz Drwięga
88997801d0
Clippy bump ( #2877 )
...
* Bumping clippy
* Fixing warnings
* Fix the "fix"
2016-10-27 08:28:12 +02:00
Arkadiy Paronyan
135d5d0e4c
Snapshot fixes and optimizations ( #2863 )
2016-10-25 18:40:01 +02:00
Arkadiy Paronyan
9ec091e0cf
Move snapshot sync to a subprotocol ( #2820 )
2016-10-24 16:24:35 +02:00
keorn
866ab9c7a3
Check queue to determine major importing ( #2763 )
...
* simplify major sync detection
* fix typos
* fix merge
* more realistic EthTester
* add new synced state
* remove Blocks synced state
* move is_major_importing to rpc crate and check queue
* add tests
2016-10-20 23:36:18 +02:00
Arkadiy Paronyan
7db42df1db
Fixed stalled sync ( #2747 )
2016-10-20 12:56:37 +02:00
Arkadiy Paronyan
20e1d575da
Frontport commits from beta to master ( #2743 )
...
* Remove count limit for local transactions (#2634 )
* Fixed stalled sync
2016-10-20 00:33:00 +02:00
keorn
aa52b04e31
Unify major syncing detection ( #2699 )
...
* simplify major sync detection
* fix typos
* fix merge
* more realistic EthTester
* add new synced state
2016-10-19 18:35:39 +02:00
Arkadiy Paronyan
487dfb0208
Snapshot sync part 2 ( #2098 )
...
* Split block downloader into a module
* Snapshot sync progress
* Warp sync CLI option
* Increased snapshot chunk and ping timeouts
* Fixed an issue with delayed writes
* Updated bootnodes
* Don't run pending IO tasks on shutdown
* Optional first_block; removed insert_snapshot_block
* Fixing expect calls
* Fixed stalled sync
* style and docs
* Update block_sync.rs
[ci:skip]
2016-10-18 18:16:00 +02:00
Svyatoslav Nikolsky
c9ce25c8f3
Added peers details to ethcore_netPeers RPC ( #2580 )
...
* added peers details to ethcore_netPeers RPC
* fixed build (traits autoimplemented)
* - documentation fixes
- spaces -> tabs
- Rust-way Option's handling
* prepare for new protocols in ethcore_netPeers
* commas & documentation
2016-10-12 20:18:59 +02:00
keorn
e343153f06
mixed merge and changes...
2016-10-11 18:37:31 +01:00
Arkadiy Paronyan
193cdb1326
Don't activate peers on connect; Test ( #2537 )
2016-10-10 23:05:41 +02:00
Arkadiy Paronyan
ae6c965176
Removing unwarps from sync module ( #2551 )
2016-10-10 17:43:05 +02:00
Arkadiy Paronyan
f200eb2cfe
Backports to master ( #2530 )
...
* Transaction queue limited by gas (#2528 )
* Use global state cache when mining (#2529 )
2016-10-08 10:35:54 +02:00
arkpar
302f8a190f
Fix syncing with pv63 peers
2016-09-20 17:36:56 +08:00
Tomasz Drwięga
7f7e74869c
Bump clippy & Fix warnings ( #2109 )
...
* Bump clippy
* Fixing warnings
2016-09-16 23:03:26 +02:00
Arkadiy Paronyan
5c5d9c8ccd
Snapshot sync ( #2047 )
...
* PV64 sync
* Tests
* Client DB restore
* Snapshot restoration over IPC
* Upating test
* Minor tweaks
* Upating test
2016-09-06 15:31:13 +02:00
Tomasz Drwięga
c0b097832b
Skipping log when there are no transactions were sent ( #2045 )
2016-09-03 01:33:34 +02:00
Robert Habermeier
e0feaa9d4d
Merge pull request #2034 from ethcore/rlp-crate
...
rlp as separate crate
2016-09-02 13:48:09 +02:00
Tomasz Drwięga
5b27ea3b4d
Fixing new transactions without alternating ( #2039 )
2016-09-02 11:37:45 +02:00
Tomasz Drwięga
cabb028c1c
Propagating transactions to peers on timer. ( #2035 )
2016-09-01 19:07:58 +02:00
Robert Habermeier
bb6243c550
merge with master
2016-09-01 15:07:06 +02:00
Robert Habermeier
d763664d16
port network, sync, rpc
2016-09-01 14:49:12 +02:00
Robert Habermeier
9a5668f802
get rid of populatable and bytesconvertable traits ( #2019 )
2016-09-01 12:23:31 +02:00
Nipunn Koorapati
4389742ca3
Make the block header struct's internals private ( #2000 )
...
* Make the block header struct's internals private
Currently, this involves a lot of explicit cloning, but we
could migrate the return types of the get_* functions to
be copies rather than references since they are mostly copy
types anyway.
I opted to eliminate the constructor in favor of using
Default::default() plus calling a bunch of setters. This
is similar to the model that a Google Protobuf client uses
and I think it looks fine.
* Drop some unnecessary cloning by comparing references
* Fix compiler errors from callsites in tests.
2016-08-29 11:35:23 +02:00
Tomasz Drwięga
f114a933a3
Peers RPC + UI displaying active/connected/max peers ( #1915 )
...
* Peers API
* Bumping Parity-UI
* Fixing tests
2016-08-11 17:19:20 +02:00
Tomasz Drwięga
a427208f79
Purging .derefs, fixing clippy warnings. ( #1890 )
...
* Fixing clippy warnings
* Purging derefs
* Simplifying engine derefs
* Simplifying more engine derefs
2016-08-10 16:29:40 +02:00
Arkadiy Paronyan
2e5a6ea1ff
Send new block hashes to all peers ( #1875 )
2016-08-08 17:18:10 +02:00
Arkadiy Paronyan
4f32a9ccc1
Sync to peers with confirmed fork block only ( #1863 )
2016-08-07 22:42:35 +02:00
Arkadiy Paronyan
46a988ddd4
Fixed reported max height and transaction propagation ( #1852 )
...
* Fixed max height and transaction propagation
* Fixed tests
2016-08-05 17:01:08 +02:00
Arkadiy Paronyan
05bfdc508e
Split IO and network crates ( #1828 )
...
* Abort on panic
* Split IO and network crates
* Restore panic handler
* Fixed doc tests
2016-08-05 10:32:04 +02:00
Arkadiy Paronyan
6b1e722a6b
Disconnect peers on a fork ( #1738 )
2016-07-27 21:38:22 +02:00
Arkadiy Paronyan
d0e79be5c6
Parallel block body download ( #1659 )
2016-07-25 18:38:36 +02:00
Arkadiy Paronyan
247495fba2
Prevent syncing to ancient blocks ( #1693 )
...
* Don't try to sync to ancient blocks
* Fixed test
2016-07-23 17:27:23 +02:00
Arkadiy Paronyan
b007770ba8
Moved syncing log out of the client ( #1670 )
2016-07-20 12:36:20 +02:00
gregg dourgarian
d67369a01c
fix typos ( #1644 )
2016-07-19 20:42:23 +02:00
Nikolay Volf
44bc8a08fb
Sync IPC interface ( #1584 )
...
* chain notify trait
* replaced network service with io service
* fix ethcore crate warnings
* refactored network service without generic
* ethcore fix
* ethsync refactoring
* proper linking of notify
* manage network interface
* rpc crate rebinding
* full rewire
* sync internal io service
* fix deadlock
* fix warnings and removed async io
* sync imported message propagation
* fix rpc warnings
* binart warnings
* test fixes
* rpc mocks and tests
* fix util doctest
* fix message name and removed empty notifier
* pointers mess & dark mode fixed
* fixed sync doctest
* added few warnings
* fix review
* new convention match
* fix error unwraps
* doctest fix
* basic library re-layout
* missing files to relayout
* duplicating network config on sync level
* binary serializers for config
* ipc endpoint for manage
* ipc endpoint for sync
* handshake sorting out
* sorting out the multi-interface dispatch scenario
* fixing tests
* fix doctest
2016-07-14 12:07:33 +02:00
Robert Habermeier
36d3d0d7d7
replace synchronization primitives with those from parking_lot ( #1593 )
...
* parking_lot in cargo.toml
* replace all lock invocations with parking_lot ones
* use parking_lot synchronization primitives
2016-07-13 19:59:59 +02:00
Gav Wood
3b662c285f
Switch out .X().unwrap() for .unwrapped_X
2016-07-07 09:37:31 +02:00
NikVolf
0f7b66f557
fixed compilation & warnings
2016-07-01 22:40:54 +03:00
arkpar
ee01ad1324
Shortcut sealed block into the chain
2016-06-29 21:49:22 +02:00
Gav Wood
2a51a30d41
Fix up the pending set stuff.
2016-06-27 19:06:54 +02:00
arkpar
e77cce66a1
Update highest block progress
2016-06-23 22:40:44 +02:00
Tomasz Drwięga
5bf906625b
Fixing warnings
2016-06-23 12:19:38 +02:00
Arkadiy Paronyan
11314a660d
Sync optimization ( #1385 )
...
* Minor sync fixes
* Fixed session count sub
* handle NewBlock when downloading
* Accept new blocks right away
* block collection update fixed
2016-06-22 12:10:26 +02:00
Arkadiy Paronyan
f58e211b11
Merge pull request #1335 from ethcore/tx_perf
...
Transaction processing queue
2016-06-20 23:47:35 +02:00
arkpar
09b8116cde
TX processing queue
2016-06-20 18:42:50 +02:00
arkpar
1ffe0c185c
Reduce locking
2016-06-20 17:28:48 +02:00