fixed bug on getting Vin array inside a tx

This commit is contained in:
arnaucode
2017-09-05 00:16:48 +02:00
parent 47b647f010
commit 3397fc43ad
15 changed files with 54 additions and 66 deletions

View File

@@ -31,9 +31,6 @@ other
- num address evolution throught time - num address evolution throught time
- fix error in exploreBlockchain.go, when getting the tx.Vin
tx 8f04960da36beaa928b9693f7dca4afae5a6122bb6874d409a1156e4c6c55024 has 4 vin, but exploreBlockchain is only getting the first
- pagination in address network generation - pagination in address network generation
- stop rendering dots of sankey, when view change - stop rendering dots of sankey, when view change

View File

@@ -102,19 +102,10 @@ Webapp will run on 127.0.0.1:8080
### Some screenshots ### Some screenshots
Some screenshots can be old, and can contain errors. Some screenshots can be old, and can contain errors.
![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/screenshots/goBlockchainDataAnalysis00_new.png "goBlockchainDataAnalysis")
![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/screenshots/goBlockchainDataAnalysis00.png "goBlockchainDataAnalysis") ![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/screenshots/goBlockchainDataAnalysis00.png "goBlockchainDataAnalysis")
![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/screenshots/goBlockchainDataAnalysis06.gif "goBlockchainDataAnalysis")
![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/screenshots/goBlockchainDataAnalysis05.png "goBlockchainDataAnalysis")
![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/screenshots/goBlockchainDataAnalysis01.png "goBlockchainDataAnalysis") ![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/screenshots/goBlockchainDataAnalysis01.png "goBlockchainDataAnalysis")
![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/screenshots/goBlockchainDataAnalysis02.png "goBlockchainDataAnalysis") ![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/screenshots/goBlockchainDataAnalysis02.png "goBlockchainDataAnalysis")
![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/screenshots/goBlockchainDataAnalysis03.gif "goBlockchainDataAnalysis")
![goBlockchainDataAnalysis](https://raw.githubusercontent.com/arnaucode/goBlockchainDataAnalysis/master/screenshots/goBlockchainDataAnalysis04.png "goBlockchainDataAnalysis")

View File

@@ -125,7 +125,7 @@ func explore(client *rpcclient.Client, blockHash string) {
txVi, err := client.GetRawTransactionVerbose(th) txVi, err := client.GetRawTransactionVerbose(th)
check(err) check(err)
if len(txVi.Vout[Vi.Vout].ScriptPubKey.Addresses) > 0 { //if len(txVi.Vout[Vi.Vout].ScriptPubKey.Addresses) > 0 {
//add tx to newBlock //add tx to newBlock
newBlock.Tx = append(newBlock.Tx, blockTx.Txid) newBlock.Tx = append(newBlock.Tx, blockTx.Txid)
@@ -183,12 +183,12 @@ func explore(client *rpcclient.Client, blockHash string) {
} }
} }
saveTx(newTx) /*} else {
} else {
originAddresses = append(originAddresses, "origin") originAddresses = append(originAddresses, "origin")
} }*/
} }
saveTx(newTx)
fmt.Print("originAddresses: ") fmt.Print("originAddresses: ")
fmt.Println(len(originAddresses)) fmt.Println(len(originAddresses))
fmt.Print("outputAddresses: ") fmt.Print("outputAddresses: ")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 KiB

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 KiB

After

Width:  |  Height:  |  Size: 262 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 KiB

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 262 KiB

View File

@@ -1,6 +1,6 @@
<div class="row"> <div class="row">
<div class="col-sm-3"> <div class="col-sm-3">
<div class="panel-heading c_blueGrey300"> <div class="panel-heading c_deepPurpleG300to500">
<h3 class="panel-title">All addresses ({{addresses.length}})</h3> <h3 class="panel-title">All addresses ({{addresses.length}})</h3>
</div> </div>
<div class="panel-body" style="max-height: 500px;overflow-y: scroll;"> <div class="panel-body" style="max-height: 500px;overflow-y: scroll;">
@@ -17,7 +17,7 @@
</div> </div>
</div> </div>
<div class="col-sm-9"> <div class="col-sm-9">
<div class="panel-heading c_blueGrey300"> <div class="panel-heading c_deepPurpleG300to500">
<h3 class="panel-title">Address history Network Map {{selectedAddress.id}}, BlockHeight: {{selectedAddress.group}}</h3> <h3 class="panel-title">Address history Network Map {{selectedAddress.id}}, BlockHeight: {{selectedAddress.group}}</h3>
</div> </div>
<div class="panel-body"> <div class="panel-body">