Comments (9)
EDIT: I believe the bug is in csvdump.rs, around line 100. Notice how right before for output in &tx.value.outputs
there is let i = i as u32;
. And this variable i is passed into output.as_csv(&txid_str, i)
, but it doesn't keep track of the index of the tx output - rather, it's the result of for (i, tx) in block.txs.iter().enumerate() {
from rusty-blockparser.
You are right, I mixed the index up somehow. Thanks for investigating, I will fix this as soon as I'm at home.
from rusty-blockparser.
PR #3 should fix your issue, could you run a quick test?
from rusty-blockparser.
I can't test it until later, but I just gave the PR a quick look and I don't see where/how txout_idx is incremented.
from rusty-blockparser.
Oh damn. I shouldnt write code in a hurry ;-). I will change it later and come back to you.
from rusty-blockparser.
fixed with 0.5.0
from rusty-blockparser.
Except it won't compile - see my comment on the commit :) and thanks!
from rusty-blockparser.
Did you pull the new changes? as_csv()
expects an usize for the index: 0b102ed#diff-ecb7fa6af59617b0414f2244c129d48aR171
It's also a good idea to issue a cargo update
because I've updated some dependencies
from rusty-blockparser.
Is this issue still relevant?
from rusty-blockparser.
Related Issues (20)
- witness in TxInputs
- Balances command Killed HOT 6
- Dump to `parquet` with `pola.rs`
- Doesn't appear to parse Dogecoin blocks
- del
- I am getting some weird error HOT 1
- How to get "address from" the value has been sent? (or csv with outflows instead of inflows)
- Adding timestamp (to 'tx_out')
- Dogechain Invalid merkle_root! HOT 3
- CSV Dump HOT 4
- Balances Subcommand runs and creates CSV, but doesn't actually add anything to the file HOT 5
- Question about csvdump HOT 2
- some path issue in my win10/cygwin env causing NO input .dat files to be processed HOT 10
- balances seem incomplete HOT 16
- .
- pubkey only in some tx_out HOT 9
- rusty-blockparser simplestats fails. LevelDB is parsing CURRENT.bak HOT 3
- Outdated clap dependency HOT 1
- capacity overflow rusty-blockparser-0.11.0 HOT 10
- Delegating deserialization to the bitcoin crate HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rusty-blockparser.