Greg Fitzgerald
82a2080e45
Rename VoteSignerProxy to VotingKeypair
...
Works just like a normal Keypair, but will only sign voting
transactions.
2019-02-01 07:11:17 -07:00
Greg Fitzgerald
9a4abe96c7
Reduce VoteSignerProxy to KeypairUtil
2019-02-01 07:11:17 -07:00
Michael Vines
d87c2eb903
Fullnode::new() - provide FullnodeConfig as a ref
2019-01-31 21:12:36 -08:00
Michael Vines
65708f234d
Remove unused import
2019-01-31 21:12:36 -08:00
Carl
b6b179af97
Fix bad merge
2019-01-31 20:15:04 -08:00
carllin
37003da854
Fix potential of checking tvu bank for truth when its behind ( #2614 )
...
* Fix race between tpu and tvu, where tvu bank is not caught up to tpu bank
* Add test
* Cleanup Fullnode tests
2019-01-31 19:21:02 -08:00
Michael Vines
3f323aba1a
Search and destroy loitering processes from previous CI runs
2019-01-31 16:17:44 -08:00
Rob Walker
29889a90e5
ignore ledger-tool/target ( #2624 )
2019-01-31 16:09:56 -08:00
Sagar Dhawan
ed478675ba
Push and query the ClusterInfo for votes. ( #2622 )
2019-02-01 05:21:29 +05:30
Michael Vines
9767468b7f
Remove unneeded Option
2019-01-31 13:53:59 -08:00
Rob Walker
8ba1d5f426
treat genesis special ( #2615 )
...
* treat genesis special
* fix poh_recorder to understand new world order
2019-01-31 13:53:08 -08:00
carllin
84567d36cf
Leader scheduler groundwork for Blocktree ( #2599 )
...
* Groundwork for entry tree, align constants with definitions in the book
* Fix edge case in test, node can keep generating ticks between handle_role_transition and exit() call
2019-01-31 13:44:24 -08:00
Pankaj Garg
32162ef0f1
Connect TPU's broadcast service with TVU's blob fetch stage ( #2587 )
...
* Connect TPU's broadcast service with TVU's blob fetch stage
- This is needed since ledger is being written only in TVU now
* fix clippy warnings
* fix failing test
* fix broken tests
* fixed failing tests
2019-01-31 13:43:22 -08:00
Pankaj Garg
2dd20c38b2
fix the test
2019-01-31 12:55:17 -08:00
Pankaj Garg
aa1bd603e6
Fix recvmmsg test for timeout
2019-01-31 12:55:17 -08:00
anatoly yakovenko
e104941569
Add design proposal for reliable vote transmission ( #2601 )
...
* reliable vote transmission design proposal
* summary
* comments
2019-01-31 07:34:49 -08:00
anatoly yakovenko
2754ceec60
StatusDeque split into separate objects with their own root checkpoint strategy ( #2613 )
...
Split up StatusDeque into different modules
* LastIdQueue tracks last_ids
* StatusCache keeps track of signature statuses
* StatusCache stores success as a bit in a bloom filter
* Overhead for 1m Ok transactions is 4mb in memory
* Less concurrency between the objects, last_id and status_cache are read and written to at different points in the pipeline
* Each object has its own strategy for merging into the root checkpoint
2019-01-31 06:53:52 -08:00
Greg Fitzgerald
609e915169
Fix clippy warning
...
Always pass Arcs by reference. Then you'll only need to clone()
to cross thread boundaries.
2019-01-30 21:59:05 -07:00
Greg Fitzgerald
11f1c00ca7
Only send pubkey to ReplayStage
2019-01-30 21:59:05 -07:00
Greg Fitzgerald
a74b24fdf0
Only store the fullnode's pubkey
...
Only vote_signer is used for signing
2019-01-30 21:59:05 -07:00
Greg Fitzgerald
e25992a011
Always give Fullnode a vote signer
...
This will allow us to use the the signer's pubkey as the node id.
Disable voting with a configuration option.
2019-01-30 21:59:05 -07:00
Rob Walker
00bb5925e1
use a .gitignore'd file name for transactionCount ( #2609 )
2019-01-30 20:19:10 -08:00
Rob Walker
1b50fbbc90
remove Result<> from Blob accessors, add parent ( #2608 )
...
* remove Result<> from Blob accessors, add parent
* update chacha's golden
* fixup benches
2019-01-30 20:18:28 -08:00
Pankaj Garg
a746969995
Don't set socket as blocking in recvmmsg for non Linux targets ( #2611 )
...
* Don't set socket as blocking in recvmmsg for non Linux targets
- The user of the function is controling this flag
* added a test
2019-01-30 19:47:53 -08:00
Greg Fitzgerald
c536a0bf04
Remove mention of BCC
2019-01-30 18:00:04 -07:00
Anatoly Yakovenko
5b8e7bfcf2
s/voter/validator
2019-01-30 15:44:51 -07:00
Anatoly Yakovenko
3cbbceec78
rewarding
2019-01-30 15:44:51 -07:00
Anatoly Yakovenko
e684fafb68
fmt
2019-01-30 15:44:51 -07:00
Anatoly Yakovenko
651342b3db
cleanup fork selection
2019-01-30 15:44:51 -07:00
Michael Vines
c01290438f
Move virtual genesis tick into the ledger proper as entry 0
2019-01-30 14:02:07 -08:00
Michael Vines
9e9c82869a
create_tmp_sample_ledger() need not return the genesis block
2019-01-30 14:02:07 -08:00
Michael Vines
494b143453
Delete create_tmp_genesis
2019-01-30 14:02:07 -08:00
Michael Vines
8cc1cde0fe
create_tmp_sample_ledger() now returns entry_height and last_id
2019-01-30 14:02:07 -08:00
Greg Fitzgerald
883fc39c80
Rename EntryTree to Blocktree
2019-01-30 13:29:34 -07:00
Anatoly Yakovenko
1c0758e3bd
Accounts refactoring for forking.
...
* Move last_id and signature dup handling out of Accounts.
* Accounts that handle overlays.
2019-01-30 11:36:49 -08:00
Greg Fitzgerald
668d353add
Inline VoteSigner::new_vote_account
...
So that we can stop using the validator keypair to fund the
the voting account.
2019-01-30 10:42:42 -07:00
Greg Fitzgerald
06a1681fdc
Remove redundant annotations
2019-01-30 10:42:42 -07:00
Anatoly Yakovenko
a16e41002e
reduce gossip nodes in concurrent tests for CI
2019-01-30 10:26:28 -07:00
Michael Vines
16e705dc75
Boil away unneeded Fullnode::new_* functions
2019-01-29 20:10:10 -08:00
Michael Vines
b52228feb9
Remove assumption that the mint starts with 10_000 tokens
2019-01-29 20:10:10 -08:00
Michael Vines
25f25d0f82
new_fullnode: don't return the genesis_block, nobody uses it
2019-01-29 17:51:07 -08:00
Greg Fitzgerald
85e7046caf
Use signer for signing transactions, not constructing them
2019-01-29 18:35:05 -07:00
Greg Fitzgerald
c741a960b9
Generalize Transaction::new to accept anything that implements KeypairUtil
2019-01-29 18:35:05 -07:00
Greg Fitzgerald
34c8b2cc2f
Remove redundant Arc
2019-01-29 18:35:05 -07:00
Greg Fitzgerald
278effad49
Implement KeypairUtil for VoteSignerProxy
2019-01-29 18:35:05 -07:00
Rob Walker
a0bed5375d
remove println!, add check to keep it out ( #2585 )
...
* remove debugging prints
* remove println!, add check to keep it out
2019-01-29 16:02:03 -08:00
dependabot[bot]
9eecd549e4
Bump rand from 0.6.4 to 0.6.5 ( #2564 )
...
* Bump rand from 0.6.4 to 0.6.5
Bumps [rand](https://github.com/rust-random/rand ) from 0.6.4 to 0.6.5.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/0.6.4...0.6.5 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
* Update rand_core, rand_jitter, rand_os
fixes compile errors due to type mismatch from differing versions
2019-01-29 17:44:34 -06:00
Michael Vines
a2c3369713
storage_state field doesn't actually exist
2019-01-29 12:34:59 -08:00
Rob Walker
1f9ab7f58f
copy bank for TPU
2019-01-29 12:11:48 -08:00
Anatoly Yakovenko
3e1a926aa6
wip
2019-01-29 12:11:48 -08:00