Rob Walker
567bbecca0
use bank.id() where we want 'slot'; bank.slot_height() is not slot ( #3014 )
2019-02-28 19:07:47 -08:00
Pankaj Garg
b41286919d
Rename bank.id to bank.slot ( #3018 )
2019-02-28 18:02:45 -08:00
Sagar Dhawan
20e4edec61
Refactor Vote Program Account setup ( #2992 )
2019-02-28 17:08:45 -08:00
Pankaj Garg
d5f0e49535
Refactor fullnode rotation test ( #3015 )
2019-02-28 15:53:09 -08:00
Pankaj Garg
30bccc0c68
Fix slot index used while calculating leader schedule
...
- slot_leader_at() was using absolute slot number instead of index in the epoch
2019-02-28 15:41:01 -08:00
carllin
217f30f9c3
Add get_supermajority_slot() function ( #2976 )
...
* Moved supermajority functions into new module, staking_utils
* Move staking functions out of bank, and into staking_utils, change get_supermajority_slot to only use state from epoch boundary
* Move bank slot height in staked_nodes_at_slot() to be bank id
2019-02-28 13:15:25 -08:00
Greg Fitzgerald
fec867539d
More SlotMeta docs ( #3011 )
2019-02-28 12:18:11 -07:00
Rob Walker
d123d86d84
remove forks.working_bank() where possible ( #3010 )
2019-02-28 10:57:58 -08:00
Greg Fitzgerald
8d004ee947
Clarify is_full
2019-02-28 11:06:06 -07:00
Greg Fitzgerald
4704aa1f80
Rename SlotMeta::is_trunk to SlotMeta::is_rooted
2019-02-28 10:39:56 -07:00
Michael Vines
271115a6be
Switch blockstream_service to create_new_tmp_ledger!
2019-02-28 07:59:17 -08:00
Greg Fitzgerald
8e4cd6fcc3
Delete leader scheduler artifact
2019-02-28 07:47:37 -08:00
Tyera Eulberg
6eb09a6901
Trigger blockstream on full-slot notification (clean up superfluous stuff)
2019-02-28 07:20:16 -07:00
Tyera Eulberg
e04d2379df
Remove bank dependency from forward_entries
2019-02-28 07:20:16 -07:00
Michael Vines
7ccd601100
Remove incorrect file description
2019-02-27 22:36:18 -08:00
Michael Vines
0dc5af62ff
Standardize on 'use log::*' for easy access to all log level macros
2019-02-27 21:16:23 -08:00
Michael Vines
32aaa5fd06
Derive retry timeout from slot duration
2019-02-27 17:00:10 -08:00
Tyera Eulberg
873007bae1
Fix tests and move bank dependency slightly
2019-02-27 15:31:23 -08:00
Tyera Eulberg
a67a88c8ef
Hoist EntrySender in ReplayStage
2019-02-27 15:31:23 -08:00
carllin
6d1b43f1b1
Make leader_schedule a utitlity module named leader_schedule_utils ( #2988 )
2019-02-27 14:41:46 -08:00
Sagar Dhawan
3a20a20807
Reintroduce leader_id to blobs ( #2986 )
2019-02-27 13:37:08 -08:00
Michael Vines
140954a53c
Remove Tpu::is_leader(), fullnode doesn't need it anymore
2019-02-27 11:55:21 -08:00
Michael Vines
16e2443f61
Remove unnecessary if
2019-02-27 11:06:38 -08:00
Rob Walker
9adbc1dd60
nit: always pass &Arc<Bank>, clone() only where consumed
2019-02-27 10:55:43 -08:00
Sathish Ambley
ca0f16ccc0
Fix test failure
2019-02-27 08:22:52 -08:00
Sathish Ambley
4149f7fd1c
Fix review comments
2019-02-27 08:22:52 -08:00
Stephen Akridge
5216952691
Change benchmark path to target/ or OUT_DIR
...
Also reduce some code duplication with cleanup_dirs fn.
2019-02-27 08:22:52 -08:00
Sathish Ambley
c46b2541fe
- Fix lock/unlock of accounts
...
- Fix format check warnings
2019-02-27 08:22:52 -08:00
Stephen Akridge
2158ba5863
tx count per fork
2019-02-27 08:22:52 -08:00
Stephen Akridge
180d297df8
Rebase and panic with no accounts
...
Add Accounts::has_accounts function for hash_internal_state calculation.
2019-02-27 08:22:52 -08:00
Sathish Ambley
c276375a0e
Persistent account storage across directories
2019-02-27 08:22:52 -08:00
Michael Vines
9e2a7921c8
Recover from rebase
2019-02-26 22:08:17 -08:00
Michael Vines
9539154a4a
Remove test_name arg
2019-02-26 22:08:17 -08:00
Michael Vines
84bd9296cd
Centralize unwrap() within create_new_tmp_ledger!
2019-02-26 22:08:17 -08:00
Michael Vines
88ecce12a2
No longer need to give new_fullnode() a random string
2019-02-26 22:08:17 -08:00
Michael Vines
5a7b99ecc2
Add/employ create_new_tmp_ledger!()
2019-02-26 22:08:17 -08:00
Michael Vines
55a76ed4b0
Populate test ledgers with a full slots to reduce test boilerplate
2019-02-26 22:08:17 -08:00
Pankaj Garg
789fff2ae2
Replace LeaderScheduler with LeaderScheduler1 ( #2962 )
...
* Migrate to LeaderScheduler1 (and added some missing methods)
* Delete LeaderScheduler
* Rename LeaderScheduler1 to LeaderScheduler
2019-02-26 22:16:18 -07:00
Carl
ee16cc77a3
Move last_ids to a simple Hash, unwrap from Arc<RwLock>>
2019-02-26 18:19:26 -08:00
Michael Vines
a669241cb1
Add/use get_tmp_ledger_path!() and tmp_copy_blocktree!()
2019-02-26 17:50:43 -08:00
Rob Walker
ea0837973e
blocktree_processor to use slots as bank ids, and squash
2019-02-26 17:35:22 -07:00
Sagar Dhawan
ee83a2ac29
Make stake sorting more deterministic for data plane
2019-02-26 14:11:08 -08:00
Michael Vines
82c759b6cb
Add whitespace, comment cleanup
2019-02-26 14:07:39 -08:00
Michael Vines
6de5354b8e
Update the RPC bank on fullnode rotation
2019-02-26 14:07:39 -08:00
Michael Vines
d1e1258f97
Revert "Ignore flaky test_active_set_refresh_with_bank"
...
This reverts commit 10ad536e09
.
2019-02-26 12:04:58 -08:00
Sagar Dhawan
4d73bbe48f
Fix flaky gossip weighted tests
2019-02-26 11:58:03 -08:00
Michael Vines
10ad536e09
Ignore flaky test_active_set_refresh_with_bank
2019-02-26 11:56:47 -08:00
anatoly yakovenko
6dcb97af9e
Move PohService and PohRecorder out of banking_stage and into fullnode ( #2852 )
...
* Move PohService out of banking_stage and into fullnode.
* 10 second slots
2019-02-26 10:48:18 -08:00
Michael Vines
9420ba52e9
Squash the new working bank to ensure zero-balance accounts get purged
2019-02-26 10:09:31 -08:00
Greg Fitzgerald
ec35c1fc79
Fix leader scheduling in replay stage
2019-02-26 09:51:12 -07:00