Greg Fitzgerald
4bc3f70150
Boot VoteTransaction
2019-03-25 17:11:57 -07:00
Rob Walker
c70412d7bb
move core tests to core ( #3355 )
...
* move core tests to core
* remove window
* fix up flaky tests
* test_entryfication needs a singly-threaded banking_stage
* move core benches to core
* remove unnecessary dependencies
* remove core as a member for now, test it like runtime
* stop running tests twice
* remove duplicate runs of tests in perf
2019-03-18 22:08:21 -07:00
anatoly yakovenko
61a4b998fa
Implement locktower voting ( #3251 )
...
* locktower components and tests
* integrate locktower into replay stage
* track locktower duration
* make sure threshold is checked after simulating the vote
* check vote lockouts using the VoteState program
* duplicate vote test
* epoch stakes
* disable impossible to verify tests
2019-03-18 12:12:33 -07:00
Michael Vines
c498775a3d
Move generic rpc_client functions from wallet/ to client/
2019-03-17 01:34:58 -07:00
Michael Vines
9632136cda
Clean up stray retry_get_balance() function
2019-03-16 23:56:35 -07:00
Michael Vines
4c9d852b08
Remove ThinClient::transfer()
2019-03-16 23:56:35 -07:00
Michael Vines
ac03c59b41
client/: get_transaction_count() now returns a Result
2019-03-16 23:27:23 -07:00
Michael Vines
73ceaf07b1
client/: move RpcClient from rpc_request.rs to rpc_client.rs
2019-03-16 23:27:23 -07:00
Michael Vines
23337e08eb
client/: Merge client.rs into thin_client.rs
2019-03-16 22:48:26 -07:00
Michael Vines
ad252fe4c5
Remove unnecessary Option from get_account_data
2019-03-16 11:32:01 -07:00
Michael Vines
4b04bc8612
Move thin_client RPC requests into rpc_request; de-mut thin_client
2019-03-16 11:32:01 -07:00
Michael Vines
bcc34b906c
Relieve the caller of having to care about the rpc request id
2019-03-16 11:32:01 -07:00
Michael Vines
c2b1010f18
Clarify url vs addr
2019-03-16 11:32:01 -07:00
Stephen Akridge
c208f4dbb5
Add option of replicators to local cluster test
2019-03-14 13:55:11 -07:00
Greg Fitzgerald
c1eec0290e
Rename userdata to data ( #3282 )
...
* Rename userdata to data
Instead of saying "userdata", which is ambiguous and imprecise,
say "instruction data" or "account data".
Also, add `ProgramError::InvalidInstructionData`
Fixes #2761
2019-03-14 10:48:27 -06:00
Stephen Akridge
64de639817
Fixes to replicator
...
Move functionality into more functions.
Break down the current test and just test creation/joining the network.
2019-03-13 10:15:03 -07:00
Tyera Eulberg
1d689e84f1
Move and rename cluster_client
2019-03-12 22:05:38 -06:00
Tyera Eulberg
e3ac9e9679
Move thin client tests to integration test suite
2019-03-12 22:05:38 -06:00
Tyera Eulberg
12fde77ecd
Update crate references
2019-03-12 22:05:38 -06:00
carllin
cb3eeace56
Replay Stage start_leader() can use wrong parent fork() ( #3238 )
...
* Make sure start_leader starts on the last voted block, not necessarily the biggest indexed bank in frozen_slots()
* Fix tvu test
2019-03-12 17:42:53 -07:00
Carl
3ddf4b6c24
PR fixes
2019-03-11 14:07:17 -07:00
Carl
ccd1173a83
Add local cluster test for forwarding
2019-03-11 14:07:17 -07:00
Rob Walker
195a880576
pass Pubkeys as refs, copy only where values needed ( #3213 )
...
* pass Pubkeys as refs, copy only where values needed
* Pubkey is pervasive
* fixup
2019-03-09 19:28:43 -08:00
Michael Vines
ac226c3e14
Remove superfluous set_leader() usage
2019-03-08 19:59:54 -08:00
Michael Vines
17921c9fae
Delete NodeInfo type
2019-03-08 18:37:36 -08:00
Rob Walker
0acdbc0d03
plumb staking_account and voting_keypair from multinode-demo to Vote ( #3199 )
...
* plumb staking_account and voting_keypair from bash to Vote
2019-03-08 19:29:08 -07:00
Michael Vines
31cbb52654
Rename new_entry_point as new_gossip_entry_point to clarify usage
2019-03-08 17:42:25 -08:00
Michael Vines
cd88f81817
bench-tps no longer uses an invalid ContactInfo for RPC
2019-03-08 17:42:25 -08:00
Michael Vines
e18673953c
Remove poll_gossip_for_leader()
2019-03-08 11:14:47 -08: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
Michael Vines
f83a64d17f
poll_gossip_for_leader: simplify timeout arg
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
Rob Walker
9e9c0785e7
groom broadcast ( #3170 )
2019-03-07 09:43:42 -08:00
Michael Vines
b03fd782de
Make room for more fields in JsonRpcConfig
2019-03-06 10:23:57 -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
545feab6db
Misc token to lamport renaming
2019-03-05 17:56:44 -08:00
Greg Fitzgerald
fc8489a04d
Stop using LocalVoteSigner
2019-03-05 09:34:54 -07:00
Michael Vines
6ab6e6cb9b
Clean up exit flag handing across TVU
2019-03-04 21:26:50 -08:00
Michael Vines
96bfe92334
Clean up fullnode/tpu/tvu/fetch_stage exit signal
2019-03-04 21:26:50 -08:00
Michael Vines
906df5e20e
Exit signal cleanup: pass in references, make the receiver clone as needed
2019-03-04 18:43:21 -08:00
Rob Walker
6d82123125
rename bank_id to bank_slot
2019-03-04 17:10:27 -08:00
Anatoly Yakovenko
3a4018cd03
review comments; rename Unsafe to TestOnlyAllowRpcFullnodeExit
2019-03-04 10:18:17 -08:00
Anatoly Yakovenko
c299dd390e
Fullnode rpc to exit with unsafe config
2019-03-04 10:18:17 -08:00
anatoly yakovenko
1654199b23
Use PohRecorder to synchronize instead of rotate. ( #3080 )
2019-03-03 16:44:06 -08:00
Michael Vines
a94880574b
block_hash => blockhash
2019-03-02 12:13:30 -07:00
Michael Vines
85159a0eb4
Rename JSON RPC getLastId to getRecentBlockHash
2019-03-02 12:13:30 -07:00
Michael Vines
258cf21416
Purge remaining last_id (now called block_hash)
2019-03-02 12:13:30 -07:00
Michael Vines
2bfad87a5f
Rename Bank.last_id() to Bank.last_block_hash()
2019-03-02 12:13:30 -07:00
Michael Vines
ce1b72809a
Rename get_last_id() to get_recent_block_hash()
2019-03-02 12:13:30 -07:00