Commit Graph

17164 Commits

Author SHA1 Message Date
Michael Vines
aac1a58651 Try harder to keep LeaderSchedulerConfig and BlocktreeConfig in sync 2019-02-11 13:10:12 -08:00
Michael Vines
095afdfe47 Merge leader_to_validator/validator_to_leader 2019-02-11 08:57:44 -08:00
Michael Vines
4ae1783b97 Remove code duplication between leader_to_validator/validator_to_leader 2019-02-10 17:53:42 -08:00
Michael Vines
cd92adb1c6 Stop sending metrics by default
`source scripts/configure-metrics.sh` can be used at any time to easily
activate metrics if desired for local development and test.
2019-02-10 17:24:45 -08:00
Michael Vines
7dec40ff05 slot 0 now contains the same number of ticks as all subsequent slots 2019-02-10 16:34:10 -08:00
carllin
4b38ecd916 fix tpu tvu bank race (#2707)
* Fix tpu tvu bank race

* Test highlighting race between tvu and tpu banks during leader to leader transitions
2019-02-10 16:28:52 -08:00
Michael Vines
02c0098d57 Less --verbose by default 2019-02-10 10:19:16 -08:00
Stephen Akridge
1e58c585d3 Add retry_get_balance function
clients don't need to know about json
2019-02-10 09:08:16 -08:00
Stephen Akridge
ed4e9febe0 Refactor wallet processing
Yuge functions
2019-02-10 09:08:16 -08:00
Michael Vines
1c61415cee Remove stale TODO. #1899 was resolved a while ago 2019-02-09 16:57:46 -08:00
Michael Vines
c02625f91a Ban Default::default() 2019-02-09 10:12:32 -08:00
Michael Vines
da5b777ee7 Purge Default::default() 2019-02-09 10:12:32 -08:00
Michael Vines
a6aaca814c Rename enum Config to enum PohServiceConfig 2019-02-09 10:12:32 -08:00
Greg Fitzgerald
ab3dd2a1b3 Integrate the blocktree proposal into the book (#2704) 2019-02-08 20:27:35 -07:00
Greg Fitzgerald
7b7a2fc52b Rename Appendix to API Reference
And move before the proposals, since all this stuff is already
implemented.
2019-02-08 18:08:00 -07:00
Stephen Akridge
95b28d4d8c Move now to after super majority time is calculated
'now' could end up being earlier than the supermajority calculated time.
Leading to underflow errors and thread panic.
2019-02-08 15:53:23 -08:00
carllin
1278396bd5 Cleanup consecutive entries code from window_service (#2697)
* Remove returning entries from db_ledger on insert

* Fix tests to check for correctness

* Delete generate_repairs and max_repair_entry_height
2019-02-08 14:19:28 -08:00
Rob Walker
0e29868e34 add ticks_left_in_block (#2694)
* add ticks_left_in_block

* de-combine tests
2019-02-08 10:30:14 -08:00
Michael Vines
0115a1f834 Remove unused SocketAddr 2019-02-08 10:23:39 -08:00
Michael Vines
cf103add54 Remove old Tpu leader rotation shutdown mechanism 2019-02-08 09:07:35 -08:00
Michael Vines
766af58cd8 Prune unnecessary test imports 2019-02-08 08:43:11 -08:00
Michael Vines
5200435bab Strip unused return type 2019-02-08 08:43:11 -08:00
Michael Vines
56734dca3b Align Tpu::new() and Tpu::switch_to_leader() arguments 2019-02-07 21:33:49 -08:00
Michael Vines
dbaf8e66ab Remove code duplication 2019-02-07 21:33:49 -08:00
carllin
6e7c5f205b Rename db_ledger to blocktree (#2698) 2019-02-07 20:52:39 -08:00
Michael Vines
e7df3cfe22 thin_client grooming: remove dead code, improve var names and error reporting 2019-02-07 19:41:58 -08:00
Michael Vines
0e8540417f Add get_next_last_id 2019-02-07 19:41:58 -08:00
Michael Vines
c3ad0eebec Clean up get_last_id() 2019-02-07 19:41:58 -08:00
Greg Fitzgerald
c82ffaabdc Rename, purge use of term delta
This would be a fine document to introduce the term delta, but
it looks like the content flows just fine without it.
2019-02-07 16:25:23 -07:00
Greg Fitzgerald
4e6a9b029a finalized -> frozen 2019-02-07 16:25:23 -07:00
Greg Fitzgerald
3e519faaa8 Move to 80-char lines 2019-02-07 16:25:23 -07:00
Greg Fitzgerald
e2eb7c1ba7 Render ASCII art 2019-02-07 16:25:23 -07:00
Greg Fitzgerald
87ba5b865d Fix markdown 2019-02-07 16:25:23 -07:00
Greg Fitzgerald
992f2790e7 Cleanup 2019-02-07 16:25:23 -07:00
Anatoly Yakovenko
e1a099632e fork design book 2019-02-07 16:25:23 -07:00
carllin
fd7db7a954 Support multiple forks in the ledger (#2277)
* Modify db_ledger to support per_slot metadata, add signal for updates, and add chaining to slots in db_ledger

* Modify replay stage to ask db_ledger for updates based on slots

* Add repair send/receive metrics

* Add repair service, remove old repair code

* Fix tmp_copy_ledger and setup for tests to account for multiple slots and tick limits within slots
2019-02-07 15:10:54 -08:00
Greg Fitzgerald
5bb4ac9873 Cleanup 2019-02-07 16:09:04 -07:00
Anatoly Yakovenko
31b0d14856 wip, initial explanation on vote signer validator and stake owner relationship 2019-02-07 16:09:04 -07:00
Tyera Eulberg
952ab2bde5 Runtime fix 2019-02-07 11:30:05 -08:00
Tyera Eulberg
3c6af52a71 Fix pay-to-self Accounts bug (#2682)
* Add failing tests

* Fix tests

* Plumb AccountLoadedTwice error

* Fixup budget cancel actions to not depend on duplicate accounts

* Use has_duplicates

* Update budget-based golden
2019-02-07 12:14:10 -07:00
Michael Vines
6317bec7aa Avoid empty --features= arg to avoid unnecessary cargo building 2019-02-07 10:42:57 -08:00
Michael Vines
eb3ba5ce2d tmi: disable --verbose by default. | export V=1| to request verbosity 2019-02-07 10:42:57 -08:00
Michael Vines
1f0b3f954a leader_scheduler: replace older terminology with ticks, slots and epochs 2019-02-07 10:42:57 -08:00
Greg Fitzgerald
cdb2a7bef3 Move runtime benchmark 2019-02-07 09:46:06 -08:00
Greg Fitzgerald
f6515b2b6a Remove top-level dependencies on solana-runtime's dependencies 2019-02-07 09:46:06 -08:00
Greg Fitzgerald
5128d7d6c3 Move runtime.rs into its own crate 2019-02-07 09:46:06 -08:00
Greg Fitzgerald
731e5e1291 Boot lua loader
Good fun, but unnecessary and I haven't been updating the rlua
dependency. If someone wants this, it can be developed outside
the solana repo.
2019-02-07 10:25:11 -07:00
Michael Vines
cedee73548 Temporarily bump DEFAULT_TICKS_PER_SLOT to 64
See solana-labs/solana#2675
2019-02-07 09:16:43 -08:00
Michael Vines
8136d52c0b Whitelist the metrics-solana-com buildkite agent from docker container cleanup 2019-02-07 08:33:53 -08:00
Greg Fitzgerald
d1945c29d7 Don't depend on solana_native_loader for IDs in the SDK 2019-02-07 08:23:44 -08:00