Crate bitcoin_amt

Source

Structs§

CachableAmount
| Cachable amount subdivided into watchonly | and spendable parts. |
IsMineType

Constants§

COIN
| The amount of satoshis in one BTC. |
COINBASE_MATURITY
| Coinbase transaction outputs can only | be spent after this number of new blocks | (network rule) |
LOCKTIME_MEDIAN_TIME_PAST
| Use GetMedianTimePast() instead of | nTime for end point timestamp. |
LOCKTIME_VERIFY_SEQUENCE
| Interpret sequence numbers as relative | lock-time constraints. |
MAX_BLOCK_SERIALIZED_SIZE
| The maximum allowed size for a serialized | block, in bytes (only for buffer size | limits) |
MAX_BLOCK_SIGOPS_COST
| The maximum allowed number of signature | check operations in a block (network | rule) |
MAX_BLOCK_WEIGHT
| The maximum allowed weight for a block, | see BIP 141 (network rule) |
MAX_MONEY
| 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. |
MIN_SERIALIZABLE_TRANSACTION_WEIGHT
| 10 is the lower bound for the size of a | serialized CTransaction |
MIN_TRANSACTION_WEIGHT
| 60 is the lower bound for the size of a | valid serialized CTransaction |
WITNESS_SCALE_FACTOR

Functions§

money_range

Type Aliases§

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