Commit Graph

71 Commits

Author SHA1 Message Date
e781cbf4ba Ignore flaky test_two_unbalanced_stakes () ()
automerge
2019-06-23 21:30:02 -07:00
aacb38864c Mark dead forks in replay stage ()
* Add DeadSlots column family

* Filter dead forks from get_slots_since

* Mark erroring slots as dead in replay stage, add test

* Mark dead forks in progress instead of removing them

* Fix logging process_entries failures in replay_stage

* Unignore test_fail_entry_verification_leader
2019-06-20 15:50:41 -07:00
4a32bc48d2 ignore unstable test_repairman_catchup 2019-06-20 09:24:11 -07:00
46bb79df29 Support for custom BroadcastStage in local cluster tests ()
* Refactor BroadcastStage to support custom implementations, add FailEntryVerificationBroadcastRun implementation

* Plumb switch on broadcast type through validator

* Add test for validator generating non-verifiable entries to local_cluster

* Fix bad initializers

* Refactor broadcast run code into utils
2019-06-19 00:13:19 -07:00
cc48773b03 Add "download from replicator" utility ()
automerge
2019-06-17 18:12:13 -07:00
4c6a6d63bf add MiningPools, fund validator MiningPools from inflation ()
* add MiningPool fund validator MinigPools from inflation

* fixup

* finish rename of MINIMUM_SLOT_LENGTH to MINIMUM_SLOTS_PER_EPOCH

* deterministic miningpool location

* point_value, not credit_value... use f64
2019-06-14 11:38:37 -07:00
8c1b9a0b67 Data plane verification ()
* Add signature to blob

* Change Signable trait to support returning references to signable data

* Add signing to broadcast

* Verify signatures in window_service

* Add testing for signatures to erasure

* Add RPC for getting current slot, consume RPC call in test_repairman_catchup for more deterministic results
2019-06-12 16:43:05 -07:00
82df267ec9 s/avalanche/turbine ()
* s/avalanche/turbine/g
2019-06-06 12:48:40 -07:00
70a16e91a5 Randomize avalanche broadcast peer table for each blob ()
* fix clippy warnings
2019-06-03 20:38:05 -07:00
3574469052 Add random distribution for avalanche peers ()
* Add random distribution for avalanche peers

* fix clippy warnings

* bug fixes

* nits
2019-06-01 07:55:43 -07:00
182096dc1a Create bank snapshots ()
* Revert "Revert "Create bank snapshots ()" ()"

This reverts commit 81fa69d347.

* keep saved and unsaved copies of status cache

* fix format check

* bench for status cache serialize

* misc cleanup

* remove appendvec storage on purge

* fix accounts restore

* cleanup

* Pass snapshot path as args

* Fix clippy
2019-05-30 21:31:35 -07:00
045d4d5294 Unignore test test_repairman_catchup () 2019-05-30 13:21:12 -07:00
c82f4a1b6d Unignore test_repairman_catchup 2019-05-29 21:59:41 -07:00
348c2263ba Remove genesis blockhash ()
* Remove genesis blockhash

* Remove genesis blockhash from tests

* Fix golden
2019-05-29 17:29:02 -07:00
335dfdc4d5 Fix Gossip skipping push for some values ()
* Make gossip skip over values from Pruned nodes

* Add test and init blooms to contain the origin
2019-05-28 18:39:40 -07:00
2adb98a4a0 Ignore flaky test_repairman_catchup ()
automerge
2019-05-26 12:24:20 -07:00
d772a27936 Plumb ClusterInfoRepairListener ()
automerge
2019-05-24 19:20:09 -07:00
cfe5afd34c _id => _pubkey variable renaming ()
* wallet: rename *_account_id to *_account_pubkey

* s/from_id/from_pubkey/g

* s/node_id/node_pubkey/g

* s/stake_id/stake_pubkey/g

* s/voter_id/voter_pubkey/g

* s/vote_id/vote_pubkey/g

* s/delegate_id/delegate_pubkey/g

* s/account_id/account_pubkey/g

* s/to_id/to_pubkey/g

* s/my_id/my_pubkey/g

* cargo fmt

* s/staker_id/staker_pubkey/g

* s/mining_pool_id/mining_pool_pubkey/g

* s/leader_id/leader_pubkey/g

* cargo fmt

* s/funding_id/funding_pubkey/g
2019-05-23 23:20:04 -07:00
94beb4b8c2 More fullnode -> validator renaming ()
* s/fullnode_config/validator_config/g

* s/FullnodeConfig/ValidatorConfig/g

* mv core/lib/fullnode.rs core/lib/validator.rs

* s/Fullnode/Validator/g

* Add replicator-x.sh

* Rename fullnode.md to validator.md

* cargo fmt
2019-05-23 22:05:16 -07:00
2ed77b040a create_genesis_block() now returns a struct () 2019-05-22 20:39:00 -07:00
f079a78c5e Remove fee arg from system_transaction::* ()
automerge
2019-05-20 10:03:19 -07:00
392a39dd54 Poh subsystem cleanup, genesis plumbing, enable real PoH on edge testnet ()
* Remove unused PohServiceConfig::Step

* Clarify variable name

* Poh::hash() now takes an iteration counter

* man -> max

* Inline functions with single call site

* Move PohServiceConfig into GenesisBlock

* Add plumbing to enable real PoH on testnets

* Batch hashes to improve PoH hash rate

* Ensure a constant hashes_per_tick

* Remove PohEntry mixin field

* Poh/PohEntry no longer maintains tick_height

* Ensure a constant hashes_per_tick

* ci/localnet-sanity.sh: Use real PoH

* Rework Poh/PohService to keep PohRecorder unlocked as much as possible while hashing
2019-05-18 14:01:36 -07:00
39e85a3e53 kill some bs58 ()
* kill some bs58

* fixup
2019-05-16 21:43:18 -07:00
a0ffbf50a5 Correctly remove replicator from data plane after its done repairing ()
* Correctly remove replicator from data plane after its done repairing

* Update discover to report nodes and replicators separately

* Fix print and condition to be spy
2019-05-16 07:14:58 -07:00
fd3f2cb910 Add Storage accounts for all nodes ()
* Setup storage keypairs for all nodes

* Clean up naming

* clippy

* Update arg value_names
2019-05-15 15:19:29 -07:00
0c1191c3ee rework staking_utils () 2019-05-14 16:15:51 -07:00
3bd921264a Move EpochSchedule into own module () 2019-05-13 16:24:32 -07:00
a2e3a92b01 Extend GetBlockHash RPC API to include the fee scehdule for using the returned blockhash () 2019-05-13 12:49:37 -07:00
81fa69d347 Revert "Create bank snapshots ()" ()
This reverts commit abf2b300da.
2019-05-09 19:27:27 -07:00
abf2b300da Create bank snapshots ()
* Be able to create bank snapshots

* fix clippy

* load snapshot on start

* regenerate account index from the storage

* Remove rc feature dependency

* cleanup

* save snapshot for slot 0
2019-05-09 19:27:06 -07:00
575a0e318b Add newly completed slots signal to Blocktree ()
* Add channel to blocktree for communicating when slots are completed

* Refactor RepairService options into a RepairStrategy
2019-05-09 14:10:04 -07:00
b8fd51e97d Add new gossip structure for supporting repairs ()
* Add Epoch Slots to gossip

* Add new gossip structure to support Repair

* remove unnecessary clones

* Setup dummy fast repair in repair_service

* PR comments
2019-05-08 13:50:32 -07:00
55e3b7d380 Storage transactions are now paid for by a system account ()
* Pay program loading fees from a system account

* Pay transaction fees from a system account
2019-05-07 15:01:10 -07:00
2107e15bd3 Reduce Avalanche redundancy and implement traditional fanout ()
* Reduce Avalanche redundancy and implement traditional fanout

* Revert tiny fanout

* Update diagrams and docs based on review comments
2019-05-07 13:24:58 -07:00
4f3b22d04e Minor code restyling, no functional changes 2019-05-07 12:35:29 -07:00
8e400fc4bd rework genesis (passive staking groundwork) ()
* rework genesis

* fixup
2019-05-07 11:16:22 -07:00
297328ff9a Fix improper tick sleeping time in test ()
automerge
2019-05-03 20:15:10 -07:00
a7b695c27a Change replicators to slot-based () 2019-05-03 16:27:53 -07:00
73f250f03a Make minimum warmup period 32 slots long ()
* Make minimum warmup period 32 slots long

* PR fixes
2019-04-29 15:26:52 -07:00
0cbac26591 Add genesis blockhash to blobs () 2019-04-23 16:24:44 -07:00
43f7cd8149 Fix Retransmit slamming the leader with its own blobs () 2019-04-22 18:41:01 -07:00
349e8a9462 Ensure forwarded Blobs don't break Erasure () 2019-04-20 16:44:06 -07:00
c0bffb56df Update Avalanche to use Epoch Stakes () 2019-04-19 22:31:40 -07:00
970cc32e65 Fix Data Plane computation when stakes are equal () 2019-04-19 21:07:21 -07:00
efbb573316 add an env::var driven localcluster test () 2019-04-19 15:47:03 -07:00
512bfc93cb Add a cache for leader schedules ()
* Add a cache for leader schedules
2019-04-19 02:39:44 -07:00
a9cfae486c Revert-revert migrate to ed25519-dalek crate ()
* Revert "Revert "Migrate from ring to ed25519-dalek, take 2 ()" ()"

This reverts commit 6a878602f2.

* Fix Signature::verify method
2019-04-18 14:37:20 -06:00
6a878602f2 Revert "Migrate from ring to ed25519-dalek, take 2 ()" ()
This reverts commit e9b82bacda.
2019-04-18 11:47:34 -06:00
e9b82bacda Migrate from ring to ed25519-dalek, take 2 ()
* Migrate from ring to ed25519-dalek

* Move gen_keypair_file test to a more appropriate location

* Fixup bench-exchange and add helper fn for single deterministic keypair

* Update golden
2019-04-18 10:38:32 -06:00
68fc303b9b Rework Accounts for fast squash, hashing state and checkpoint recovery. ()
* accounts rewrite

* ignore grow tests

* skip duplicate roots

* allow for a root race

* logger

* accounts_index tests

* tests

* tests
2019-04-15 17:15:50 -07:00