From a73b68e4d114b3e427d790dd46ea8f4560684dbc Mon Sep 17 00:00:00 2001 From: jbenet Date: Thu, 17 Oct 2019 03:21:27 -0700 Subject: [PATCH 01/16] mining: renamed sector_state fsm --- src/systems/filecoin_mining/storage_mining/_index.md | 2 +- .../diagrams/{sector_state.dot => sector_state_fsm.dot} | 4 +++- .../{sector_state.dot.svg => sector_state_fsm.dot.svg} | 0 3 files changed, 4 insertions(+), 2 deletions(-) rename src/systems/filecoin_mining/storage_mining/diagrams/{sector_state.dot => sector_state_fsm.dot} (95%) rename src/systems/filecoin_mining/storage_mining/diagrams/{sector_state.dot.svg => sector_state_fsm.dot.svg} (100%) diff --git a/src/systems/filecoin_mining/storage_mining/_index.md b/src/systems/filecoin_mining/storage_mining/_index.md index 5729403c0..d938b9c35 100644 --- a/src/systems/filecoin_mining/storage_mining/_index.md +++ b/src/systems/filecoin_mining/storage_mining/_index.md @@ -19,7 +19,7 @@ Filecoin Storage Mining Subsystem # Sector in StorageMiner State Machine (new one) -{{< diagram src="diagrams/sector_state.dot.svg" title="Sector State (new one)" >}} +{{< diagram src="diagrams/sector_state_fsm.dot.svg" title="Sector State (new one)" >}} {{< diagram src="diagrams/sector_state_legend.dot.svg" title="Sector State Legend (new one)" >}} diff --git a/src/systems/filecoin_mining/storage_mining/diagrams/sector_state.dot b/src/systems/filecoin_mining/storage_mining/diagrams/sector_state_fsm.dot similarity index 95% rename from src/systems/filecoin_mining/storage_mining/diagrams/sector_state.dot rename to src/systems/filecoin_mining/storage_mining/diagrams/sector_state_fsm.dot index 94d8b9de7..6797c0a3c 100644 --- a/src/systems/filecoin_mining/storage_mining/diagrams/sector_state.dot +++ b/src/systems/filecoin_mining/storage_mining/diagrams/sector_state_fsm.dot @@ -5,7 +5,9 @@ digraph sectoRecovering { nodesep=2 node [shape=circle width=1.2 fixedsize=true] edge [penwidth=2] - Cleared + + Cleared [shape=doublecircle] // doublecircle because it is the init state + subgraph cluster_0 { label="Proving Set" style=filled diff --git a/src/systems/filecoin_mining/storage_mining/diagrams/sector_state.dot.svg b/src/systems/filecoin_mining/storage_mining/diagrams/sector_state_fsm.dot.svg similarity index 100% rename from src/systems/filecoin_mining/storage_mining/diagrams/sector_state.dot.svg rename to src/systems/filecoin_mining/storage_mining/diagrams/sector_state_fsm.dot.svg From 49364dfacecd1b2b9a46086ad85dddd49b947dd1 Mon Sep 17 00:00:00 2001 From: Henri S Date: Mon, 7 Oct 2019 23:34:54 +0200 Subject: [PATCH 02/16] updated ec and weight fn --- src/algorithms/expected_consensus.md | 123 +++++++++++++----- .../filcrypto/filecoin_crypto_lib.id | 15 --- .../storage_power_consensus_subsystem.id | 8 +- .../filecoin_blockchain/struct/block/block.id | 5 +- .../filecoin_blockchain/struct/block/other.id | 13 +- .../struct/block/tipset.id | 2 +- .../filecoin_blockchain/struct/chain/chain.id | 3 +- 7 files changed, 101 insertions(+), 68 deletions(-) diff --git a/src/algorithms/expected_consensus.md b/src/algorithms/expected_consensus.md index e67cdb42b..dbe1c1437 100644 --- a/src/algorithms/expected_consensus.md +++ b/src/algorithms/expected_consensus.md @@ -2,6 +2,8 @@ title: "Expected Consensus" --- +TODO: move pseudocode to id files entirely + {{