mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
refactor: Mark some static global vars as const
These were found while looking for static mutable state in the kernel library.
This commit is contained in:
parent
39f9b80fba
commit
51fa26239a
2 changed files with 3 additions and 3 deletions
|
|
@ -245,7 +245,7 @@ bool ParseHashStr(const std::string& strHex, uint256& result)
|
|||
|
||||
util::Result<int> SighashFromStr(const std::string& sighash)
|
||||
{
|
||||
static std::map<std::string, int> map_sighash_values = {
|
||||
static const std::map<std::string, int> map_sighash_values = {
|
||||
{std::string("DEFAULT"), int(SIGHASH_DEFAULT)},
|
||||
{std::string("ALL"), int(SIGHASH_ALL)},
|
||||
{std::string("ALL|ANYONECANPAY"), int(SIGHASH_ALL|SIGHASH_ANYONECANPAY)},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue