42 lines
1.6 KiB
C
42 lines
1.6 KiB
C
/*
|
|
* 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/>.
|
|
*/
|
|
|
|
#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;
|
|
/** 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;
|
|
|
|
/** Flags for nSequence and nLockTime locks */
|
|
enum {
|
|
/* Interpret sequence numbers as relative lock-time constraints. */
|
|
LOCKTIME_VERIFY_SEQUENCE = (1 << 0),
|
|
|
|
/* Use GetMedianTimePast() instead of nTime for end point timestamp. */
|
|
LOCKTIME_MEDIAN_TIME_PAST = (1 << 1),
|
|
};
|
|
|
|
#endif
|