Crate bitcoin_amt

source ·

Structs

Constants

  • | The amount of satoshis in one BTC. |
  • | Coinbase transaction outputs can only | be spent after this number of new blocks | (network rule) |
  • | Use GetMedianTimePast() instead of | nTime for end point timestamp. |
  • | Interpret sequence numbers as relative | lock-time constraints. |
  • | The maximum allowed size for a serialized | block, in bytes (only for buffer size | limits) |
  • | The maximum allowed number of signature | check operations in a block (network | rule) |
  • | The maximum allowed weight for a block, | see BIP 141 (network rule) |
  • | No amount larger than this (in satoshi) | is valid. | | ———– | @note | | this constant is not the total money | supply, which in Bitcoin currently | happens to be less than 21,000,000 BTC | for various reasons, but rather a sanity | check. As this sanity check is used by | consensus-critical validation code, | the exact value of the MAX_MONEY constant | is consensus critical; in unusual circumstances | like a(nother) overflow bug that allowed | for the creation of coins out of thin | air modification could lead to a fork. |
  • | 10 is the lower bound for the size of a | serialized CTransaction |
  • | 60 is the lower bound for the size of a | valid serialized CTransaction |

Functions

Type Definitions

  • | Amount in satoshis (Can be negative) |
  • | used for bitflags of isminetype |