Commit Graph

4511 Commits

Author SHA1 Message Date
Tyera Eulberg f55103498f Remove commented test code 2019-03-07 19:18:53 -07:00
Tyera Eulberg 639cb49356 Fix wallet integration tests 2019-03-07 19:18:53 -07:00
Greg Fitzgerald c5e9c6fdb6 Get chacha off Budget 2019-03-07 19:18:53 -07:00
Greg Fitzgerald 7a4ccc8719 Fix Budget's payment_with_fee test
Fee is now independent of the contract.
2019-03-07 19:18:53 -07:00
Greg Fitzgerald 125a345c90 Fix pubsub test 2019-03-07 19:18:53 -07:00
Greg Fitzgerald 3dc22e7323 Simulate auto-creation of system accounts 2019-03-07 19:18:53 -07:00
Greg Fitzgerald 17dcd1f62a Resurrect the tests 2019-03-07 19:18:53 -07:00
Greg Fitzgerald a277f3e816 Migrate to TransactionBuilder
This code wasn't updated after we started batching instructions.
The current code does allocations instead of using CreateAccount.
The runtime shouldn't allow that, so getting this code out of the
way before we lock down the runtime.
2019-03-07 19:18:53 -07:00
Greg Fitzgerald 10b16753af Remove 'new' constructor 2019-03-07 19:18:53 -07:00
Tyera Eulberg 4625aed3a5 Make hypen/underscore consistent 2019-03-07 16:51:25 -08:00
Tyera Eulberg 259c820f15 Review comments 2019-03-07 17:21:32 -07:00
Tyera Eulberg e888c90ecf Add program notifications to JSON RPC documentation 2019-03-07 17:21:32 -07:00
Tyera Eulberg b053bc2790 Load accounts by program owner for program subscriptions 2019-03-07 17:21:32 -07:00
Tyera Eulberg 6a81f9e443 Add program subscriptions to rpc 2019-03-07 17:21:32 -07:00
Greg Fitzgerald 0ef1fa7c76 Replace RemoteVoteSigner with a user-supplied keypair
Vote program currently offers no path to vote with the
authorized voter. There should be a
VoteInstruction::new_authorized_vote() that accepts the
keypair of the authorized voter and the pubkey of the vote
account. The only option in current code is
VoteInstruction::new_vote() that accepts the voter's keypair
and assumes that pubkey is the vote account.
2019-03-07 17:15:36 -07:00
Sagar Dhawan 02eb234399
Fix TVU and PoH Recorder going out of sync (#3164)
* Fix broadcast_stage error

* Account for very fast ticks in tick verification
2019-03-07 15:49:07 -08:00
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