diff options
| author | MarcoFalke <[email protected]> | 2019-04-24 17:55:58 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-06-21 16:45:16 -0400 |
| commit | fa89badf887dcc01e5bdece248b5e7d234fee227 (patch) | |
| tree | 67297d1686f89e7f202979cdda735132f9a65bdf /src/init.cpp | |
| parent | test: Add test that mainnet requires standard txs (diff) | |
| download | discoin-fa89badf887dcc01e5bdece248b5e7d234fee227.tar.xz discoin-fa89badf887dcc01e5bdece248b5e7d234fee227.zip | |
test: Require standard txs in regtest
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 2a10f28a8..be11a019b 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1150,8 +1150,9 @@ bool AppInitParameterInteraction() } fRequireStandard = !gArgs.GetBoolArg("-acceptnonstdtxn", !chainparams.RequireStandard()); - if (chainparams.RequireStandard() && !fRequireStandard) + if (!chainparams.IsTestChain() && !fRequireStandard) { return InitError(strprintf("acceptnonstdtxn is not currently supported for %s chain", chainparams.NetworkIDString())); + } nBytesPerSigOp = gArgs.GetArg("-bytespersigop", nBytesPerSigOp); if (!g_wallet_init_interface.ParameterInteraction()) return false; |