Hi folks,
I'm currently going through the protocol rules coding up a simple example to try and better understand bitcoin. Specifically, the transaction rules:
https://en.bitcoin.it/wiki/Protocol_rules#.22tx.22_messagesApologies if some of these are simple questions - I am still somewhat new to this.
> 1. Check syntactic correctness
Is there a formal way to do this or just generally seeing if all the fields can be parsed without an error?
> 3. Size in bytes < MAX_BLOCK_SIZE
I saw in a discussion somewhere this 1,000,000 bytes? Not sure if this is still the case. I assume this isn't too important and just to prevent ddos attacks on smaller clients?
> 4. Each output value, as well as the total, must be in legal money range
Does this just mean can't be < 8 decimals places? I haven't seen any other formal discussion around what a valid range is for an amount.
Thanks for your help!