Git Product home page Git Product logo

Comments (9)

guifereis avatar guifereis commented on September 17, 2024

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.

gcarq avatar gcarq commented on September 17, 2024

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.

gcarq avatar gcarq commented on September 17, 2024

PR #3 should fix your issue, could you run a quick test?

from rusty-blockparser.

guifereis avatar guifereis commented on September 17, 2024

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.

gcarq avatar gcarq commented on September 17, 2024

Oh damn. I shouldnt write code in a hurry ;-). I will change it later and come back to you.

from rusty-blockparser.

gcarq avatar gcarq commented on September 17, 2024

fixed with 0.5.0

from rusty-blockparser.

guifereis avatar guifereis commented on September 17, 2024

Except it won't compile - see my comment on the commit :) and thanks!

from rusty-blockparser.

gcarq avatar gcarq commented on September 17, 2024

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.

gcarq avatar gcarq commented on September 17, 2024

Is this issue still relevant?

from rusty-blockparser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.