2
As more transactions are added to the block chain, does each individual transaction (ie. I send a bitcoin to a friend) get more expensive (in terms of FLOPS) to verify and commit to the chain? If each new transaction cost does change the difficulty of verifying subsequent transactions, how does this scale?
I'd appreciate any answers, links or even location in the code where this happens. Thanks.
Reference: bitcoin wiki on confirmations
So if it does get more expensive, what is the right measure (alternative to FLOPS) to use? – wroscoe – 2017-12-04T17:29:51.503
Maybe Mhashes/sec? https://bitcoin.stackexchange.com/questions/1876/what-hashing-speed-does-my-hardware-have
– wroscoe – 2017-12-04T19:14:06.7171Any unit of X per second is not a unit that measures computational cost. It measures the computational power of a given machine, which is not the same thing as computational cost. The computational cost would be best represented in Big O notation which is just "units of time" where a unit of time then depends on a machine's computational power. So the cost of validating a transaction would be the sum of the complexities of the hashing operations and the elliptic curve operations. – Andrew Chow – 2017-12-04T19:24:33.713
Thanks. Can you give the Big O notation estimate of how the computational cost of transactions scales with the number of transactions and/or other variables? – wroscoe – 2017-12-04T20:33:05.320
1It would be O(1) (aka constant time) w.r.t the number of transactions in the blockchain. This means that the number of transactions in the blockchain as no effect on the computational cost of validating another transaction. The only things that effect a transactions validation are the things contained within the transaction itself. – Andrew Chow – 2017-12-04T20:51:19.250
Sorry for being dense here but I'm missing something. Why is/was the bitcoin community concerned about making the block size bigger and thus the ledger bigger if the cost of verifying transactions doesn't scale with the size of the ledger? See #6 here https://cointelegraph.com/explained/bitcoin-scaling-problem-explained
– wroscoe – 2017-12-05T01:25:55.9101Larger blocks makes blocks more computationally expensive to verify. The size of the blockchain and size of blocks is unrelated to transaction verification. It also becomes harder to sync the blockchain and more expensive to store it. – Andrew Chow – 2017-12-05T01:27:33.433