Golang implemented sidechain for Bytom
Revision | 5a33fc5c9ecb2075f47a44e066a6499d8cea2766 (tree) |
---|---|
Time | 2020-02-25 14:02:10 |
Author | Poseidon <shenao.78@163....> |
Commiter | GitHub |
fix validate tx (#499)
@@ -275,7 +275,10 @@ func checkValid(vs *validationState, e bc.Entry) (err error) { | ||
275 | 275 | return errors.New("incorrect asset_id while checking CrossChainInput") |
276 | 276 | } |
277 | 277 | |
278 | - prog := e.AssetDefinition.IssuanceProgram | |
278 | + prog := &bc.Program{ | |
279 | + VmVersion: e.AssetDefinition.IssuanceProgram.VmVersion, | |
280 | + Code: e.AssetDefinition.IssuanceProgram.Code, | |
281 | + } | |
279 | 282 | |
280 | 283 | if !common.IsOpenFederationIssueAsset(e.RawDefinitionByte) { |
281 | 284 | prog.Code = config.FederationWScript(config.CommonConfig) |