Before we start any coding, we should verify that we all understand the spec in the same way.
The first point to check is the amount of mastercoins bought before 1.9.2013.
My calculation is available on:
http://pastebin.com/HiPVUxzTwhere you can see on each line:
- the block on which the tx was confirmed
- txid
- amount of satoshis
- amount of mastercoins (+ the calculated 10% bonus per week)
- the amount of seconds the tx was sent before 1.9.2013
Things to note:- Timestamp taken for the tx is the timestamp of the corresponding block.
- There isn't anything like tx timestamp in the tx structure inside the blockchain (see https://en.bitcoin.it/wiki/Transactions)
- The "Received Time" which can be seen in blockchain.info is some internal data that blockchain.info keep (which could be easily modified - non trusted).
- That blockchain.info "Received Time" value is specific to the node of blockchain.info
- This means that the following tx are *NOT* mastercoin purchases (although they have "Received Time" before 1.9.2013):
- Since mastercoins tx includes a payment to the 1EXoDus address, all the mastercoin tx before 1.9.2013 are also mastercoin purchases. It is possible to decide to ignore those purchases, but the way I see it - it would be already a modification of the spec. Example of such tx: