• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revision0310308fadbcee6d04075824a483b4ec1981e3e9 (tree)
Time2019-07-10 15:27:21
AuthorChengcheng Zhang <943420582@qq.c...>
CommiterChengcheng Zhang

Log Message

update

Change Summary

Incremental Difference

--- a/wallet/indexer.go
+++ b/wallet/indexer.go
@@ -165,6 +165,9 @@ transactionLoop:
165165 if bytes := w.DB.Get(account.ContractKey(hash)); bytes != nil {
166166 annotatedTxs = append(annotatedTxs, w.buildAnnotatedTransaction(tx, b, statusFail, pos))
167167 continue transactionLoop
168+ } else {
169+ fmt.Println("filterAccountTxs hash:", hex.EncodeToString(hash[:]))
170+ fmt.Println("filterAccountTxs bytes is nil")
168171 }
169172 }
170173
@@ -173,9 +176,12 @@ transactionLoop:
173176 if err != nil {
174177 continue
175178 }
179+ fmt.Println("filterAccountTxs outid:", hex.EncodeToString(outid.Bytes()))
176180 if bytes := w.DB.Get(account.StandardUTXOKey(outid)); bytes != nil {
177181 annotatedTxs = append(annotatedTxs, w.buildAnnotatedTransaction(tx, b, statusFail, pos))
178182 continue transactionLoop
183+ } else {
184+ fmt.Println("filterAccountTxs bytes is nil")
179185 }
180186 }
181187 }
Show on old repository browser