Commit Graph

13595 Commits

Author SHA1 Message Date
Stephen Akridge
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
Stephen Akridge
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
Michael Vines
0be59cad4e Remove dead code 2019-03-07 13:05:42 -08:00
Michael Vines
5edbd6a7fb gossip_service::discover() now reports the leader 2019-03-07 13:05:42 -08:00
Michael Vines
54ff9b3ac2 Shutdown gossip on failure 2019-03-07 13:05:42 -08:00
Michael Vines
5463226184 Give spy nodes a proper keypair 2019-03-07 13:05:42 -08:00
Michael Vines
b96bccd71f Use Self 2019-03-07 13:05:42 -08:00
Michael Vines
07a948a0d0 Replicator now uses its keypair for gossip 2019-03-07 13:05:42 -08:00
Michael Vines
8f034280dc Increase polling frequency to report convergence quicker 2019-03-07 13:05:42 -08:00
Michael Vines
83f551d9b9 Use poll_gossip_for_leader() 2019-03-07 13:05:42 -08:00
Michael Vines
f83a64d17f poll_gossip_for_leader: simplify timeout arg 2019-03-07 13:05:42 -08:00
Michael Vines
8bc7d5a172 Remove spy_node duplication 2019-03-07 13:05:42 -08:00
Michael Vines
96c0222b30 Employ gossip_service::discover() 2019-03-07 13:05:42 -08:00
Michael Vines
679a718cbf poll_gossip_for_leader() code cleanup 2019-03-07 13:05:42 -08:00
Michael Vines
b083e4db48 Resolve TODO 2019-03-07 13:05:42 -08:00
Michael Vines
a3cab470d3 Rename ClusterInfo::new_with_keypair() to ClusterInfo::new() 2019-03-07 13:05:42 -08:00
Michael Vines
bb93504965 Rename ClusterInfo::new() to ClusterInfo::new_with_invalid_keypair() 2019-03-07 13:05:42 -08:00
Greg Fitzgerald
4d58bf4b28 Don't use solana_entrypoint in static libraries 2019-03-07 12:42:13 -07:00
Greg Fitzgerald
505f77b108 Move a more generic process_transaction to runtime.rs 2019-03-07 12:42:13 -07:00
Greg Fitzgerald
5b672f8921 Generalize Budget tests to work on multi-ix txs 2019-03-07 12:42:13 -07:00
Rob Walker
9e9c0785e7 groom broadcast (#3170) 2019-03-07 09:43:42 -08:00
Greg Fitzgerald
94882418ab Simplify TransactionBuilder
A stepping stone to replacing all Transaction constructors with
TransactionBuilders.
2019-03-07 08:11:03 -07:00
dependabot[bot]
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
Tyera Eulberg
9fedc9513b Use generics for add/remove subscriptions 2019-03-06 20:50:48 -08:00
Tyera Eulberg
0badc90058 Wallet new tests 2019-03-06 20:46:18 -08:00
Stephen Akridge
61fbea3ee4 Cleanup AccountStorage apis
Remove duplicate code
2019-03-06 18:30:36 -08:00
Tyera Eulberg
a4a3995a84 Add staking commands to wallet 2019-03-06 17:50:15 -08:00
Rob Walker
01fb76f4bd add epoch warmup (#3166)
add epoch warmup
2019-03-06 16:32:23 -08:00
Greg Fitzgerald
d09639f7d2 Move the design out of the proposals section 2019-03-06 17:24:17 -07:00
Anatoly Yakovenko
946ee8a354 Add description of vote and rewards programs 2019-03-06 17:24:17 -07:00
Greg Fitzgerald
e63b899ca5 Boot staker setup from fullnode 2019-03-06 16:50:27 -07:00
Rob Walker
63a4ed74a4 consolidate logic for epoch and slot_index into Bank (#3144) 2019-03-06 14:44:21 -08:00
dependabot[bot]
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
Greg Fitzgerald
97f2c96a7e Add a transaction and instruction 2019-03-06 15:04:15 -07:00
Greg Fitzgerald
5979627258 Add authorized voter 2019-03-06 15:04:15 -07:00
Pankaj Garg
9d580e363a Fix hostname part of queries in dashboard 2019-03-06 13:26:15 -08:00
Pankaj Garg
9163e5b004 Fix sorting order of stakes in confirmation time calculations 2019-03-06 13:11:04 -08:00
Pankaj Garg
0252bf2f46 fix fmt 2019-03-06 12:25:28 -08:00
Pankaj Garg
283bb84134 Create UDP socket once per process_loop for forwarding transactions 2019-03-06 12:25:28 -08:00
Michael Vines
0a4f909566 requestAirdrop RPC API is now optional 2019-03-06 10:23:57 -08:00
Michael Vines
516aa44aad Don't fetch the working_bank twice 2019-03-06 10:23:57 -08:00
Michael Vines
b1763f9187 Remove dead code 2019-03-06 10:23:57 -08:00
Michael Vines
b03fd782de Make room for more fields in JsonRpcConfig 2019-03-06 10:23:57 -08:00
Stephen Akridge
b850f3c1dd Remove unnecessary cleanup_paths
drop handles it
2019-03-06 11:17:37 -07:00
Tyera Eulberg
789a9df9f6 s/id/hash in block events 2019-03-06 08:51:10 -08:00
Michael Vines
bd39ab9365 Clean up exit signal handling 2019-03-05 19:20:29 -08:00
anatoly yakovenko
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
Michael Vines
9491999a95 Remove remaining erc20 references 2019-03-05 17:56:44 -08:00
Michael Vines
e2d30db7e1 Rename tokens to lamports 2019-03-05 17:56:44 -08:00
Michael Vines
3129e299e4 Rename tokens to lamports in programs/ 2019-03-05 17:56:44 -08:00