OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: add cross-chain output (#56)
[bytom/vapor.git]
/
protocol
/
validation
/
vmcontext.go
diff --git
a/protocol/validation/vmcontext.go
b/protocol/validation/vmcontext.go
index
c817bc6
..
356dc7c
100644
(file)
--- a/
protocol/validation/vmcontext.go
+++ b/
protocol/validation/vmcontext.go
@@
-32,7
+32,7
@@
func NewTxVMContext(vs *validationState, entry bc.Entry, prog *bc.Program, args
destPos = &e.WitnessDestination.Position
case *bc.Spend:
destPos = &e.WitnessDestination.Position
case *bc.Spend:
- spentOutput := tx.Entries[*e.SpentOutputId].(*bc.Output)
+ spentOutput := tx.Entries[*e.SpentOutputId].(*bc.
IntraChain
Output)
a1 := spentOutput.Source.Value.AssetId.Bytes()
assetID = &a1
amount = &spentOutput.Source.Value.Amount
a1 := spentOutput.Source.Value.AssetId.Bytes()
assetID = &a1
amount = &spentOutput.Source.Value.Amount
@@
-113,7
+113,7
@@
func (ec *entryContext) checkOutput(index uint64, amount uint64, assetID []byte,
}
switch e := e.(type) {
}
switch e := e.(type) {
- case *bc.Output:
+ case *bc.
IntraChain
Output:
return check(e.ControlProgram, e.Source.Value), nil
case *bc.Retirement:
return check(e.ControlProgram, e.Source.Value), nil
case *bc.Retirement: