Skip to content

pradyuman-verma/Summer-of-bitcoin-21

Repository files navigation

Summer of Bitcoin - Task 1

Time Complexity of Proposed Solution

For number of transactions to be n

  • Creating set for transactions = O(nlogn)
  • For getting valid transaction and appending it in block = O(n2)
  • Overall time complexity of solution = O(n2)

Program Information

  • Language: C++
  • Code file: code.cpp
  • Output file: block.txt
  • Dataset: mempool.csv

Results

  1. Total number of transactions read: 5214
  2. Number of tx in final block 3174
  3. Total fee in final block : 5696031
  4. Total weight of final block: 3999936.00000
  5. Percentage of weight: 99.99840 %
  6. Time taken by program is : 1.53348 sec

preview

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages