Merge pull request #1742 from filecoin-project/asr/syncfix

Don't assert params must be empty for Methodnum = 0
This commit is contained in:
Łukasz Magiera 2020-05-14 21:28:38 +02:00 committed by GitHub
commit 9b2b72819b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -865,10 +865,6 @@ func (syncer *Syncer) checkBlockMessages(ctx context.Context, b *types.FullBlock
return xerrors.New("'Value' field cannot be greater than total filecoin supply") return xerrors.New("'Value' field cannot be greater than total filecoin supply")
} }
if len(m.Params) != 0 && m.Method == 0 {
return xerrors.New("'Params' field should be empty if no 'Method' is being called")
}
if m.GasPrice.LessThan(big.Zero()) { if m.GasPrice.LessThan(big.Zero()) {
return xerrors.New("'GasPrice' field cannot be negative") return xerrors.New("'GasPrice' field cannot be negative")
} }