Closed LindenWang01 closed 1 year ago
chainhash: JSON Unmarshal hash from appropriate string. This commit(https://github.com/btcsuite/btcd/commit/1d6e578c2180a6ee45755270dd938894fb93d661) occurred a problem: "error": "json: cannot unmarshal string into Go struct field OutPoint.TxIn.PreviousOutPoint.Hash of type chainhash.Hash"
fix it.
In our business scenario, we need to serialize the wire. MsgTx structure. This error occurred in the process of json.Unmarshal
chainhash: JSON Unmarshal hash from appropriate string. This commit(https://github.com/btcsuite/btcd/commit/1d6e578c2180a6ee45755270dd938894fb93d661) occurred a problem: "error": "json: cannot unmarshal string into Go struct field OutPoint.TxIn.PreviousOutPoint.Hash of type chainhash.Hash"
fix it.