OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a869d6
)
clean
author
HAOYUatHZ
<haoyu@protonmail.com>
Wed, 22 May 2019 02:11:52 +0000
(10:11 +0800)
committer
HAOYUatHZ
<haoyu@protonmail.com>
Wed, 22 May 2019 02:11:52 +0000
(10:11 +0800)
wallet/annotated.go
patch
|
blob
|
history
diff --git
a/wallet/annotated.go
b/wallet/annotated.go
index
94189bc
..
5696e34
100644
(file)
--- a/
wallet/annotated.go
+++ b/
wallet/annotated.go
@@
-138,12
+138,6
@@
func getAccountFromACP(program []byte, walletDB dbm.DB) (*account.Account, error
var emptyJSONObject = json.RawMessage(`{}`)
-func isValidJSON(b []byte) bool {
- var v interface{}
- err := json.Unmarshal(b, &v)
- return err == nil
-}
-
func (w *Wallet) buildAnnotatedTransaction(orig *types.Tx, b *types.Block, statusFail bool, indexInBlock int) *query.AnnotatedTx {
tx := &query.AnnotatedTx{
ID: orig.ID,