Merge pull request #932 from filecoin-project/feat/cfg-uncomment-sections
config: Don't comment sections be default
This commit is contained in:
commit
c25f616562
@ -83,14 +83,14 @@ var methods = []uint64{
|
|||||||
vchain.StorageMinerGetPeerID: actors.MAMethods.GetPeerID,
|
vchain.StorageMinerGetPeerID: actors.MAMethods.GetPeerID,
|
||||||
vchain.StorageMinerGetSectorSize: actors.MAMethods.GetSectorSize,
|
vchain.StorageMinerGetSectorSize: actors.MAMethods.GetSectorSize,
|
||||||
|
|
||||||
vchain.MultiSigConstructor: actors.MultiSigMethods.MultiSigConstructor,
|
vchain.MultiSigConstructor: actors.MultiSigMethods.MultiSigConstructor,
|
||||||
vchain.MultiSigPropose: actors.MultiSigMethods.Propose,
|
vchain.MultiSigPropose: actors.MultiSigMethods.Propose,
|
||||||
vchain.MultiSigApprove: actors.MultiSigMethods.Approve,
|
vchain.MultiSigApprove: actors.MultiSigMethods.Approve,
|
||||||
vchain.MultiSigCancel: actors.MultiSigMethods.Cancel,
|
vchain.MultiSigCancel: actors.MultiSigMethods.Cancel,
|
||||||
vchain.MultiSigClearCompleted: actors.MultiSigMethods.ClearCompleted,
|
vchain.MultiSigClearCompleted: actors.MultiSigMethods.ClearCompleted,
|
||||||
vchain.MultiSigAddSigner: actors.MultiSigMethods.AddSigner,
|
vchain.MultiSigAddSigner: actors.MultiSigMethods.AddSigner,
|
||||||
vchain.MultiSigRemoveSigner: actors.MultiSigMethods.RemoveSigner,
|
vchain.MultiSigRemoveSigner: actors.MultiSigMethods.RemoveSigner,
|
||||||
vchain.MultiSigSwapSigner: actors.MultiSigMethods.SwapSigner,
|
vchain.MultiSigSwapSigner: actors.MultiSigMethods.SwapSigner,
|
||||||
vchain.MultiSigChangeRequirement: actors.MultiSigMethods.ChangeRequirement,
|
vchain.MultiSigChangeRequirement: actors.MultiSigMethods.ChangeRequirement,
|
||||||
// More to follow...
|
// More to follow...
|
||||||
}
|
}
|
||||||
|
@ -32,4 +32,4 @@ func TestMultiSig(t *testing.T) {
|
|||||||
suites.MultiSigActorConstructor(t, factory)
|
suites.MultiSigActorConstructor(t, factory)
|
||||||
suites.MultiSigActorProposeApprove(t, factory)
|
suites.MultiSigActorProposeApprove(t, factory)
|
||||||
suites.MultiSigActorProposeCancel(t, factory)
|
suites.MultiSigActorProposeCancel(t, factory)
|
||||||
}
|
}
|
||||||
|
@ -327,7 +327,7 @@ func (st *storage) storeHeaders(bhs map[cid.Cid]*types.BlockHeader, sync bool) e
|
|||||||
bh.EPostProof.Candidates[0].Partial,
|
bh.EPostProof.Candidates[0].Partial,
|
||||||
bh.EPostProof.Candidates[0].SectorID,
|
bh.EPostProof.Candidates[0].SectorID,
|
||||||
bh.EPostProof.Candidates[0].ChallengeIndex,
|
bh.EPostProof.Candidates[0].ChallengeIndex,
|
||||||
); err != nil {
|
); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,7 @@ func ConfigComment(t interface{}) ([]byte, error) {
|
|||||||
}
|
}
|
||||||
b := buf.Bytes()
|
b := buf.Bytes()
|
||||||
b = bytes.ReplaceAll(b, []byte("\n"), []byte("\n#"))
|
b = bytes.ReplaceAll(b, []byte("\n"), []byte("\n#"))
|
||||||
|
b = bytes.ReplaceAll(b, []byte("#["), []byte("["))
|
||||||
return b, nil
|
return b, nil
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user