added docs, serialization functions, tests, and json formatting for btc ops is readable

This commit is contained in:
Pavitthra Pandurangan
2023-02-01 16:58:50 -05:00
parent 3d2b3e56b2
commit f36473a444
4 changed files with 546 additions and 16 deletions

View File

@@ -1701,8 +1701,6 @@ fn stx_transfer_btc_integration_test() {
for tx in transactions.iter() {
let raw_tx = tx.get("raw_tx").unwrap().as_str().unwrap();
if raw_tx == "0x00" {
let dbg = format!("{:#}", tx);
info!("TX-BTC {}", dbg);
let burnchain_op = tx.get("burnchain_op").unwrap().as_object().unwrap();
if !burnchain_op.contains_key("TransferStx") {
panic!("unexpected btc transaction type");
@@ -1712,7 +1710,6 @@ fn stx_transfer_btc_integration_test() {
}
}
assert!(found_btc_tx);
assert!(false);
channel.stop_chains_coordinator();
}