Skip to content

Commit

Permalink
display anon inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed Jan 14, 2019
1 parent 009002c commit 7615554
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/worker.go
Expand Up @@ -123,7 +123,9 @@ func (w *Worker) GetTransaction(txid string, spendingTxs bool) (*Tx, error) {
vin.N = i vin.N = i
vin.Vout = bchainVin.Vout vin.Vout = bchainVin.Vout
vin.Sequence = int64(bchainVin.Sequence) vin.Sequence = int64(bchainVin.Sequence)
if bchainVin.Txid == "0000000000000000000000000000000000000000000000000000000000000000" { if bchainVin.Type_str == "anon" {
vin.Addresses = []string{"RingCT Anon input"}
} else if bchainVin.Txid == "0000000000000000000000000000000000000000000000000000000000000000" {
if bchainVin.Type_str == "zerocoinspend" { if bchainVin.Type_str == "zerocoinspend" {
// zerocoin spend // zerocoin spend
vin.ScriptSig.Hex = "0xc2" vin.ScriptSig.Hex = "0xc2"
Expand Down

0 comments on commit 7615554

Please sign in to comment.