Merge bitcoin/bitcoin#31520: #31318 followups
4f06ae05edrefactor: fix typo in node/types.h (Sjors Provoost)366fbf152ctest: drop extraneous bracket in mining util (Sjors Provoost) Pull request description: #31318 followups Drops an extraneous bracket and fixes a typo. ACKs for top commit: maflcko: lgtm ACK4f06ae05edvasild: ACK4f06ae05edryanofsky: Code review ACK4f06ae05edTree-SHA512: e168bab124f1e62f6666a21349ee4ac8ac11aadeb04813513e89f6c8f8479a67bcf3490460fd49c8d7f9b7264a32e7ea95ac727dfe4597a59b934017ec9fe44e
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
//! @file node/types.h is a home for public enum and struct type definitions
|
//! @file node/types.h is a home for public enum and struct type definitions
|
||||||
//! that are used by internally by node code, but also used externally by wallet,
|
//! that are used internally by node code, but also used externally by wallet,
|
||||||
//! mining or GUI code.
|
//! mining or GUI code.
|
||||||
//!
|
//!
|
||||||
//! This file is intended to define only simple types that do not have external
|
//! This file is intended to define only simple types that do not have external
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ COutPoint generatetoaddress(const NodeContext& node, const std::string& address)
|
|||||||
const auto dest = DecodeDestination(address);
|
const auto dest = DecodeDestination(address);
|
||||||
assert(IsValidDestination(dest));
|
assert(IsValidDestination(dest));
|
||||||
BlockAssembler::Options assembler_options;
|
BlockAssembler::Options assembler_options;
|
||||||
assembler_options.coinbase_output_script = {GetScriptForDestination(dest)};
|
assembler_options.coinbase_output_script = GetScriptForDestination(dest);
|
||||||
|
|
||||||
return MineBlock(node, assembler_options);
|
return MineBlock(node, assembler_options);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user