Golang implemented sidechain for Bytom
Revision | 0310308fadbcee6d04075824a483b4ec1981e3e9 (tree) |
---|---|
Zeit | 2019-07-10 15:27:21 |
Autor | Chengcheng Zhang <943420582@qq.c...> |
Commiter | Chengcheng Zhang |
update
@@ -165,6 +165,9 @@ transactionLoop: | ||
165 | 165 | if bytes := w.DB.Get(account.ContractKey(hash)); bytes != nil { |
166 | 166 | annotatedTxs = append(annotatedTxs, w.buildAnnotatedTransaction(tx, b, statusFail, pos)) |
167 | 167 | continue transactionLoop |
168 | + } else { | |
169 | + fmt.Println("filterAccountTxs hash:", hex.EncodeToString(hash[:])) | |
170 | + fmt.Println("filterAccountTxs bytes is nil") | |
168 | 171 | } |
169 | 172 | } |
170 | 173 |
@@ -173,9 +176,12 @@ transactionLoop: | ||
173 | 176 | if err != nil { |
174 | 177 | continue |
175 | 178 | } |
179 | + fmt.Println("filterAccountTxs outid:", hex.EncodeToString(outid.Bytes())) | |
176 | 180 | if bytes := w.DB.Get(account.StandardUTXOKey(outid)); bytes != nil { |
177 | 181 | annotatedTxs = append(annotatedTxs, w.buildAnnotatedTransaction(tx, b, statusFail, pos)) |
178 | 182 | continue transactionLoop |
183 | + } else { | |
184 | + fmt.Println("filterAccountTxs bytes is nil") | |
179 | 185 | } |
180 | 186 | } |
181 | 187 | } |