OSDN Git Service
(root)
/
bytom
/
bytom-spv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
101076f
)
optimise
author
oysheng
<oysheng@bytom.io>
Fri, 20 Apr 2018 01:40:36 +0000
(09:40 +0800)
committer
oysheng
<oysheng@bytom.io>
Fri, 20 Apr 2018 01:40:36 +0000
(09:40 +0800)
api/transact.go
patch
|
blob
|
history
diff --git
a/api/transact.go
b/api/transact.go
index
e933b7e
..
b4bb600
100644
(file)
--- a/
api/transact.go
+++ b/
api/transact.go
@@
-212,8
+212,8
@@
func (a *API) estimateTxGas(ctx context.Context, in struct {
continue
}
- resOut,
ok := in.TxTemplate.Transaction.Entries[*sp.SpentOutputId].(*bc.Output
)
- if
!ok
{
+ resOut,
err := in.TxTemplate.Transaction.Output(*sp.SpentOutputId
)
+ if
err != nil
{
continue
}