Files

42 lines
1.6 KiB
C
Raw Permalink Normal View History

2017-11-09 19:34:51 +01:00
/*
* This file is part of the Flowee project
* Copyright (C) 2009-2010 Satoshi Nakamoto
* Copyright (C) 2009-2015 The Bitcoin Core developers
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2018-01-16 10:47:52 +00:00
#ifndef FLOWEE_CONSENSUS_CONSENSUS_H
#define FLOWEE_CONSENSUS_CONSENSUS_H
/** The maximum allowed size for a serialized block, in bytes (network rule) */
static const unsigned int MAX_LEGACY_BLOCK_SIZE = 1000000;
/** The maximum allowed size for a serialized block, in bytes (network rule) */
static const unsigned int MAX_TX_SIZE = 1000000;
2026-05-08 23:38:26 +02:00
/** The minimum allowed transaction size (since May 2023) */
static const unsigned int MIN_TX_SIZE = 65;
/** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */
static const int COINBASE_MATURITY = 100;
2015-12-07 15:44:16 -05:00
/** Flags for nSequence and nLockTime locks */
2015-11-03 17:12:36 +00:00
enum {
2015-12-07 15:44:16 -05:00
/* Interpret sequence numbers as relative lock-time constraints. */
LOCKTIME_VERIFY_SEQUENCE = (1 << 0),
2015-11-03 17:12:36 +00:00
/* Use GetMedianTimePast() instead of nTime for end point timestamp. */
LOCKTIME_MEDIAN_TIME_PAST = (1 << 1),
};
2018-01-16 10:47:52 +00:00
#endif