Post
Topic
Board Web Wallets
Re: New block explorer type site needs testing / feedback
by
piuk
on 08/09/2011, 09:48:33 UTC
+1 to notion of adding the Bitcoin DD (days destroyed) stat.

One other comment: where do you get $1000 / 2 years for 1 GHash? Is that approximately 50% depreciation per year on a rig which costs $1/MHash/s? Don't disagree with the number so much as interested in how you derived it.

The average upgrade cycle for gamers is somewhere between 18-24 months (can't find the link where i read it now). After two years old cards won't be worth running compared to the newer competition, there probably is some resale value which isn't calculated in.

Quote
What is the logic used to estimate the transaction volume?

Heres the method. Basically common transactions "1 in ->2 out" it takes the smallest value, ">2 in -> 2 out" it takes the largest, otherwise total all.

public long getActualBTCSent() {   
       if (blockIsMined()) {
          return 0;
         
      //If a transaction transaction has more than two inputs and two outputs we take the largest output
       } else if (nInputs >= 2 && nOutputs == 2) {
         return Math.max(getOut().get(0).getValue(), getOut().get(1).getValue());
      //If a transaction has one input and two outputs we take the smallest output
      } else if (nInputs == 1 && nOutputs == 2) {
         total = Math.min(getOut().get(0).getValue(), getOut().get(1).getValue());
         
      //None simple transaction total all outputs
      } else {
         long total = 0;
         for (Output output : getOut()) {
            total += output.getValue();
         }
         return total;
      }
}