Commit Graph

4279 Commits

Author SHA1 Message Date
cc68ecdacf Use default if previous values do not exist 2019-02-27 08:22:52 -08:00
96b349dcbb Performance optimizations 2019-02-27 08:22:52 -08:00
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
c46b2541fe - Fix lock/unlock of accounts
- Fix format check warnings
2019-02-27 08:22:52 -08:00
2158ba5863 tx count per fork 2019-02-27 08:22:52 -08:00
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
c276375a0e Persistent account storage across directories 2019-02-27 08:22:52 -08:00
130563cd4c AppendVec 2019-02-27 08:22:52 -08:00
9e2a7921c8 Recover from rebase 2019-02-26 22:08:17 -08:00
9539154a4a Remove test_name arg 2019-02-26 22:08:17 -08:00
84bd9296cd Centralize unwrap() within create_new_tmp_ledger! 2019-02-26 22:08:17 -08:00
88ecce12a2 No longer need to give new_fullnode() a random string 2019-02-26 22:08:17 -08:00
5a7b99ecc2 Add/employ create_new_tmp_ledger!() 2019-02-26 22:08:17 -08:00
55a76ed4b0 Populate test ledgers with a full slots to reduce test boilerplate 2019-02-26 22:08:17 -08:00
033a04129a Add lockouts to vote program (#2944)
* Add lockouts to vote program

* Rename MAX_VOTE_HISTORY TO MAX_LOCKOUT_HISTORY, change process_vote() to only pop votes after MAX_LOCKOUT_HISTORY + 1 votes have arrived

* Correctly calculate serialized size of an Option, rename root_block to root_slot
2019-02-26 22:19:31 -07:00
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
9750488200 Update rust-bpf-sysroot to pull in latest core,stdsimd (#2972) 2019-02-26 19:55:28 -08:00
46ec5cf765 Bump dirs from 1.0.4 to 1.0.5
Bumps [dirs](https://github.com/soc/dirs-rs) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/soc/dirs-rs/releases)
- [Commits](https://github.com/soc/dirs-rs/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-26 20:04:36 -07:00
ee16cc77a3 Move last_ids to a simple Hash, unwrap from Arc<RwLock>> 2019-02-26 18:19:26 -08:00
a669241cb1 Add/use get_tmp_ledger_path!() and tmp_copy_blocktree!() 2019-02-26 17:50:43 -08:00
0174945853 Program tests now check signature status (#2965) 2019-02-26 17:09:57 -08:00
ea0837973e blocktree_processor to use slots as bank ids, and squash 2019-02-26 17:35:22 -07:00
85819983d7 Bump lazy_static from 1.2.0 to 1.3.0
Bumps [lazy_static](https://github.com/rust-lang-nursery/lazy-static.rs) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/rust-lang-nursery/lazy-static.rs/releases)
- [Commits](https://github.com/rust-lang-nursery/lazy-static.rs/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-26 17:31:19 -07:00
78841532f7 Add Rust helpers (#2959) 2019-02-26 15:17:38 -08:00
72214b2b68 Squash test to test parent bank after squash 2019-02-26 15:15:34 -08:00
ee83a2ac29 Make stake sorting more deterministic for data plane 2019-02-26 14:11:08 -08:00
82c759b6cb Add whitespace, comment cleanup 2019-02-26 14:07:39 -08:00
6de5354b8e Update the RPC bank on fullnode rotation 2019-02-26 14:07:39 -08:00
87281f6ed5 ensure at Accounts level that tokens == 0 means None (#2960) 2019-02-26 13:51:39 -08:00
a8cd66ffa2 Pull Rust enabled LLVM (#2957) 2019-02-26 13:03:57 -08:00
d1e1258f97 Revert "Ignore flaky test_active_set_refresh_with_bank"
This reverts commit 10ad536e09.
2019-02-26 12:04:58 -08:00
4d73bbe48f Fix flaky gossip weighted tests 2019-02-26 11:58:03 -08:00
10ad536e09 Ignore flaky test_active_set_refresh_with_bank 2019-02-26 11:56:47 -08:00
bc2d4c7681 Clean up test_boot_validator_from_file() 2019-02-26 11:12:05 -08:00
a7f200847f Clean up test_leader_restart_validator_start_from_old_ledger 2019-02-26 11:12:05 -08:00
411f154827 Reduce log spam 2019-02-26 11:12:05 -08:00
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
9420ba52e9 Squash the new working bank to ensure zero-balance accounts get purged 2019-02-26 10:09:31 -08:00
ec35c1fc79 Fix leader scheduling in replay stage 2019-02-26 09:51:12 -07:00
b752511f41 Attempt to pull the completed replication work into the book 2019-02-26 09:23:12 -07:00
af206111e2 Hoist new leader scheduler up to protocol level
Attempt to feel similar to LeaderScheduler to easy migration.
2019-02-26 08:23:01 -08:00
ba50e1ac81 Move data plane fanout chapter out of proposals 2019-02-26 09:20:09 -07:00
f9f493ee7a Tighten up storage_stage changes 2019-02-26 09:05:00 -07:00
137233b4a1 Add EntryMeta wrapper 2019-02-26 09:05:00 -07:00
3897b66270 Let the bank creator decide where to send transaction fees 2019-02-26 08:06:08 -07:00
feefdca969 Minor cleanup to Bank and LastIdQueue 2019-02-26 06:46:38 -08:00
25690ff078 merge_parents() => squash() (#2943) 2019-02-25 20:34:05 -08:00
897279eddb Encapsulate log::Level so counter macro users don't need to use it 2019-02-25 20:01:30 -08:00
5f5725a4ea Re-add leader scheduler 2019-02-25 19:28:24 -08:00
6a61f25735 Only install rust-bpf if rust-bpf version changes (#2939) 2019-02-25 19:09:16 -08:00