bls key deterministic, enable paych test
This commit is contained in:
parent
e4728eb719
commit
4e41479464
@ -39,7 +39,7 @@ func (f *Factories) NewRandomnessSource() vstate.RandomnessSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (f *Factories) NewValidationConfig() vstate.ValidationConfig {
|
func (f *Factories) NewValidationConfig() vstate.ValidationConfig {
|
||||||
trackGas := false
|
trackGas := true
|
||||||
checkExit := false
|
checkExit := false
|
||||||
checkRet := false
|
checkRet := false
|
||||||
// ignore gas and return value assertions
|
// ignore gas and return value assertions
|
||||||
|
@ -8,7 +8,6 @@ import (
|
|||||||
"github.com/filecoin-project/go-crypto"
|
"github.com/filecoin-project/go-crypto"
|
||||||
acrypto "github.com/filecoin-project/specs-actors/actors/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/types"
|
||||||
"github.com/filecoin-project/lotus/chain/wallet"
|
"github.com/filecoin-project/lotus/chain/wallet"
|
||||||
)
|
)
|
||||||
@ -87,7 +86,8 @@ func (k *KeyManager) newBLSKey() *wallet.Key {
|
|||||||
// FIXME: bls needs deterministic key generation
|
// FIXME: bls needs deterministic key generation
|
||||||
//sk := ffi.PrivateKeyGenerate(s.blsSeed)
|
//sk := ffi.PrivateKeyGenerate(s.blsSeed)
|
||||||
// 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{
|
key, err := wallet.NewKey(types.KeyInfo{
|
||||||
Type: wallet.KTBLS,
|
Type: wallet.KTBLS,
|
||||||
PrivateKey: sk[:],
|
PrivateKey: sk[:],
|
||||||
|
@ -36,8 +36,6 @@ func init() {
|
|||||||
// initialize the test skipper with tests being skipped
|
// initialize the test skipper with tests being skipped
|
||||||
TestSuiteSkipper = TestSkipper{testSkips: []suites.TestCase{
|
TestSuiteSkipper = TestSkipper{testSkips: []suites.TestCase{
|
||||||
|
|
||||||
// Fails due to gas mismatches
|
|
||||||
message.TestPaych,
|
|
||||||
// Fails due to state initialization
|
// Fails due to state initialization
|
||||||
message.TestMultiSigActor,
|
message.TestMultiSigActor,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user