Commit Graph

4545 Commits

Author SHA1 Message Date
8d80da6b46 Fix picking account store paths
Store the set of accounts paths in AccountsDB and choose with an rng
when we need to create a new one. Remove path from AccountStorageEntry object.
2019-03-07 14:58:52 -08:00
22855def27 Fix race condition in store.
Multiple threads can enter the read lock and
all store the new empty set to account_maps.
Check again after taking write lock to make sure
only one thread actually inserts the new entry.
2019-03-07 14:58:52 -08:00
0be59cad4e Remove dead code 2019-03-07 13:05:42 -08:00
5edbd6a7fb gossip_service::discover() now reports the leader 2019-03-07 13:05:42 -08:00
54ff9b3ac2 Shutdown gossip on failure 2019-03-07 13:05:42 -08:00
5463226184 Give spy nodes a proper keypair 2019-03-07 13:05:42 -08:00
b96bccd71f Use Self 2019-03-07 13:05:42 -08:00
07a948a0d0 Replicator now uses its keypair for gossip 2019-03-07 13:05:42 -08:00
8f034280dc Increase polling frequency to report convergence quicker 2019-03-07 13:05:42 -08:00
83f551d9b9 Use poll_gossip_for_leader() 2019-03-07 13:05:42 -08:00
f83a64d17f poll_gossip_for_leader: simplify timeout arg 2019-03-07 13:05:42 -08:00
8bc7d5a172 Remove spy_node duplication 2019-03-07 13:05:42 -08:00
96c0222b30 Employ gossip_service::discover() 2019-03-07 13:05:42 -08:00
679a718cbf poll_gossip_for_leader() code cleanup 2019-03-07 13:05:42 -08:00
b083e4db48 Resolve TODO 2019-03-07 13:05:42 -08:00
a3cab470d3 Rename ClusterInfo::new_with_keypair() to ClusterInfo::new() 2019-03-07 13:05:42 -08:00
bb93504965 Rename ClusterInfo::new() to ClusterInfo::new_with_invalid_keypair() 2019-03-07 13:05:42 -08:00
4d58bf4b28 Don't use solana_entrypoint in static libraries 2019-03-07 12:42:13 -07:00
505f77b108 Move a more generic process_transaction to runtime.rs 2019-03-07 12:42:13 -07:00
5b672f8921 Generalize Budget tests to work on multi-ix txs 2019-03-07 12:42:13 -07:00
9e9c0785e7 groom broadcast (#3170) 2019-03-07 09:43:42 -08:00
94882418ab Simplify TransactionBuilder
A stepping stone to replacing all Transaction constructors with
TransactionBuilders.
2019-03-07 08:11:03 -07:00
c6cb3bb0bc Bump env_logger from 0.6.0 to 0.6.1
Bumps [env_logger](https://github.com/sebasmagri/env_logger) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/sebasmagri/env_logger/releases)
- [Commits](https://github.com/sebasmagri/env_logger/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-06 22:29:44 -07:00
9fedc9513b Use generics for add/remove subscriptions 2019-03-06 20:50:48 -08:00
0badc90058 Wallet new tests 2019-03-06 20:46:18 -08:00
61fbea3ee4 Cleanup AccountStorage apis
Remove duplicate code
2019-03-06 18:30:36 -08:00
a4a3995a84 Add staking commands to wallet 2019-03-06 17:50:15 -08:00
01fb76f4bd add epoch warmup (#3166)
add epoch warmup
2019-03-06 16:32:23 -08:00
d09639f7d2 Move the design out of the proposals section 2019-03-06 17:24:17 -07:00
946ee8a354 Add description of vote and rewards programs 2019-03-06 17:24:17 -07:00
e63b899ca5 Boot staker setup from fullnode 2019-03-06 16:50:27 -07:00
63a4ed74a4 consolidate logic for epoch and slot_index into Bank (#3144) 2019-03-06 14:44:21 -08:00
a3782d699d Bump bytes from 0.4.11 to 0.4.12
Bumps [bytes](https://github.com/carllerche/bytes) from 0.4.11 to 0.4.12.
- [Release notes](https://github.com/carllerche/bytes/releases)
- [Changelog](https://github.com/carllerche/bytes/blob/v0.4.x/CHANGELOG.md)
- [Commits](https://github.com/carllerche/bytes/compare/v0.4.11...v0.4.12)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-06 15:05:01 -07:00
97f2c96a7e Add a transaction and instruction 2019-03-06 15:04:15 -07:00
5979627258 Add authorized voter 2019-03-06 15:04:15 -07:00
9d580e363a Fix hostname part of queries in dashboard 2019-03-06 13:26:15 -08:00
9163e5b004 Fix sorting order of stakes in confirmation time calculations 2019-03-06 13:11:04 -08:00
0252bf2f46 fix fmt 2019-03-06 12:25:28 -08:00
283bb84134 Create UDP socket once per process_loop for forwarding transactions 2019-03-06 12:25:28 -08:00
0a4f909566 requestAirdrop RPC API is now optional 2019-03-06 10:23:57 -08:00
516aa44aad Don't fetch the working_bank twice 2019-03-06 10:23:57 -08:00
b1763f9187 Remove dead code 2019-03-06 10:23:57 -08:00
b03fd782de Make room for more fields in JsonRpcConfig 2019-03-06 10:23:57 -08:00
b850f3c1dd Remove unnecessary cleanup_paths
drop handles it
2019-03-06 11:17:37 -07:00
789a9df9f6 s/id/hash in block events 2019-03-06 08:51:10 -08:00
bd39ab9365 Clean up exit signal handling 2019-03-05 19:20:29 -08:00
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
9491999a95 Remove remaining erc20 references 2019-03-05 17:56:44 -08:00
e2d30db7e1 Rename tokens to lamports 2019-03-05 17:56:44 -08:00
3129e299e4 Rename tokens to lamports in programs/ 2019-03-05 17:56:44 -08:00