Skip to content

Commit

Permalink
Merge pull request #317 from filecoin-project/fix/misc-fixes-2
Browse files Browse the repository at this point in the history
a few misc fixes, towards #292
  • Loading branch information
whyrusleeping authored Jun 3, 2019
2 parents 6122e57 + cb781f2 commit a104054
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions actors.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,6 @@ func CreateStorageMiner(worker Address, sectorSize BytesAmount, pid PeerID) Addr
Fatal("Unsupported sector size")
}

if pledge < MinimumPledge(sectorSize) {
Fatal("Pledge too low")
}

newminer := InitActor.Exec(MinerActorCodeCid, EncodeParams(pubkey, pledge, sectorSize, pid))

self.Miners.Add(newminer)
Expand Down
2 changes: 1 addition & 1 deletion faults.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A fault is what happens when partcipants in the protocol are behaving incorrectl
- **Condition:** If any miner posts two blocks satisfying the slashing conditions defined in [Expected Consensus](./expected-consensus.md).
- **Reporting:** Anyone may call `SlashConsensusFault` and pass in the two offending block headers.
- **Check:** The chain checks that both blocks are valid, correctly signed by the same miner, and satisfy the consensus slashing conditions.
- **Penalization:** All of the miner's pledge collateral and all of their power is irrevocably slashed.
- **Penalization:** All of the miner's pledge collateral and all of their power is irrevocably slashed. This miner can never again produce blocks, even if they attempt to repost their collateral.

### Market Faults

Expand Down

0 comments on commit a104054

Please sign in to comment.