@@ -10,7 +10,6 @@ import (
1010 "sort"
1111
1212 "github.com/iotexproject/go-pkgs/hash"
13- "github.com/iotexproject/iotex-proto/golang/iotextypes"
1413 "github.com/pkg/errors"
1514 "github.com/prometheus/client_golang/prometheus"
1615 "go.uber.org/zap"
3534 },
3635 []string {"type" },
3736 )
38-
39- errUnsupportWeb3Rewarding = errors .New ("unsupported web3 rewarding" )
4037)
4138
4239func init () {
@@ -148,9 +145,6 @@ func (ws *workingSet) runAction(
148145 if protocol .MustGetBlockCtx (ctx ).GasLimit < protocol .MustGetActionCtx (ctx ).IntrinsicGas {
149146 return nil , action .ErrGasLimit
150147 }
151- if ! protocol .MustGetFeatureCtx (ctx ).EnableWeb3Rewarding && isWeb3RewardingAction (elp ) {
152- return nil , errUnsupportWeb3Rewarding
153- }
154148 // Reject execution of chainID not equal the node's chainID
155149 if err := validateChainID (ctx , elp .ChainID ()); err != nil {
156150 return nil , err
@@ -481,7 +475,7 @@ func (ws *workingSet) pickAndRunActions(
481475 switch errors .Cause (err ) {
482476 case nil :
483477 // do nothing
484- case action .ErrChainID , errUnsupportWeb3Rewarding :
478+ case action .ErrChainID :
485479 continue
486480 case action .ErrGasLimit :
487481 actionIterator .PopAccount ()
@@ -597,16 +591,3 @@ func (ws *workingSet) CreateBuilder(
597591 SetLogsBloom (calculateLogsBloom (ctx , ws .receipts ))
598592 return blkBuilder , nil
599593}
600-
601- func isWeb3RewardingAction (selp action.SealedEnvelope ) bool {
602- if selp .Encoding () != uint32 (iotextypes .Encoding_ETHEREUM_RLP ) {
603- return false
604- }
605- switch selp .Action ().(type ) {
606- case * action.ClaimFromRewardingFund ,
607- * action.DepositToRewardingFund :
608- return true
609- default :
610- return false
611- }
612- }
0 commit comments