• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: 提交

Golang implemented sidechain for Bytom


Commit MetaInfo

修订版e50960ccc43c6426b6d2880e420203d83546ba20 (tree)
时间2020-02-25 14:35:33
作者shenao78 <shenao.78@163....>
Commitershenao78

Log Message

Merge branch 'mov' into compatiable

更改概述

差异

--- a/protocol/validation/tx.go
+++ b/protocol/validation/tx.go
@@ -275,7 +275,10 @@ func checkValid(vs *validationState, e bc.Entry) (err error) {
275275 return errors.New("incorrect asset_id while checking CrossChainInput")
276276 }
277277
278- prog := e.AssetDefinition.IssuanceProgram
278+ prog := &bc.Program{
279+ VmVersion: e.AssetDefinition.IssuanceProgram.VmVersion,
280+ Code: e.AssetDefinition.IssuanceProgram.Code,
281+ }
279282
280283 if !common.IsOpenFederationIssueAsset(e.RawDefinitionByte) {
281284 prog.Code = config.FederationWScript(config.CommonConfig)
Show on old repository browser