You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/miner.cpp
+8-13Lines changed: 8 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
// Copyright (c) 2009-2010 Satoshi Nakamoto
2
-
// Copyright (c) 2009-2018 The Bitcoin Core developers
2
+
// Copyright (c) 2009-2019 The Bitcoin Core developers
3
3
// Distributed under the MIT software license, see the accompanying
4
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
@@ -10,8 +10,8 @@
10
10
#include<chainparams.h>
11
11
#include<coins.h>
12
12
#include<consensus/consensus.h>
13
-
#include<consensus/tx_verify.h>
14
13
#include<consensus/merkle.h>
14
+
#include<consensus/tx_verify.h>
15
15
#include<consensus/validation.h>
16
16
#include<hash.h>
17
17
#include<net.h>
@@ -21,22 +21,14 @@
21
21
#include<primitives/transaction.h>
22
22
#include<script/standard.h>
23
23
#include<timedata.h>
24
-
#include<util/system.h>
25
24
#include<util/moneystr.h>
25
+
#include<util/system.h>
26
26
#include<validationinterface.h>
27
27
28
28
#include<algorithm>
29
29
#include<queue>
30
30
#include<utility>
31
31
32
-
// Unconfirmed transactions in the memory pool often depend on other
33
-
// transactions in the memory pool. When we select transactions from the
34
-
// pool, we select by highest fee rate of a transaction combined with all
Copy file name to clipboardExpand all lines: src/miner.h
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,19 @@
1
1
// Copyright (c) 2009-2010 Satoshi Nakamoto
2
-
// Copyright (c) 2009-2018 The Bitcoin Core developers
2
+
// Copyright (c) 2009-2019 The Bitcoin Core developers
3
3
// Distributed under the MIT software license, see the accompanying
4
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
6
6
#ifndef BITCOIN_MINER_H
7
7
#defineBITCOIN_MINER_H
8
8
9
+
#include<optional.h>
9
10
#include<primitives/block.h>
10
11
#include<txmempool.h>
11
12
#include<validation.h>
12
13
13
-
#include<stdint.h>
14
14
#include<memory>
15
+
#include<stdint.h>
16
+
15
17
#include<boost/multi_index_container.hpp>
16
18
#include<boost/multi_index/ordered_index.hpp>
17
19
@@ -159,6 +161,9 @@ class BlockAssembler
159
161
/** Construct a new block template with coinbase to scriptPubKeyIn */
if (request.fHelp || request.params.size() != 0) {
191
191
throwstd::runtime_error(
192
192
RPCHelpMan{"getmininginfo",
193
193
"\nReturns a json object containing mining-related information.",
194
194
{},
195
195
RPCResult{
196
-
"{\n"
197
-
"\"blocks\": nnn, (numeric) The current block\n"
198
-
"\"currentblockweight\": nnn, (numeric) The last block weight\n"
199
-
"\"currentblocktx\": nnn, (numeric) The last block transaction\n"
200
-
"\"difficulty\": xxx.xxxxx (numeric) The current difficulty\n"
201
-
"\"networkhashps\": nnn, (numeric) The network hashes per second\n"
202
-
"\"pooledtx\": n (numeric) The size of the mempool\n"
203
-
"\"chain\": \"xxxx\", (string) current network name as defined in BIP70 (main, test, regtest)\n"
204
-
"\"warnings\": \"...\" (string) any network and blockchain warnings\n"
205
-
"}\n"
196
+
"{\n"
197
+
"\"blocks\": nnn, (numeric) The current block\n"
198
+
"\"currentblockweight\": nnn, (numeric, optional) The block weight of the last assembled block (only present if a block was ever assembled)\n"
199
+
"\"currentblocktx\": nnn, (numeric, optional) The number of block transactions of the last assembled block (only present if a block was ever assembled)\n"
200
+
"\"difficulty\": xxx.xxxxx (numeric) The current difficulty\n"
201
+
"\"networkhashps\": nnn, (numeric) The network hashes per second\n"
202
+
"\"pooledtx\": n (numeric) The size of the mempool\n"
203
+
"\"chain\": \"xxxx\", (string) current network name as defined in BIP70 (main, test, regtest)\n"
204
+
"\"warnings\": \"...\" (string) any network and blockchain warnings\n"
Copy file name to clipboardExpand all lines: src/validation.h
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
// Copyright (c) 2009-2010 Satoshi Nakamoto
2
-
// Copyright (c) 2009-2018 The Bitcoin Core developers
2
+
// Copyright (c) 2009-2019 The Bitcoin Core developers
3
3
// Distributed under the MIT software license, see the accompanying
4
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
@@ -14,8 +14,8 @@
14
14
#include<coins.h>
15
15
#include<crypto/common.h>// for ReadLE64
16
16
#include<fs.h>
17
-
#include<protocol.h>// For CMessageHeader::MessageStartChars
18
17
#include<policy/feerate.h>
18
+
#include<protocol.h>// For CMessageHeader::MessageStartChars
Copy file name to clipboardExpand all lines: test/functional/mining_basic.py
+23-5Lines changed: 23 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
#!/usr/bin/env python3
2
-
# Copyright (c) 2014-2018 The Bitcoin Core developers
2
+
# Copyright (c) 2014-2019 The Bitcoin Core developers
3
3
# Distributed under the MIT software license, see the accompanying
4
4
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
Copy file name to clipboardExpand all lines: test/functional/test_framework/blocktools.py
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
#!/usr/bin/env python3
2
-
# Copyright (c) 2015-2018 The Bitcoin Core developers
2
+
# Copyright (c) 2015-2019 The Bitcoin Core developers
3
3
# Distributed under the MIT software license, see the accompanying
4
4
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
"""Utilities for manipulating blocks and transactions."""
0 commit comments