mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-04 09:02:28 +00:00
core: update System.Blockchain.GetTransactionHeight interop
Update System.Blockchain.GetTransactionHeight and removed Neo.Blockchain.GetTransactionHeight interop as we don't need it.
This commit is contained in:
parent
53655c5ac2
commit
1e63ae4b3f
4 changed files with 5 additions and 5 deletions
|
@ -151,8 +151,9 @@ func bcGetTransaction(ic *interop.Context, v *vm.VM) error {
|
|||
// bcGetTransactionHeight returns transaction height.
|
||||
func bcGetTransactionHeight(ic *interop.Context, v *vm.VM) error {
|
||||
_, h, err := getTransactionAndHeight(ic.DAO, v)
|
||||
if err != nil {
|
||||
return err
|
||||
if err != nil || !isTraceableBlock(ic, h) {
|
||||
v.Estack().PushVal(-1)
|
||||
return nil
|
||||
}
|
||||
v.Estack().PushVal(h)
|
||||
return nil
|
||||
|
|
|
@ -112,7 +112,6 @@ var neoInterops = []interop.Function{
|
|||
{Name: "Neo.Blockchain.GetContract", Func: bcGetContract, Price: 100},
|
||||
{Name: "Neo.Blockchain.GetHeader", Func: bcGetHeader, Price: 100},
|
||||
{Name: "Neo.Blockchain.GetHeight", Func: bcGetHeight, Price: 1},
|
||||
{Name: "Neo.Blockchain.GetTransactionHeight", Func: bcGetTransactionHeight, Price: 100},
|
||||
{Name: "Neo.Contract.Create", Func: contractCreate, Price: 0},
|
||||
{Name: "Neo.Contract.Destroy", Func: contractDestroy, Price: 1},
|
||||
{Name: "Neo.Contract.GetScript", Func: contractGetScript, Price: 1},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue