Pankaj Garg
55f660d5f9
address review comments
2019-03-11 14:07:17 -07:00
Carl
a4acc631ee
Refactor packing packets into blobs into separate packets_to_blob() function in packets.rs
2019-03-11 14:07:17 -07:00
Carl
3ddf4b6c24
PR fixes
2019-03-11 14:07:17 -07:00
Carl
ccd1173a83
Add local cluster test for forwarding
2019-03-11 14:07:17 -07:00
Carl
cd1a9faacd
Batch packet forwarding in banking stage
2019-03-11 14:07:17 -07:00
Carl
b60b8ec5ae
Add logic for deserialzing packets embedded in blobs
2019-03-11 14:07:17 -07:00
Carl
536c8accf8
Add separate sockets for tpu forwarder and run different protocol for those sockets
2019-03-11 14:07:17 -07:00
Carl
7beefb3f81
Add forwarder sockets and address to contact info and sockets structs
2019-03-11 14:07:17 -07:00
Pankaj Garg
fe1f67ea9a
clippy errors
2019-03-11 14:07:17 -07:00
Pankaj Garg
069ce71256
fix clippy
2019-03-11 14:07:17 -07:00
Pankaj Garg
e3cacb9296
Buffer unprocessed packets if next leader is the current node
2019-03-11 14:07:17 -07:00
anatoly yakovenko
0c592c52f6
Wake up replay stage when the poh bank is cleared. ( #3211 )
...
* wake up replay stage when the poh bank is cleared
* bump ticks per second
* Increase ticks per slot to match faster tick rate
* Remove check that working bank must be the bank for the greatest slot
* Make start_leader() skip starting TPU for slots we've already been leader for
2019-03-11 13:58:23 -07:00
Sagar Dhawan
78bb96ee51
Reduce bootstrap leader stake ( #3218 )
2019-03-11 13:29:44 -07:00
Rob Walker
195a880576
pass Pubkeys as refs, copy only where values needed ( #3213 )
...
* pass Pubkeys as refs, copy only where values needed
* Pubkey is pervasive
* fixup
2019-03-09 19:28:43 -08:00
Michael Vines
ac226c3e14
Remove superfluous set_leader() usage
2019-03-08 19:59:54 -08:00
Michael Vines
4d5b832775
Remove commented out and clearly broken test
2019-03-08 19:59:54 -08:00
Michael Vines
79b2542ca4
Remove CrdsValue::LeaderId
2019-03-08 19:41:51 -08:00
Michael Vines
17921c9fae
Delete NodeInfo type
2019-03-08 18:37:36 -08:00
Rob Walker
0acdbc0d03
plumb staking_account and voting_keypair from multinode-demo to Vote ( #3199 )
...
* plumb staking_account and voting_keypair from bash to Vote
2019-03-08 19:29:08 -07:00
Sagar Dhawan
c8c85ff93b
Fix propagation of incorrectly signed messages in Gossip ( #3201 )
2019-03-08 18:08:24 -08:00
Michael Vines
31cbb52654
Rename new_entry_point as new_gossip_entry_point to clarify usage
2019-03-08 17:42:25 -08:00
Michael Vines
cd88f81817
bench-tps no longer uses an invalid ContactInfo for RPC
2019-03-08 17:42:25 -08:00
Tyera Eulberg
6de24ff0be
s/account/program in info msgs
2019-03-08 16:30:29 -07:00
Michael Vines
de4d14ddc0
set_leader() now remains local and doesn't emit a LeaderId gossip message
2019-03-08 15:10:19 -08:00
Michael Vines
5b386ec30a
Delete cluster_info::get_gossip_top_leader()
2019-03-08 12:10:34 -08:00
Michael Vines
e04148ff44
Reduce leader_id visiblity
2019-03-08 11:42:06 -08:00
Michael Vines
d5d853838c
RPC now sends transactions at the local TPU
...
The local TPU will forward the transactions as needed if it's not
currently the leader
2019-03-08 11:42:06 -08:00
Michael Vines
e18673953c
Remove poll_gossip_for_leader()
2019-03-08 11:14:47 -08:00
Michael Vines
12f3fd75e8
StorageStage now sends transactions at the local TPU
2019-03-08 11:03:49 -08:00
Michael Vines
7bd0929157
Remove process_block()
2019-03-08 09:36:30 -08:00
Michael Vines
19488ba42a
Speling
2019-03-08 09:36:30 -08:00
Michael Vines
f0dc10c67b
Hide close(), the user is supposed to drop instead
2019-03-08 09:36:30 -08:00
Tyera Eulberg
f55103498f
Remove commented test code
2019-03-07 19:18:53 -07:00
Greg Fitzgerald
c5e9c6fdb6
Get chacha off Budget
2019-03-07 19:18:53 -07:00
Greg Fitzgerald
125a345c90
Fix pubsub test
2019-03-07 19:18:53 -07:00
Greg Fitzgerald
10b16753af
Remove 'new' constructor
2019-03-07 19:18:53 -07:00
Tyera Eulberg
259c820f15
Review comments
2019-03-07 17:21:32 -07:00
Tyera Eulberg
6a81f9e443
Add program subscriptions to rpc
2019-03-07 17:21:32 -07:00
Sagar Dhawan
02eb234399
Fix TVU and PoH Recorder going out of sync ( #3164 )
...
* Fix broadcast_stage error
* Account for very fast ticks in tick verification
2019-03-07 15:49:07 -08:00
Michael Vines
0be59cad4e
Remove dead code
2019-03-07 13:05:42 -08:00
Michael Vines
5edbd6a7fb
gossip_service::discover() now reports the leader
2019-03-07 13:05:42 -08:00
Michael Vines
54ff9b3ac2
Shutdown gossip on failure
2019-03-07 13:05:42 -08:00
Michael Vines
5463226184
Give spy nodes a proper keypair
2019-03-07 13:05:42 -08:00
Michael Vines
b96bccd71f
Use Self
2019-03-07 13:05:42 -08:00
Michael Vines
07a948a0d0
Replicator now uses its keypair for gossip
2019-03-07 13:05:42 -08:00
Michael Vines
8f034280dc
Increase polling frequency to report convergence quicker
2019-03-07 13:05:42 -08:00
Michael Vines
83f551d9b9
Use poll_gossip_for_leader()
2019-03-07 13:05:42 -08:00
Michael Vines
f83a64d17f
poll_gossip_for_leader: simplify timeout arg
2019-03-07 13:05:42 -08:00
Michael Vines
8bc7d5a172
Remove spy_node duplication
2019-03-07 13:05:42 -08:00
Michael Vines
679a718cbf
poll_gossip_for_leader() code cleanup
2019-03-07 13:05:42 -08:00
Michael Vines
b083e4db48
Resolve TODO
2019-03-07 13:05:42 -08:00
Michael Vines
a3cab470d3
Rename ClusterInfo::new_with_keypair() to ClusterInfo::new()
2019-03-07 13:05:42 -08:00
Michael Vines
bb93504965
Rename ClusterInfo::new() to ClusterInfo::new_with_invalid_keypair()
2019-03-07 13:05:42 -08:00
Rob Walker
9e9c0785e7
groom broadcast ( #3170 )
2019-03-07 09:43:42 -08:00
Tyera Eulberg
9fedc9513b
Use generics for add/remove subscriptions
2019-03-06 20:50:48 -08:00
Rob Walker
01fb76f4bd
add epoch warmup ( #3166 )
...
add epoch warmup
2019-03-06 16:32:23 -08:00
Rob Walker
63a4ed74a4
consolidate logic for epoch and slot_index into Bank ( #3144 )
2019-03-06 14:44:21 -08:00
Pankaj Garg
0252bf2f46
fix fmt
2019-03-06 12:25:28 -08:00
Pankaj Garg
283bb84134
Create UDP socket once per process_loop for forwarding transactions
2019-03-06 12:25:28 -08:00
Michael Vines
0a4f909566
requestAirdrop RPC API is now optional
2019-03-06 10:23:57 -08:00
Michael Vines
516aa44aad
Don't fetch the working_bank twice
2019-03-06 10:23:57 -08:00
Michael Vines
b1763f9187
Remove dead code
2019-03-06 10:23:57 -08:00
Michael Vines
b03fd782de
Make room for more fields in JsonRpcConfig
2019-03-06 10:23:57 -08:00
Tyera Eulberg
789a9df9f6
s/id/hash in block events
2019-03-06 08:51:10 -08:00
Michael Vines
bd39ab9365
Clean up exit signal handling
2019-03-05 19:20:29 -08:00
anatoly yakovenko
1c0cfb17a3
Start leader based on Poh tick height. ( #3084 )
...
* Start leader based on poh and test
* Equalize validator and leader stakes in LocalCluster
* Clear WorkingBank on poh_recorder reset
2019-03-05 17:56:51 -08:00
Michael Vines
f1d1852691
Rename tokens to lamports in core/
2019-03-05 17:28:06 -08:00
Michael Vines
53f09c44f3
Rename tokens to lamports in sdk/
2019-03-05 17:28:06 -08:00
Carl
bd237a2d6f
Add transaction to test harness to set the delegate for validator vote accounts
2019-03-05 16:51:47 -07:00
Carl
76a7038335
Update test harness to set a delegate on validator vote accounts
2019-03-05 16:51:47 -07:00
Rob Walker
cb0560df92
remove dead code
2019-03-05 15:35:24 -08:00
Rob Walker
b9e878ee80
slot_height considered harmful ( #3135 )
...
* slot_height considered harmful
* fix test_tick_slot_epoch_indexes
2019-03-05 14:18:29 -08:00
Michael Vines
1997640094
Remove prints
2019-03-05 14:09:40 -08:00
Stephen Akridge
0f1d6c6271
Check for no entries left in blocktree in a given slot
...
There may not be ENTRIES_PER_SEGMENT entries a slot, if so
then we will hang waiting for more.
2019-03-05 11:53:40 -08:00
Greg Fitzgerald
52fc974cdf
The funder is not a staker
2019-03-05 12:46:18 -07:00
Greg Fitzgerald
fc8489a04d
Stop using LocalVoteSigner
2019-03-05 09:34:54 -07:00
Greg Fitzgerald
885eeec3ed
Boot storage program from the SDK
2019-03-05 07:16:33 -07:00
dependabot[bot]
e4be57c3b6
Bump libc from 0.2.49 to 0.2.50
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.49 to 0.2.50.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.49...0.2.50 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-05 07:14:51 -07:00
Michael Vines
6ab6e6cb9b
Clean up exit flag handing across TVU
2019-03-04 21:26:50 -08:00
Michael Vines
2a849ae268
Inline LeaderServices
2019-03-04 21:26:50 -08:00
Michael Vines
4808f6a9f8
Clean up exit flag handing in TPU
2019-03-04 21:26:50 -08:00
Michael Vines
96bfe92334
Clean up fullnode/tpu/tvu/fetch_stage exit signal
2019-03-04 21:26:50 -08:00
Michael Vines
e7cde846cb
Clean up gossip service exit flag handling
2019-03-04 21:26:50 -08:00
Michael Vines
eb90d8d463
Clean up Rpc exit signal
2019-03-04 21:26:50 -08:00
Michael Vines
6a8a97f644
Remove dead code
2019-03-04 20:05:14 -08:00
Michael Vines
20b831264e
Properly plumb exit flag to PubSubService
2019-03-04 19:58:37 -08:00
Rob Walker
43bab23651
remove duplicate child creation ( #3100 )
...
* remove duplicate child creation
* resurrect test for partial slot
* simplify blocktree_processor some more (no tick_height, yay!)
* ensure frozen
2019-03-04 19:22:23 -08:00
Michael Vines
906df5e20e
Exit signal cleanup: pass in references, make the receiver clone as needed
2019-03-04 18:43:21 -08:00
Rob Walker
794e961328
use Bank's notion of leader_id where possible ( #3119 )
2019-03-04 18:40:47 -08:00
Sagar Dhawan
dc42c12f2b
Revert to more consistent naming ( #3114 )
2019-03-04 17:50:19 -08:00
Rob Walker
6d82123125
rename bank_id to bank_slot
2019-03-04 17:10:27 -08:00
Michael Vines
51502537b1
Remove extra reference
2019-03-04 15:49:02 -08:00
Michael Vines
4714dc3a5c
De-pub
2019-03-04 15:49:02 -08:00
dependabot[bot]
846fdd3b2d
Bump reqwest from 0.9.10 to 0.9.11
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.10 to 0.9.11.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.9.10...v0.9.11 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-04 13:47:37 -07:00
Anatoly Yakovenko
3a4018cd03
review comments; rename Unsafe to TestOnlyAllowRpcFullnodeExit
2019-03-04 10:18:17 -08:00
Anatoly Yakovenko
5aaaa7f45c
fixup!
2019-03-04 10:18:17 -08:00
Anatoly Yakovenko
c299dd390e
Fullnode rpc to exit with unsafe config
2019-03-04 10:18:17 -08:00
Michael Vines
9c44c173df
Remove ipv6 feature
2019-03-04 09:56:58 -08:00
Michael Vines
d708982f27
Remove unstable and test feature flags
2019-03-04 09:30:00 -08:00
anatoly yakovenko
bb774173bb
Add PohRecorder reset tests ( #3083 )
...
* tests for reset
* fixup!
2019-03-04 08:08:22 -07:00
anatoly yakovenko
3906b1af6a
deadcode ( #3081 )
2019-03-03 21:16:59 -08:00
carllin
de1d7ce312
Cleanup staking utils to divide functionality between delegate and normal node utitliites. Also replaces vote_states() with more generalized vote_accounts() in Bank. ( #3070 )
2019-03-03 18:04:13 -08:00
anatoly yakovenko
1654199b23
Use PohRecorder to synchronize instead of rotate. ( #3080 )
2019-03-03 16:44:06 -08:00
Greg Fitzgerald
037fcf6b3d
Bump all native programs up a level
...
Don't categorize programs by a single backend.
2019-03-02 22:11:48 -08:00
Michael Vines
a9a7fc56eb
Purge MAX_RECENT_TICK_HASHES
2019-03-02 17:04:42 -08:00
Greg Fitzgerald
1edf6c361e
Move Vote program out of the SDK
2019-03-02 16:44:36 -08:00
Sagar Dhawan
b99e3eafdd
Fix stakes not being setup correctly
2019-03-02 16:44:36 -08:00
Greg Fitzgerald
e6486b2824
Move Budget out of the SDK
2019-03-02 16:44:36 -08:00
Sagar Dhawan
d22a13257e
Refactor bank get vote accounts ( #3052 )
2019-03-02 16:44:36 -08:00
Michael Vines
a94880574b
block_hash => blockhash
2019-03-02 12:13:30 -07:00
Michael Vines
0f1582c196
cargo fmt
2019-03-02 12:13:30 -07:00
Michael Vines
85159a0eb4
Rename JSON RPC getLastId to getRecentBlockHash
2019-03-02 12:13:30 -07:00
Michael Vines
258cf21416
Purge remaining last_id (now called block_hash)
2019-03-02 12:13:30 -07:00
Michael Vines
2bfad87a5f
Rename Bank.last_id() to Bank.last_block_hash()
2019-03-02 12:13:30 -07:00
Michael Vines
ce1b72809a
Rename get_last_id() to get_recent_block_hash()
2019-03-02 12:13:30 -07:00
Michael Vines
4f3e149a98
Remove stale/wrong comments
2019-03-02 12:13:30 -07:00
Michael Vines
642d3d903f
Rename get_storage_mining_entry_height to get_storage_entry_height for consistency
2019-03-02 12:13:30 -07:00
Michael Vines
81cd461591
Rename storage_last_id to storage_block_hash
2019-03-02 12:13:30 -07:00
Michael Vines
0743f54dfe
Rename LastIdNotFound to BlockHashNotFound
2019-03-02 12:13:30 -07:00
Michael Vines
176d5e0d37
Rename Transaction last_id field to recent_block_hash
2019-03-02 12:13:30 -07:00
Michael Vines
13ee8efd42
Move build.rs into core/
2019-03-02 09:52:18 -08:00
Michael Vines
5f5d779ee1
Move src/ into core/src. Top-level crate is now called solana-workspace
2019-03-02 09:52:18 -08:00