bls key deterministic, enable paych test

This commit is contained in:
frrist 2020-03-04 17:15:35 -08:00
parent e4728eb719
commit 4e41479464
3 changed files with 3 additions and 5 deletions

View File

@ -39,7 +39,7 @@ func (f *Factories) NewRandomnessSource() vstate.RandomnessSource {
}
func (f *Factories) NewValidationConfig() vstate.ValidationConfig {
trackGas := false
trackGas := true
checkExit := false
checkRet := false
// ignore gas and return value assertions

View File

@ -8,7 +8,6 @@ import (
"github.com/filecoin-project/go-crypto"
acrypto "github.com/filecoin-project/specs-actors/actors/crypto"
ffi "github.com/filecoin-project/filecoin-ffi"
"github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/chain/wallet"
)
@ -87,7 +86,8 @@ func (k *KeyManager) newBLSKey() *wallet.Key {
// FIXME: bls needs deterministic key generation
//sk := ffi.PrivateKeyGenerate(s.blsSeed)
// s.blsSeed++
sk := ffi.PrivateKeyGenerate()
sk := [32]byte{}
sk[0] = uint8(k.blsSeed+1) // hack to keep gas values determinist
key, err := wallet.NewKey(types.KeyInfo{
Type: wallet.KTBLS,
PrivateKey: sk[:],

View File

@ -36,8 +36,6 @@ func init() {
// initialize the test skipper with tests being skipped
TestSuiteSkipper = TestSkipper{testSkips: []suites.TestCase{
// Fails due to gas mismatches
message.TestPaych,
// Fails due to state initialization
message.TestMultiSigActor,