Remove ICON specific codes from base
@@ -688,60 +688,3 @@ func (t *transition) Equal(tr module.Transition) bool {
common.ConsensusInfoEqual(t.csi, t2.csi) &&
t.pid == t2.pid
}
-
-func NewInitTransition(
- db db.Database,
- result []byte,
- vl module.ValidatorList,
- cm contract.ContractManager,
- em eeproxy.Manager, chain module.Chain,
- logger log.Logger, plt Platform,
- tsc *TxTimestampChecker,
-) (module.Transition, error) {
- var stateHash []byte
- var es state.ExtensionSnapshot
- if len(result) > 0 {
- if tsr, err := newTransitionResultFromBytes(result); err != nil {
- return nil, err
- } else {
- stateHash = tsr.StateHash
- es = plt.NewExtensionSnapshot(db, tsr.ExtensionData)
- }
- }
- if tr, err := newInitTransition(
- db,
- stateHash,
- vl,
- es,
- cm,
- em,
- chain,
- logger,
- plt,
- tsc,
- ); err != nil {
- return nil, err
- } else {
- return tr, nil
- }
-}
-
-func NewTransition(
- parent module.Transition,
- patchtxs module.TransactionList,
- normaltxs module.TransactionList,
- bi module.BlockInfo,
- csi module.ConsensusInfo,
- plt Platform,
- alreadyValidated bool,
-) module.Transition {
- return newTransition(
- parent.(*transition),
- patchtxs,
- normaltxs,
- bi,
- csi,
- plt,
- alreadyValidated,
- )
-}
