Rob Walker and GitHub
01eb7600d9
use stake config to defeat warmup in local_cluster ( #5549 )
...
* use stake config to defeat warmup in local_cluster
* fixups
2019-08-17 12:28:36 -07:00
Rob Walker and GitHub
52c2191545
improve local cluster stake verification ( #5551 )
2019-08-17 12:28:20 -07:00
Rob Walker and GitHub
25403e61ed
add fixed_buf ( #5546 )
2019-08-17 11:11:59 -07:00
Rob Walker and GitHub
89fe297416
improve local cluster stake verification ( #5547 )
2019-08-16 15:46:19 -07:00
Rob Walker and GitHub
99eeb63f71
move the rest of cluster to local_cluster ( #5535 )
2019-08-16 00:00:38 -07:00
Rob Walker and GitHub
94f1132fb6
fix single node testnet, remove bootstrap vote ( #5534 )
2019-08-15 18:58:46 -07:00
Rob Walker and GitHub
88ea950652
add stake_api config account ( #5531 )
2019-08-15 14:35:48 -07:00
Rob Walker and GitHub
75a2b74751
Delete append_vec_serialize
2019-08-15 11:02:30 -07:00
Rob Walker and GitHub
fd443d85c4
update config_api with initialization and recovery utilities ( #5523 )
...
* update config_api with initialization and recovery utilities
* nits
* move tests to config_tests to eliminate config_api solana_runtime dependency
* fixups
2019-08-14 15:54:31 -07:00
Rob Walker and GitHub
d22848f9b1
use live stakes for consensus ( #5426 )
...
* use live stakes for consensus
* lint
* re-enable leader_failure_4
* fixups
* re-ignore leader_failure_4
2019-08-14 13:30:21 -07:00
Rob Walker and GitHub
07d11be6ab
add global stake warmup ( #5483 )
...
* add global stake warmup
* integrate stake history into runtime
* fixup core tests
* fixup
* remove existing cooldown tests for now
2019-08-12 20:59:57 -07:00
Rob Walker and GitHub
5884469d11
count commitable in banking_stage ( #5477 )
2019-08-09 21:14:20 -07:00
Rob Walker and GitHub
ed093f86f9
harmonize percentage members ( #5459 )
...
* harmonize percentage members
* update tests
* update capitalization when burning fees
* verify capitalization in fee burn
* fixup
2019-08-09 13:58:46 -07:00
Rob Walker and GitHub
07a049aa59
include vote account in deactivate ( #5476 )
2019-08-09 12:55:21 -07:00
Rob Walker and GitHub
7b77fbd525
add stake_history sysvar ( #5475 )
2019-08-09 12:31:56 -07:00
Rob Walker and GitHub
784943ecab
unignore RUSTSEC 2019 0011 ( #5365 )
2019-08-08 14:53:02 -07:00
Rob Walker and GitHub
7a603d72bf
disallow withdraw of stake unless deactivated ( #5457 )
2019-08-07 20:29:22 -07:00
Rob Walker and GitHub
f7d3f55566
fix epoch_stakes again ( #5396 )
2019-08-01 14:27:47 -07:00
Rob Walker and GitHub
9278201198
fix epoch_stakes ( #5355 )
...
* fix epoch_stakes
* fix stake_state to use stakers_epoch
* don't allow withdrawal before deactivation
2019-07-31 15:13:26 -07:00
Rob Walker and GitHub
4a57cd3300
Update bank.rs
2019-07-30 11:33:06 -07:00
Rob Walker and GitHub
50a991fdf9
add executable checks to verify_instruction ( #5326 )
2019-07-29 15:29:20 -07:00
Rob Walker and GitHub
f4554be72c
add vote withdraw ( #5284 )
2019-07-25 23:20:47 -07:00
Rob Walker and GitHub
8537da19bb
groom accounts_db ( #5283 )
2019-07-25 22:59:28 -07:00
Rob Walker and GitHub
8a12ed029c
make accounts_db own the directory paths ( #5230 )
...
* change paths to something accounts_db (the singleton) owns, fixes SIGILL
* fail deserialize if paths don't work
serialize paths, too
* test that paths are populated from a bank snapshot
2019-07-23 13:47:48 -07:00
Rob Walker and GitHub
43bf176fab
more granular check for memoffset ignore in audit ( #5219 )
...
* more granular check for memoffset ignore in audit
* debugggin
* debugggin
* debugggin
* debugggin
* debugggin
2019-07-22 13:36:27 -07:00
Rob Walker and Michael Vines
2d42c1e33e
add root to terminology ( #5209 )
...
* add root to terminology
* review feedback
2019-07-22 09:36:20 -07:00
Rob Walker and GitHub
b766ac0899
rent ( #5205 )
2019-07-20 16:28:17 -07:00
Rob Walker and GitHub
e6b525a614
disable audit until crossbeam epoch release ( #5208 )
2019-07-20 15:50:26 -07:00
Rob Walker and GitHub
afa05acb32
more replay_stage grooming ( #5163 )
2019-07-18 14:54:27 -07:00
Rob Walker and GitHub
d47caf2af8
add information to panic ( #5177 )
2019-07-18 14:41:32 -07:00
Rob Walker and GitHub
027ebb6670
no more OUT_DIR ( #5139 )
...
* no more OUT_DIR
* no more OUT_DIR
* more information about failure
2019-07-17 14:27:58 -07:00
Rob Walker and GitHub
0ffd91df27
groom poh_recorder ( #5127 )
...
* groom poh_recorder
* fixup
* nits
* slot() from the outside means "the slot the recorder is working on"
* remove redundant check
* review comments, put next_tick back in the "is reset" check
* remove redundant check
2019-07-17 14:10:15 -07:00
Rob Walker and GitHub
5174b3bc3f
use precalculated max_tick_height ( #5134 )
2019-07-17 00:19:38 -07:00
Rob Walker and GitHub
f88c72c41e
stress tweaks ( #5140 )
2019-07-16 22:04:40 -07:00
Rob Walker and GitHub
fe87c05423
fix transaction_count ( #5110 )
...
* fix transaction_count
* add sig count to bank hash
2019-07-15 13:42:59 -07:00
Rob Walker and GitHub
16b6576839
use precalculated max_tick_height ( #5084 )
2019-07-12 22:25:48 -07:00
Rob Walker and GitHub
259a5130a8
whoops ( #5083 )
2019-07-12 19:08:51 -07:00
Rob Walker and GitHub
0d27515d09
tmp dirs target to farf ( #5079 )
2019-07-12 18:28:42 -07:00
Rob Walker and GitHub
d2b6c2e0ce
syscall work, rename syscall to sysvar, rename current to clock ( #5074 )
...
* syscall work, rename syscall to sysvar, rename current to clock
* missed one
* nit
2019-07-12 16:38:15 -07:00
Rob Walker and GitHub
a191f3fd90
add node_pubkey to vote warning ( #5033 )
2019-07-11 13:12:26 -07:00
Rob Walker and GitHub
2abbc89dcd
add accounts_index_scan_accounts ( #5020 )
2019-07-10 22:06:32 -07:00
Rob Walker and GitHub
8cad992170
reduce replicode in accounts, fix cast to i64 ( #5025 )
2019-07-10 21:22:58 -07:00
Rob Walker and GitHub
727c15ef8a
start from random point in fork stores ( #5010 )
2019-07-10 18:44:49 -07:00
Rob Walker and GitHub
f537482c86
remove set_leader from cluster_info ( #4998 )
2019-07-09 22:06:47 -07:00
Rob Walker and GitHub
f777a1a74c
groom replay_stage and poh_recorder ( #4961 )
...
* groom replay_stage and poh_recorder
* fixup
* fixup
* don't freeze() parent, need to review bank_forks and maybe vote...
2019-07-09 15:36:30 -07:00
Rob Walker and GitHub
49250f62aa
make commit_credits one trip through the rwlock ( #4969 )
2019-07-08 20:46:21 -07:00
Rob Walker and GitHub
417e8d5064
fix blocktree_processor test_process_entries_stress ( #4967 )
2019-07-08 18:11:58 -07:00
Rob Walker and GitHub
eb4edd75e6
make bank commit_credits non public ( #4944 )
...
* make bank commit_credits non pub
* track down create() failure
* move bank_client to process_transaction(), which commits credits
2019-07-08 15:37:54 -07:00
Rob Walker and GitHub
2ec5d2c7f5
start local_cluster nodes from genesis blocks ( #4928 )
2019-07-03 14:03:52 -07:00
Rob Walker and Grimes
12ef0c25b5
change vote commission to u8 (from u32) ( #4887 )
...
automerge
2019-07-02 14:18:11 -07:00
Rob Walker and GitHub
cbd2938035
update book with stake stuff ( #4893 )
2019-07-01 15:16:41 -07:00
Rob Walker and GitHub
8a64e1ddc3
add fee burning ( #4818 )
2019-06-26 10:13:21 -07:00
Rob Walker and GitHub
70f93cc126
remove mining_pool from stake_state ( #4804 )
2019-06-24 16:01:02 -07:00
Rob Walker and GitHub
a49f5378e2
rewrite vote credits redemption to eat from rewards_pools on an epoch-sensitive basis ( #4775 )
...
* move redemption to rewards pools
* rewrite redemption, touch a few other things
* re-establish test coverage
2019-06-21 20:43:24 -07:00
Rob Walker and GitHub
33d13a3aea
Update inflation.rs
2019-06-20 12:37:24 -07:00
Rob Walker and GitHub
1f0f947ed2
add validator rewards pools ( #4742 )
...
* add validator rewards pools
* populate rewards syscall
2019-06-20 12:22:29 -07:00
Rob Walker and GitHub
f8523db51d
Revert "remove build --all ( #4737 )" ( #4745 )
...
This reverts commit 63503ad589 .
2019-06-19 23:21:10 -07:00
Rob Walker and GitHub
3600a926df
protect against corruption ( #4741 )
2019-06-19 21:29:36 -07:00
Rob Walker and GitHub
7ea522e851
add rewards syscall, groom some others ( #4740 )
2019-06-19 19:46:47 -07:00
Rob Walker and GitHub
63503ad589
remove build --all ( #4737 )
...
* remove build all
* Update test-stable.sh
2019-06-19 17:36:25 -07:00
Rob Walker and GitHub
2e2b1881f5
move genesis_block to builder pattern ( #4736 )
2019-06-19 15:40:39 -07:00
Rob Walker and GitHub
41fbdc6e08
use stake ( #4721 )
2019-06-19 11:54:52 -07:00
Rob Walker and GitHub
0ff9c4cd8e
add stake warmup and cool down ( #4711 )
2019-06-17 19:34:21 -07:00
Rob Walker and GitHub
d86358eedc
add Account::new_data ( #4701 )
...
* add account_new_data
* fixup
* fixup
2019-06-17 15:58:05 -07:00
Rob Walker and GitHub
3fe5f886d7
change store to store_account ( #4689 )
2019-06-14 13:34:15 -07:00
Rob Walker and GitHub
4c6a6d63bf
add MiningPools, fund validator MiningPools from inflation ( #4676 )
...
* add MiningPool fund validator MinigPools from inflation
* fixup
* finish rename of MINIMUM_SLOT_LENGTH to MINIMUM_SLOTS_PER_EPOCH
* deterministic miningpool location
* point_value, not credit_value... use f64
2019-06-14 11:38:37 -07:00
Rob Walker and GitHub
34c0537e9b
update book with staking changes ( #4679 )
2019-06-13 16:24:03 -07:00
Rob Walker and GitHub
767efab941
add inflation to genesis ( #4652 )
...
* add inflation to genesis
* avoid having to write new()
2019-06-11 21:42:31 -07:00
Rob Walker and GitHub
575a897ffc
track market cap ( #4643 )
...
* track market cap
* fixup, rebase
* prettier
2019-06-11 17:04:13 -07:00
Rob Walker and GitHub
697228a484
rpc vote_accounts by ecurrent pocch, not stakers epoch ( #4651 )
2019-06-11 16:57:47 -07:00
Rob Walker and GitHub
3217a1d70c
use highest staked node as bootstrap leader, remove bootstrap_leader from genesis_block ( #4635 )
...
* use highest staked node as bootstrap leader, remove bootstrap_leader from genesis_block
* clippy
* fixup
* fixup
2019-06-11 11:44:58 -07:00
Rob Walker and GitHub
e56430c9fb
make runtime depend on bpf_loader ( #4601 )
...
* make runtime depend on bpf_loader
* remove vote redundancy, move bpf_loader to genesis, export program\! from bpf_loader crate
* move bpf_loader specification into genesis
* bpf tests to use genesis with bpf
* need to avoid depending on programs, except for macros
2019-06-11 10:27:22 -07:00
Rob Walker and GitHub
d1d53c3fb6
calculate stake from activated amount ( #4630 )
2019-06-10 16:17:29 -07:00
Rob Walker and GitHub
a77e576cd9
void key
2019-06-10 15:54:32 -07:00
Rob Walker and GitHub
a18c0e34f4
add activate_stake to stake_api ( #4600 )
2019-06-10 12:17:29 -07:00
Rob Walker and GitHub
37c2fa1d8d
add current to bank syscalls ( #4581 )
2019-06-07 11:41:34 -07:00
Rob Walker and GitHub
fd9fd43e83
add solana_name_id, reassociate names with modules, modularize id tests ( #4580 )
2019-06-06 19:27:49 -07:00
Rob Walker and GitHub
3433b08b8c
remove unnecessary wrapper ( #4559 )
2019-06-05 11:43:41 -07:00
Rob Walker and GitHub
e7129757c9
store_accounts to use try_available ( #4523 )
...
* store_accounts to use try_available
* tighter
* clippy
2019-06-04 11:21:12 -07:00
Rob Walker and GitHub
c56052ff16
remove from_account from stake_instruction ( #4502 )
2019-06-03 09:04:51 -07:00
Rob Walker and GitHub
482ef51502
register_tick() on the correct bank ( #4506 )
...
* skip syscall_id in hash and delta
* add more tests, skip syscalls
2019-06-03 09:04:26 -07:00
Rob Walker and GitHub
1c1d83bd56
skip syscall_id in hash and delta ( #4500 )
...
* skip syscall_id in hash and delta
* add more tests, skip syscalls
2019-05-31 12:26:45 -07:00
Rob Walker and GitHub
028e111fbc
remove payer from vote instructions ( #4475 )
2019-05-31 11:45:17 -07:00
Rob Walker and GitHub
6a1de33138
tighten up packets_to_blobs ( #4464 )
...
* tighten up packets_to_blobs
* missed a test
2019-05-29 10:08:35 -07:00
Rob Walker and GitHub
c05c3e69ca
add tests and groom naming ( #4467 )
2019-05-29 10:08:03 -07:00
Rob Walker and GitHub
14594217db
undelete votestate etc ( #4457 )
2019-05-28 16:01:27 -07:00
Rob Walker and GitHub
9fcd162412
update book with passive staking ( #4451 )
2019-05-28 14:02:04 -07:00
Rob Walker and GitHub
441fed7a5b
check freeze before updating slot_hashes ( #4448 )
...
* check freeze before updating slot_hashes
* fixup
2019-05-28 12:25:55 -07:00
Rob Walker and GitHub
ff31ffbd54
add more information to dropped vote warning ( #4449 )
...
* add more information to dropped vote warning
* fixup
2019-05-28 12:25:34 -07:00
Rob Walker and GitHub
0302f13b97
add datapoint for corrupt vote_account ( #4424 )
2019-05-24 18:34:56 -07:00
Rob Walker and GitHub
35e8f966e3
add freeze_lock() and fix par_process_entries() failure to detect self conflict ( #4415 )
...
* add freeze_lock and fix par_process_entries failure to detect self conflict
* fixup
* fixup
2019-05-23 17:35:15 -07:00
Rob Walker and GitHub
7ada8510c4
add slot_hashes to bank, remove phony slot_hashes_from_vote_instruction ( #4401 )
2019-05-22 19:07:56 -07:00
Rob Walker and GitHub
578c2ad3ea
add bank hash to votes ( #4381 )
2019-05-21 21:45:38 -07:00
Rob Walker and GitHub
de6838da78
change unwrap to expect where WSL sometimes aborts ( #4375 )
...
* change unwrap to expect where WSL sometimes aborts
* clippy
2019-05-21 21:34:51 -07:00
Rob Walker and Grimes
41a377013f
fix spelling ( #4378 )
...
automerge
2019-05-21 17:13:21 -07:00
Rob Walker and GitHub
58295b825d
introduce syscalls ( #4373 )
2019-05-21 15:19:41 -07:00
Rob Walker and GitHub
ead15d294e
add get_epoch_vote_accounts rpc ( #4317 )
...
* add get_epoch_vote_accounts rpc
* fixups
* documentation and type updates
2019-05-20 22:21:13 -07:00
Rob Walker and GitHub
d4da2fbacd
fix bench warnings ( #4356 )
2019-05-20 14:32:23 -07:00
Rob Walker and GitHub
86e03a6d1b
support issuing vote instructions from system account ( #4338 )
...
* issue vote instructions from system account
* fixup
* bring back KeypairUtil
2019-05-20 13:32:32 -07:00
Rob Walker and GitHub
431cc82032
add Transaction::partial_sign() ( #4333 )
...
* add partial sign
* nits
2019-05-17 18:55:57 -07:00