aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rwxr-xr-xshare/genbuild.sh2
-rw-r--r--src/chainparams.cpp2
-rw-r--r--src/main.cpp225
-rw-r--r--src/main.h27
-rw-r--r--src/miner.cpp2
-rw-r--r--src/net.cpp9
-rw-r--r--src/net.h7
-rw-r--r--src/qt/bitcoin.cpp2
-rw-r--r--src/qt/locale/bitcoin_ach.ts8
-rw-r--r--src/qt/locale/bitcoin_af_ZA.ts8
-rw-r--r--src/qt/locale/bitcoin_ar.ts8
-rw-r--r--src/qt/locale/bitcoin_be_BY.ts8
-rw-r--r--src/qt/locale/bitcoin_bg.ts128
-rw-r--r--src/qt/locale/bitcoin_bs.ts8
-rw-r--r--src/qt/locale/bitcoin_ca.ts8
-rw-r--r--src/qt/locale/bitcoin_ca@valencia.ts8
-rw-r--r--src/qt/locale/bitcoin_ca_ES.ts8
-rw-r--r--src/qt/locale/bitcoin_cmn.ts8
-rw-r--r--src/qt/locale/bitcoin_cs.ts362
-rw-r--r--src/qt/locale/bitcoin_cy.ts8
-rw-r--r--src/qt/locale/bitcoin_da.ts8
-rw-r--r--src/qt/locale/bitcoin_de.ts8
-rw-r--r--src/qt/locale/bitcoin_el_GR.ts46
-rw-r--r--src/qt/locale/bitcoin_en.ts33
-rw-r--r--src/qt/locale/bitcoin_eo.ts8
-rw-r--r--src/qt/locale/bitcoin_es.ts8
-rw-r--r--src/qt/locale/bitcoin_es_CL.ts8
-rw-r--r--src/qt/locale/bitcoin_es_DO.ts8
-rw-r--r--src/qt/locale/bitcoin_es_MX.ts8
-rw-r--r--src/qt/locale/bitcoin_es_UY.ts8
-rw-r--r--src/qt/locale/bitcoin_et.ts8
-rw-r--r--src/qt/locale/bitcoin_eu_ES.ts8
-rw-r--r--src/qt/locale/bitcoin_fa.ts8
-rw-r--r--src/qt/locale/bitcoin_fa_IR.ts8
-rw-r--r--src/qt/locale/bitcoin_fi.ts8
-rw-r--r--src/qt/locale/bitcoin_fr.ts8
-rw-r--r--src/qt/locale/bitcoin_fr_CA.ts54
-rw-r--r--src/qt/locale/bitcoin_gl.ts8
-rw-r--r--src/qt/locale/bitcoin_gu_IN.ts8
-rw-r--r--src/qt/locale/bitcoin_he.ts8
-rw-r--r--src/qt/locale/bitcoin_hi_IN.ts8
-rw-r--r--src/qt/locale/bitcoin_hr.ts8
-rw-r--r--src/qt/locale/bitcoin_hu.ts8
-rw-r--r--src/qt/locale/bitcoin_id_ID.ts8
-rw-r--r--src/qt/locale/bitcoin_it.ts8
-rw-r--r--src/qt/locale/bitcoin_ja.ts8
-rw-r--r--src/qt/locale/bitcoin_ka.ts8
-rw-r--r--src/qt/locale/bitcoin_kk_KZ.ts8
-rw-r--r--src/qt/locale/bitcoin_ko_KR.ts8
-rw-r--r--src/qt/locale/bitcoin_ky.ts8
-rw-r--r--src/qt/locale/bitcoin_la.ts8
-rw-r--r--src/qt/locale/bitcoin_lt.ts8
-rw-r--r--src/qt/locale/bitcoin_lv_LV.ts8
-rw-r--r--src/qt/locale/bitcoin_ms_MY.ts8
-rw-r--r--src/qt/locale/bitcoin_nb.ts8
-rw-r--r--src/qt/locale/bitcoin_nl.ts8
-rw-r--r--src/qt/locale/bitcoin_pam.ts8
-rw-r--r--src/qt/locale/bitcoin_pl.ts8
-rw-r--r--src/qt/locale/bitcoin_pt_BR.ts8
-rw-r--r--src/qt/locale/bitcoin_pt_PT.ts8
-rw-r--r--src/qt/locale/bitcoin_ro_RO.ts8
-rw-r--r--src/qt/locale/bitcoin_ru.ts8
-rw-r--r--src/qt/locale/bitcoin_sah.ts8
-rw-r--r--src/qt/locale/bitcoin_sk.ts8
-rw-r--r--src/qt/locale/bitcoin_sl_SI.ts8
-rw-r--r--src/qt/locale/bitcoin_sq.ts8
-rw-r--r--src/qt/locale/bitcoin_sr.ts8
-rw-r--r--src/qt/locale/bitcoin_sv.ts8
-rw-r--r--src/qt/locale/bitcoin_th_TH.ts8
-rw-r--r--src/qt/locale/bitcoin_tr.ts8
-rw-r--r--src/qt/locale/bitcoin_uk.ts8
-rw-r--r--src/qt/locale/bitcoin_ur_PK.ts8
-rw-r--r--src/qt/locale/bitcoin_uz@Cyrl.ts8
-rw-r--r--src/qt/locale/bitcoin_vi.ts8
-rw-r--r--src/qt/locale/bitcoin_vi_VN.ts8
-rw-r--r--src/qt/locale/bitcoin_zh_CN.ts10
-rw-r--r--src/qt/locale/bitcoin_zh_HK.ts8
-rw-r--r--src/qt/locale/bitcoin_zh_TW.ts8
-rw-r--r--src/qt/optionsmodel.cpp2
-rw-r--r--src/qt/receivecoinsdialog.cpp19
-rw-r--r--src/qt/receivecoinsdialog.h8
-rw-r--r--src/qt/receiverequestdialog.cpp25
-rw-r--r--src/qt/receiverequestdialog.h7
-rw-r--r--src/rpcblockchain.cpp36
-rw-r--r--src/rpcnet.cpp51
-rw-r--r--src/rpcrawtransaction.cpp9
-rw-r--r--src/rpcserver.cpp2
-rw-r--r--src/rpcserver.h2
-rw-r--r--src/script.cpp45
-rw-r--r--src/script.h198
-rw-r--r--src/test/Makefile.am1
-rw-r--r--src/test/data/script_invalid.json29
-rw-r--r--src/test/data/script_valid.json89
-rw-r--r--src/test/script_tests.cpp6
-rw-r--r--src/test/scriptnum_tests.cpp196
-rw-r--r--src/wallet.cpp4
-rw-r--r--src/wallet.h2
98 files changed, 1678 insertions, 478 deletions
diff --git a/Makefile.am b/Makefile.am
index 0b3a822bff..04f8368dd7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -164,9 +164,9 @@ endif
EXTRA_DIST = $(top_srcdir)/share/genbuild.sh qa/pull-tester/pull-tester.sh qa/rpc-tests $(DIST_DOCS) $(WINDOWS_PACKAGING) $(OSX_PACKAGING)
-CLEANFILES = $(OSX_DMG) $(OSX_APP) $(BITCOIN_WIN_INSTALLER)
+CLEANFILES = $(OSX_DMG) $(BITCOIN_WIN_INSTALLER)
.INTERMEDIATE: $(COVERAGE_INFO)
clean-local:
- rm -rf test_bitcoin.coverage/ total.coverage/
+ rm -rf test_bitcoin.coverage/ total.coverage/ $(OSX_APP)
diff --git a/share/genbuild.sh b/share/genbuild.sh
index 6890a6eba0..0800b31229 100755
--- a/share/genbuild.sh
+++ b/share/genbuild.sh
@@ -16,7 +16,7 @@ fi
DESC=""
SUFFIX=""
LAST_COMMIT_DATE=""
-if [ -e "$(which git)" -a -d ".git" ]; then
+if [ -e "$(which git 2>/dev/null)" -a -d ".git" ]; then
# clean 'dirty' status of touched files that haven't been modified
git diff >/dev/null 2>/dev/null
diff --git a/src/chainparams.cpp b/src/chainparams.cpp
index b52774ee20..eb56800b92 100644
--- a/src/chainparams.cpp
+++ b/src/chainparams.cpp
@@ -125,7 +125,7 @@ public:
CTransaction txNew;
txNew.vin.resize(1);
txNew.vout.resize(1);
- txNew.vin[0].scriptSig = CScript() << 486604799 << CBigNum(4) << vector<unsigned char>((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp));
+ txNew.vin[0].scriptSig = CScript() << 486604799 << CScriptNum(4) << vector<unsigned char>((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp));
txNew.vout[0].nValue = 50 * COIN;
txNew.vout[0].scriptPubKey = CScript() << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f") << OP_CHECKSIG;
genesis.vtx.push_back(txNew);
diff --git a/src/main.cpp b/src/main.cpp
index 8ed811c1a9..a0f4f40cb1 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1866,8 +1866,13 @@ bool ConnectBlock(CBlock& block, CValidationState& state, CBlockIndex* pindex, C
if (fJustCheck)
return true;
+ // Correct transaction counts.
+ pindex->nTx = block.vtx.size();
+ if (pindex->pprev)
+ pindex->nChainTx = pindex->pprev->nChainTx + block.vtx.size();
+
// Write undo information to disk
- if (pindex->GetUndoPos().IsNull() || (pindex->nStatus & BLOCK_VALID_MASK) < BLOCK_VALID_SCRIPTS)
+ if (pindex->GetUndoPos().IsNull() || !pindex->IsValid(BLOCK_VALID_SCRIPTS))
{
if (pindex->GetUndoPos().IsNull()) {
CDiskBlockPos pos;
@@ -1881,7 +1886,7 @@ bool ConnectBlock(CBlock& block, CValidationState& state, CBlockIndex* pindex, C
pindex->nStatus |= BLOCK_HAVE_UNDO;
}
- pindex->nStatus = (pindex->nStatus & ~BLOCK_VALID_MASK) | BLOCK_VALID_SCRIPTS;
+ pindex->RaiseValidity(BLOCK_VALID_SCRIPTS);
CDiskBlockIndex blockindex(pindex);
if (!pblocktree->WriteBlockIndex(blockindex))
@@ -2075,10 +2080,11 @@ void static FindMostWorkChain() {
CBlockIndex *pindexTest = pindexNew;
bool fInvalidAncestor = false;
while (pindexTest && !chainActive.Contains(pindexTest)) {
- if (pindexTest->nStatus & BLOCK_FAILED_MASK) {
+ if (!pindexTest->IsValid(BLOCK_VALID_TRANSACTIONS) || !(pindexTest->nStatus & BLOCK_HAVE_DATA)) {
// Candidate has an invalid ancestor, remove entire chain from the set.
if (pindexBestInvalid == NULL || pindexNew->nChainWork > pindexBestInvalid->nChainWork)
- pindexBestInvalid = pindexNew; CBlockIndex *pindexFailed = pindexNew;
+ pindexBestInvalid = pindexNew;
+ CBlockIndex *pindexFailed = pindexNew;
while (pindexTest != pindexFailed) {
pindexFailed->nStatus |= BLOCK_FAILED_CHILD;
setBlockIndexValid.erase(pindexFailed);
@@ -2152,12 +2158,14 @@ bool ActivateBestChain(CValidationState &state) {
return true;
}
-bool AddToBlockIndex(CBlock& block, CValidationState& state, const CDiskBlockPos& pos)
+
+CBlockIndex* AddToBlockIndex(CBlockHeader& block)
{
// Check for duplicate
uint256 hash = block.GetHash();
- if (mapBlockIndex.count(hash))
- return state.Invalid(error("AddToBlockIndex() : %s already exists", hash.ToString()), 0, "duplicate");
+ std::map<uint256, CBlockIndex*>::iterator it = mapBlockIndex.find(hash);
+ if (it != mapBlockIndex.end())
+ return it->second;
// Construct new block index object
CBlockIndex* pindexNew = new CBlockIndex(block);
@@ -2174,14 +2182,38 @@ bool AddToBlockIndex(CBlock& block, CValidationState& state, const CDiskBlockPos
pindexNew->pprev = (*miPrev).second;
pindexNew->nHeight = pindexNew->pprev->nHeight + 1;
}
- pindexNew->nTx = block.vtx.size();
pindexNew->nChainWork = (pindexNew->pprev ? pindexNew->pprev->nChainWork : 0) + pindexNew->GetBlockWork().getuint256();
- pindexNew->nChainTx = (pindexNew->pprev ? pindexNew->pprev->nChainTx : 0) + pindexNew->nTx;
+ pindexNew->RaiseValidity(BLOCK_VALID_TREE);
+
+ return pindexNew;
+}
+
+
+// Mark a block as having its data received and checked (up to BLOCK_VALID_TRANSACTIONS).
+bool ReceivedBlockTransactions(const CBlock &block, CValidationState& state, CBlockIndex *pindexNew, const CDiskBlockPos& pos)
+{
+ pindexNew->nTx = block.vtx.size();
+ if (pindexNew->pprev) {
+ // Not the genesis block.
+ if (pindexNew->pprev->nChainTx) {
+ // This parent's block's total number transactions is known, so compute outs.
+ pindexNew->nChainTx = pindexNew->pprev->nChainTx + pindexNew->nTx;
+ } else {
+ // The total number of transactions isn't known yet.
+ // We will compute it when the block is connected.
+ pindexNew->nChainTx = 0;
+ }
+ } else {
+ // Genesis block.
+ pindexNew->nChainTx = pindexNew->nTx;
+ }
pindexNew->nFile = pos.nFile;
pindexNew->nDataPos = pos.nPos;
pindexNew->nUndoPos = 0;
- pindexNew->nStatus = BLOCK_VALID_TRANSACTIONS | BLOCK_HAVE_DATA;
- setBlockIndexValid.insert(pindexNew);
+ pindexNew->nStatus |= BLOCK_HAVE_DATA;
+
+ if (pindexNew->RaiseValidity(BLOCK_VALID_TRANSACTIONS))
+ setBlockIndexValid.insert(pindexNew);
if (!pblocktree->WriteBlockIndex(CDiskBlockIndex(pindexNew)))
return state.Abort(_("Failed to write block index"));
@@ -2305,26 +2337,55 @@ bool FindUndoPos(CValidationState &state, int nFile, CDiskBlockPos &pos, unsigne
}
+bool CheckBlockHeader(const CBlockHeader& block, CValidationState& state, bool fCheckPOW)
+{
+ // Check proof of work matches claimed amount
+ if (fCheckPOW && !CheckProofOfWork(block.GetHash(), block.nBits))
+ return state.DoS(50, error("CheckBlockHeader() : proof of work failed"),
+ REJECT_INVALID, "high-hash");
+
+ // Check timestamp
+ if (block.GetBlockTime() > GetAdjustedTime() + 2 * 60 * 60)
+ return state.Invalid(error("CheckBlockHeader() : block timestamp too far in the future"),
+ REJECT_INVALID, "time-too-new");
+
+ CBlockIndex* pcheckpoint = Checkpoints::GetLastCheckpoint(mapBlockIndex);
+ if (pcheckpoint && block.hashPrevBlock != (chainActive.Tip() ? chainActive.Tip()->GetBlockHash() : uint256(0)))
+ {
+ // Extra checks to prevent "fill up memory by spamming with bogus blocks"
+ int64_t deltaTime = block.GetBlockTime() - pcheckpoint->nTime;
+ if (deltaTime < 0)
+ {
+ return state.DoS(100, error("CheckBlockHeader() : block with timestamp before last checkpoint"),
+ REJECT_CHECKPOINT, "time-too-old");
+ }
+ CBigNum bnNewBlock;
+ bnNewBlock.SetCompact(block.nBits);
+ CBigNum bnRequired;
+ bnRequired.SetCompact(ComputeMinWork(pcheckpoint->nBits, deltaTime));
+ if (bnNewBlock > bnRequired)
+ {
+ return state.DoS(100, error("CheckBlockHeader() : block with too little proof-of-work"),
+ REJECT_INVALID, "bad-diffbits");
+ }
+ }
+
+ return true;
+}
+
bool CheckBlock(const CBlock& block, CValidationState& state, bool fCheckPOW, bool fCheckMerkleRoot)
{
// These are checks that are independent of context
// that can be verified before saving an orphan block.
+ if (!CheckBlockHeader(block, state, fCheckPOW))
+ return false;
+
// Size limits
if (block.vtx.empty() || block.vtx.size() > MAX_BLOCK_SIZE || ::GetSerializeSize(block, SER_NETWORK, PROTOCOL_VERSION) > MAX_BLOCK_SIZE)
return state.DoS(100, error("CheckBlock() : size limits failed"),
REJECT_INVALID, "bad-blk-length");
- // Check proof of work matches claimed amount
- if (fCheckPOW && !CheckProofOfWork(block.GetHash(), block.nBits))
- return state.DoS(50, error("CheckBlock() : proof of work failed"),
- REJECT_INVALID, "high-hash");
-
- // Check timestamp
- if (block.GetBlockTime() > GetAdjustedTime() + 2 * 60 * 60)
- return state.Invalid(error("CheckBlock() : block timestamp too far in the future"),
- REJECT_INVALID, "time-too-new");
-
// First transaction must be coinbase, the rest must not be
if (block.vtx.empty() || !block.vtx[0].IsCoinBase())
return state.DoS(100, error("CheckBlock() : first tx is not coinbase"),
@@ -2371,13 +2432,18 @@ bool CheckBlock(const CBlock& block, CValidationState& state, bool fCheckPOW, bo
return true;
}
-bool AcceptBlock(CBlock& block, CValidationState& state, CDiskBlockPos* dbp)
+bool AcceptBlockHeader(CBlockHeader& block, CValidationState& state, CBlockIndex** ppindex)
{
AssertLockHeld(cs_main);
// Check for duplicate
uint256 hash = block.GetHash();
- if (mapBlockIndex.count(hash))
- return state.Invalid(error("AcceptBlock() : block already in mapBlockIndex"), 0, "duplicate");
+ std::map<uint256, CBlockIndex*>::iterator miSelf = mapBlockIndex.find(hash);
+ CBlockIndex *pindex = NULL;
+ if (miSelf != mapBlockIndex.end()) {
+ pindex = miSelf->second;
+ if (pindex->nStatus & BLOCK_FAILED_MASK)
+ return state.Invalid(error("AcceptBlock() : block is marked invalid"), 0, "duplicate");
+ }
// Get prev block index
CBlockIndex* pindexPrev = NULL;
@@ -2399,12 +2465,6 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CDiskBlockPos* dbp)
return state.Invalid(error("AcceptBlock() : block's timestamp is too early"),
REJECT_INVALID, "time-too-old");
- // Check that all transactions are finalized
- BOOST_FOREACH(const CTransaction& tx, block.vtx)
- if (!IsFinalTx(tx, nHeight, block.GetBlockTime()))
- return state.DoS(10, error("AcceptBlock() : contains a non-final transaction"),
- REJECT_INVALID, "bad-txns-nonfinal");
-
// Check that the block chain matches the known block chain up to a checkpoint
if (!Checkpoints::CheckBlock(nHeight, hash))
return state.DoS(100, error("AcceptBlock() : rejected by checkpoint lock-in at %d", nHeight),
@@ -2425,18 +2485,57 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CDiskBlockPos* dbp)
REJECT_OBSOLETE, "bad-version");
}
}
- // Enforce block.nVersion=2 rule that the coinbase starts with serialized block height
- if (block.nVersion >= 2)
+ }
+
+ if (pindex == NULL)
+ pindex = AddToBlockIndex(block);
+
+ if (ppindex)
+ *ppindex = pindex;
+
+ return true;
+}
+
+bool AcceptBlock(CBlock& block, CValidationState& state, CBlockIndex** ppindex, CDiskBlockPos* dbp)
+{
+ AssertLockHeld(cs_main);
+
+ CBlockIndex *&pindex = *ppindex;
+
+ if (!AcceptBlockHeader(block, state, &pindex))
+ return false;
+
+ if (!CheckBlock(block, state)) {
+ if (state.Invalid() && !state.CorruptionPossible()) {
+ pindex->nStatus |= BLOCK_FAILED_VALID;
+ }
+ return false;
+ }
+
+ int nHeight = pindex->nHeight;
+ uint256 hash = pindex->GetBlockHash();
+
+ // Check that all transactions are finalized
+ BOOST_FOREACH(const CTransaction& tx, block.vtx)
+ if (!IsFinalTx(tx, nHeight, block.GetBlockTime())) {
+ pindex->nStatus |= BLOCK_FAILED_VALID;
+ return state.DoS(10, error("AcceptBlock() : contains a non-final transaction"),
+ REJECT_INVALID, "bad-txns-nonfinal");
+ }
+
+ // Enforce block.nVersion=2 rule that the coinbase starts with serialized block height
+ if (block.nVersion >= 2)
+ {
+ // if 750 of the last 1,000 blocks are version 2 or greater (51/100 if testnet):
+ if ((!TestNet() && CBlockIndex::IsSuperMajority(2, pindex->pprev, 750, 1000)) ||
+ (TestNet() && CBlockIndex::IsSuperMajority(2, pindex->pprev, 51, 100)))
{
- // if 750 of the last 1,000 blocks are version 2 or greater (51/100 if testnet):
- if ((!TestNet() && CBlockIndex::IsSuperMajority(2, pindexPrev, 750, 1000)) ||
- (TestNet() && CBlockIndex::IsSuperMajority(2, pindexPrev, 51, 100)))
- {
- CScript expect = CScript() << nHeight;
- if (block.vtx[0].vin[0].scriptSig.size() < expect.size() ||
- !std::equal(expect.begin(), expect.end(), block.vtx[0].vin[0].scriptSig.begin()))
- return state.DoS(100, error("AcceptBlock() : block height mismatch in coinbase"),
- REJECT_INVALID, "bad-cb-height");
+ CScript expect = CScript() << nHeight;
+ if (block.vtx[0].vin[0].scriptSig.size() < expect.size() ||
+ !std::equal(expect.begin(), expect.end(), block.vtx[0].vin[0].scriptSig.begin())) {
+ pindex->nStatus |= BLOCK_FAILED_VALID;
+ return state.DoS(100, error("AcceptBlock() : block height mismatch in coinbase"),
+ REJECT_INVALID, "bad-cb-height");
}
}
}
@@ -2452,8 +2551,8 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CDiskBlockPos* dbp)
if (dbp == NULL)
if (!WriteBlockToDisk(block, blockPos))
return state.Abort(_("Failed to write block"));
- if (!AddToBlockIndex(block, state, blockPos))
- return error("AcceptBlock() : AddToBlockIndex failed");
+ if (!ReceivedBlockTransactions(block, state, pindex, blockPos))
+ return error("AcceptBlock() : ReceivedBlockTransactions failed");
} catch(std::runtime_error &e) {
return state.Abort(_("System error: ") + e.what());
}
@@ -2523,30 +2622,9 @@ bool ProcessBlock(CValidationState &state, CNode* pfrom, CBlock* pblock, CDiskBl
if (!CheckBlock(*pblock, state))
return error("ProcessBlock() : CheckBlock FAILED");
- CBlockIndex* pcheckpoint = Checkpoints::GetLastCheckpoint(mapBlockIndex);
- if (pcheckpoint && pblock->hashPrevBlock != (chainActive.Tip() ? chainActive.Tip()->GetBlockHash() : uint256(0)))
- {
- // Extra checks to prevent "fill up memory by spamming with bogus blocks"
- int64_t deltaTime = pblock->GetBlockTime() - pcheckpoint->nTime;
- if (deltaTime < 0)
- {
- return state.DoS(100, error("ProcessBlock() : block with timestamp before last checkpoint"),
- REJECT_CHECKPOINT, "time-too-old");
- }
- CBigNum bnNewBlock;
- bnNewBlock.SetCompact(pblock->nBits);
- CBigNum bnRequired;
- bnRequired.SetCompact(ComputeMinWork(pcheckpoint->nBits, deltaTime));
- if (bnNewBlock > bnRequired)
- {
- return state.DoS(100, error("ProcessBlock() : block with too little proof-of-work"),
- REJECT_INVALID, "bad-diffbits");
- }
- }
-
-
- // If we don't already have its previous block, shunt it off to holding area until we get it
- if (pblock->hashPrevBlock != 0 && !mapBlockIndex.count(pblock->hashPrevBlock))
+ // If we don't already have its previous block (with full data), shunt it off to holding area until we get it
+ std::map<uint256, CBlockIndex*>::iterator it = mapBlockIndex.find(pblock->hashPrevBlock);
+ if (pblock->hashPrevBlock != 0 && (it == mapBlockIndex.end() || !(it->second->nStatus & BLOCK_HAVE_DATA)))
{
LogPrintf("ProcessBlock: ORPHAN BLOCK %lu, prev=%s\n", (unsigned long)mapOrphanBlocks.size(), pblock->hashPrevBlock.ToString());
@@ -2571,7 +2649,9 @@ bool ProcessBlock(CValidationState &state, CNode* pfrom, CBlock* pblock, CDiskBl
}
// Store to disk
- if (!AcceptBlock(*pblock, state, dbp))
+ CBlockIndex *pindex = NULL;
+ bool ret = AcceptBlock(*pblock, state, &pindex, dbp);
+ if (!ret)
return error("ProcessBlock() : AcceptBlock FAILED");
// Recursively process any orphan blocks that depended on this one
@@ -2592,7 +2672,8 @@ bool ProcessBlock(CValidationState &state, CNode* pfrom, CBlock* pblock, CDiskBl
block.BuildMerkleTree();
// Use a dummy CValidationState so someone can't setup nodes to counter-DoS based on orphan resolution (that is, feeding people an invalid block based on LegitBlockX in order to get anyone relaying LegitBlockX banned)
CValidationState stateDummy;
- if (AcceptBlock(block, stateDummy))
+ CBlockIndex *pindexChild = NULL;
+ if (AcceptBlock(block, stateDummy, &pindexChild))
vWorkQueue.push_back(mi->second->hashBlock);
mapOrphanBlocks.erase(mi->second->hashBlock);
delete mi->second;
@@ -2855,7 +2936,7 @@ bool static LoadBlockIndexDB()
CBlockIndex* pindex = item.second;
pindex->nChainWork = (pindex->pprev ? pindex->pprev->nChainWork : 0) + pindex->GetBlockWork().getuint256();
pindex->nChainTx = (pindex->pprev ? pindex->pprev->nChainTx : 0) + pindex->nTx;
- if ((pindex->nStatus & BLOCK_VALID_MASK) >= BLOCK_VALID_TRANSACTIONS && !(pindex->nStatus & BLOCK_FAILED_MASK))
+ if (pindex->IsValid(BLOCK_VALID_TRANSACTIONS))
setBlockIndexValid.insert(pindex);
if (pindex->nStatus & BLOCK_FAILED_MASK && (!pindexBestInvalid || pindex->nChainWork > pindexBestInvalid->nChainWork))
pindexBestInvalid = pindex;
@@ -2891,6 +2972,7 @@ bool static LoadBlockIndexDB()
bool VerifyDB(int nCheckLevel, int nCheckDepth)
{
+ LOCK(cs_main);
if (chainActive.Tip() == NULL || chainActive.Tip()->pprev == NULL)
return true;
@@ -3002,7 +3084,8 @@ bool InitBlockIndex() {
return error("LoadBlockIndex() : FindBlockPos failed");
if (!WriteBlockToDisk(block, blockPos))
return error("LoadBlockIndex() : writing genesis block to disk failed");
- if (!AddToBlockIndex(block, state, blockPos))
+ CBlockIndex *pindex = AddToBlockIndex(block);
+ if (!ReceivedBlockTransactions(block, state, pindex, blockPos))
return error("LoadBlockIndex() : genesis block not accepted");
} catch(std::runtime_error &e) {
return error("LoadBlockIndex() : failed to initialize block database: %s", e.what());
diff --git a/src/main.h b/src/main.h
index 470f158287..c69e0d2a3c 100644
--- a/src/main.h
+++ b/src/main.h
@@ -603,11 +603,13 @@ bool ConnectBlock(CBlock& block, CValidationState& state, CBlockIndex* pindex, C
bool AddToBlockIndex(CBlock& block, CValidationState& state, const CDiskBlockPos& pos);
// Context-independent validity checks
+bool CheckBlockHeader(const CBlockHeader& block, CValidationState& state, bool fCheckPOW = true);
bool CheckBlock(const CBlock& block, CValidationState& state, bool fCheckPOW = true, bool fCheckMerkleRoot = true);
// Store block on disk
// if dbp is provided, the file is known to already reside on disk
-bool AcceptBlock(CBlock& block, CValidationState& state, CDiskBlockPos* dbp = NULL);
+bool AcceptBlock(CBlock& block, CValidationState& state, CBlockIndex **pindex, CDiskBlockPos* dbp = NULL);
+bool AcceptBlockHeader(CBlockHeader& block, CValidationState& state, CBlockIndex **ppindex= NULL);
@@ -865,6 +867,29 @@ public:
{
LogPrintf("%s\n", ToString().c_str());
}
+
+ // Check whether this block index entry is valid up to the passed validity level.
+ bool IsValid(enum BlockStatus nUpTo = BLOCK_VALID_TRANSACTIONS) const
+ {
+ assert(!(nUpTo & ~BLOCK_VALID_MASK)); // Only validity flags allowed.
+ if (nStatus & BLOCK_FAILED_MASK)
+ return false;
+ return ((nStatus & BLOCK_VALID_MASK) >= nUpTo);
+ }
+
+ // Raise the validity level of this block index entry.
+ // Returns true if the validity was changed.
+ bool RaiseValidity(enum BlockStatus nUpTo)
+ {
+ assert(!(nUpTo & ~BLOCK_VALID_MASK)); // Only validity flags allowed.
+ if (nStatus & BLOCK_FAILED_MASK)
+ return false;
+ if ((nStatus & BLOCK_VALID_MASK) < nUpTo) {
+ nStatus = (nStatus & ~BLOCK_VALID_MASK) | nUpTo;
+ return true;
+ }
+ return false;
+ }
};
diff --git a/src/miner.cpp b/src/miner.cpp
index 12a5e7f845..01fc56601b 100644
--- a/src/miner.cpp
+++ b/src/miner.cpp
@@ -358,7 +358,7 @@ void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int&
}
++nExtraNonce;
unsigned int nHeight = pindexPrev->nHeight+1; // Height first in coinbase required for block.version=2
- pblock->vtx[0].vin[0].scriptSig = (CScript() << nHeight << CBigNum(nExtraNonce)) + COINBASE_FLAGS;
+ pblock->vtx[0].vin[0].scriptSig = (CScript() << nHeight << CScriptNum(nExtraNonce)) + COINBASE_FLAGS;
assert(pblock->vtx[0].vin[0].scriptSig.size() <= 100);
pblock->hashMerkleRoot = pblock->BuildMerkleTree();
diff --git a/src/net.cpp b/src/net.cpp
index 6369dd2924..6bde1e7999 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -44,18 +44,13 @@ static const int MAX_OUTBOUND_CONNECTIONS = 8;
bool OpenNetworkConnection(const CAddress& addrConnect, CSemaphoreGrant *grantOutbound = NULL, const char *strDest = NULL, bool fOneShot = false);
-struct LocalServiceInfo {
- int nScore;
- int nPort;
-};
-
//
// Global state variables
//
bool fDiscover = true;
uint64_t nLocalServices = NODE_NETWORK;
-static CCriticalSection cs_mapLocalHost;
-static map<CNetAddr, LocalServiceInfo> mapLocalHost;
+CCriticalSection cs_mapLocalHost;
+map<CNetAddr, LocalServiceInfo> mapLocalHost;
static bool vfReachable[NET_MAX] = {};
static bool vfLimited[NET_MAX] = {};
static CNode* pnodeLocalHost = NULL;
diff --git a/src/net.h b/src/net.h
index 6210ed80c1..729b1bcd57 100644
--- a/src/net.h
+++ b/src/net.h
@@ -116,6 +116,13 @@ extern CCriticalSection cs_vAddedNodes;
extern NodeId nLastNodeId;
extern CCriticalSection cs_nLastNodeId;
+struct LocalServiceInfo {
+ int nScore;
+ int nPort;
+};
+
+extern CCriticalSection cs_mapLocalHost;
+extern map<CNetAddr, LocalServiceInfo> mapLocalHost;
class CNodeStats
{
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index c05692efa3..31716ab825 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -595,7 +595,7 @@ int main(int argc, char *argv[])
app.createWindow(isaTestNet);
app.requestInitialize();
#if defined(Q_OS_WIN) && QT_VERSION >= 0x050000
- WinShutdownMonitor::registerShutdownBlockReason(QObject::tr("Bitcoin Core did't yet exit safely..."), (HWND)app.getMainWinId());
+ WinShutdownMonitor::registerShutdownBlockReason(QObject::tr("Bitcoin Core didn't yet exit safely..."), (HWND)app.getMainWinId());
#endif
app.exec();
app.requestShutdown();
diff --git a/src/qt/locale/bitcoin_ach.ts b/src/qt/locale/bitcoin_ach.ts
index 6a13515cda..cfe916093b 100644
--- a/src/qt/locale/bitcoin_ach.ts
+++ b/src/qt/locale/bitcoin_ach.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_af_ZA.ts b/src/qt/locale/bitcoin_af_ZA.ts
index a32d43135d..a1f1abde69 100644
--- a/src/qt/locale/bitcoin_af_ZA.ts
+++ b/src/qt/locale/bitcoin_af_ZA.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Die adres waarheen die betaling gestuur moet word (b.v. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_ar.ts b/src/qt/locale/bitcoin_ar.ts
index 26b9e7d4fc..daf09183c4 100644
--- a/src/qt/locale/bitcoin_ar.ts
+++ b/src/qt/locale/bitcoin_ar.ts
@@ -1343,6 +1343,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>إدخال عنوانBitcoin (مثال :1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2938,6 +2942,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_be_BY.ts b/src/qt/locale/bitcoin_be_BY.ts
index 86766b8c14..f7beb808d1 100644
--- a/src/qt/locale/bitcoin_be_BY.ts
+++ b/src/qt/locale/bitcoin_be_BY.ts
@@ -1344,6 +1344,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Увядзіце Біткойн-адрас (ўзор 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2939,6 +2943,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_bg.ts b/src/qt/locale/bitcoin_bg.ts
index 3e8dd2c186..6b94dc8978 100644
--- a/src/qt/locale/bitcoin_bg.ts
+++ b/src/qt/locale/bitcoin_bg.ts
@@ -96,11 +96,11 @@ This product includes software developed by the OpenSSL Project for use in the O
</message>
<message>
<source>Sending addresses</source>
- <translation type="unfinished"/>
+ <translation>Адреси за изпращане</translation>
</message>
<message>
<source>Receiving addresses</source>
- <translation type="unfinished"/>
+ <translation>Адреси за получаване</translation>
</message>
<message>
<source>These are your Bitcoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
@@ -120,7 +120,7 @@ This product includes software developed by the OpenSSL Project for use in the O
</message>
<message>
<source>Export Address List</source>
- <translation type="unfinished"/>
+ <translation>Изнасяне на списъка с адреси</translation>
</message>
<message>
<source>Comma separated file (*.csv)</source>
@@ -128,7 +128,7 @@ This product includes software developed by the OpenSSL Project for use in the O
</message>
<message>
<source>Exporting Failed</source>
- <translation type="unfinished"/>
+ <translation>Грешка при изнасянето</translation>
</message>
<message>
<source>There was an error trying to save the address list to %1.</source>
@@ -281,11 +281,11 @@ This product includes software developed by the OpenSSL Project for use in the O
</message>
<message>
<source>&amp;Transactions</source>
- <translation>&amp;Транзакции</translation>
+ <translation>&amp;Трансакции</translation>
</message>
<message>
<source>Browse transaction history</source>
- <translation>История на транзакциите</translation>
+ <translation>История на трансакциите</translation>
</message>
<message>
<source>E&amp;xit</source>
@@ -481,23 +481,23 @@ This product includes software developed by the OpenSSL Project for use in the O
</message>
<message numerus="yes">
<source>%n hour(s)</source>
- <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
+ <translation><numerusform>%n час</numerusform><numerusform>%n часа</numerusform></translation>
</message>
<message numerus="yes">
<source>%n day(s)</source>
- <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
+ <translation><numerusform>%n ден</numerusform><numerusform>%n дни</numerusform></translation>
</message>
<message numerus="yes">
<source>%n week(s)</source>
- <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
+ <translation><numerusform>%n седмица</numerusform><numerusform>%n седмици</numerusform></translation>
</message>
<message>
<source>%1 and %2</source>
- <translation type="unfinished"/>
+ <translation>%1 и %2</translation>
</message>
<message numerus="yes">
<source>%n year(s)</source>
- <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
+ <translation><numerusform>%n година</numerusform><numerusform>%n години</numerusform></translation>
</message>
<message>
<source>%1 behind</source>
@@ -533,11 +533,11 @@ This product includes software developed by the OpenSSL Project for use in the O
</message>
<message>
<source>Sent transaction</source>
- <translation>Изходяща транзакция</translation>
+ <translation>Изходяща трансакция</translation>
</message>
<message>
<source>Incoming transaction</source>
- <translation>Входяща транзакция</translation>
+ <translation>Входяща трансакция</translation>
</message>
<message>
<source>Date: %1
@@ -579,7 +579,7 @@ Address: %4
</message>
<message>
<source>Bytes:</source>
- <translation type="unfinished"/>
+ <translation>Байтове:</translation>
</message>
<message>
<source>Amount:</source>
@@ -587,7 +587,7 @@ Address: %4
</message>
<message>
<source>Priority:</source>
- <translation type="unfinished"/>
+ <translation>Приоритет:</translation>
</message>
<message>
<source>Fee:</source>
@@ -639,7 +639,7 @@ Address: %4
</message>
<message>
<source>Priority</source>
- <translation type="unfinished"/>
+ <translation>Приоритет</translation>
</message>
<message>
<source>Copy address</source>
@@ -739,7 +739,7 @@ Address: %4
</message>
<message>
<source>Dust</source>
- <translation type="unfinished"/>
+ <translation>Прах</translation>
</message>
<message>
<source>yes</source>
@@ -857,7 +857,7 @@ Address: %4
<name>FreespaceChecker</name>
<message>
<source>A new data directory will be created.</source>
- <translation type="unfinished"/>
+ <translation>Ще се създаде нова папка за данни.</translation>
</message>
<message>
<source>name</source>
@@ -869,7 +869,7 @@ Address: %4
</message>
<message>
<source>Path already exists, and is not a directory.</source>
- <translation type="unfinished"/>
+ <translation>Пътят вече съществува и не е папка.</translation>
</message>
<message>
<source>Cannot create data directory here.</source>
@@ -1009,7 +1009,7 @@ Address: %4
</message>
<message>
<source>Pay transaction &amp;fee</source>
- <translation>&amp;Такса за изходяща транзакция</translation>
+ <translation>&amp;Такса за изходяща трансакция</translation>
</message>
<message>
<source>Automatically start Bitcoin after logging in to the system.</source>
@@ -1097,7 +1097,7 @@ Address: %4
</message>
<message>
<source>&amp;Port:</source>
- <translation type="unfinished"/>
+ <translation>&amp;Порт:</translation>
</message>
<message>
<source>Port of the proxy (e.g. 9050)</source>
@@ -1153,11 +1153,11 @@ Address: %4
</message>
<message>
<source>Whether to show Bitcoin addresses in the transaction list or not.</source>
- <translation>Ще се показват адресите в списъка с транзакции независимо от наличието на кратко име.</translation>
+ <translation>Ще се показват адресите в списъка с трансакции независимо от наличието на кратко име.</translation>
</message>
<message>
<source>&amp;Display addresses in transaction list</source>
- <translation>Показвай и адресите в списъка с транзакции</translation>
+ <translation>&amp;Адреси в списъка с трансакции</translation>
</message>
<message>
<source>Whether to show coin control features or not.</source>
@@ -1173,7 +1173,7 @@ Address: %4
</message>
<message>
<source>default</source>
- <translation type="unfinished"/>
+ <translation>подразбиране</translation>
</message>
<message>
<source>none</source>
@@ -1216,7 +1216,7 @@ Address: %4
</message>
<message>
<source>Available:</source>
- <translation type="unfinished"/>
+ <translation>Налично:</translation>
</message>
<message>
<source>Your current spendable balance</source>
@@ -1224,7 +1224,7 @@ Address: %4
</message>
<message>
<source>Pending:</source>
- <translation type="unfinished"/>
+ <translation>Изчакващо:</translation>
</message>
<message>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the spendable balance</source>
@@ -1248,7 +1248,7 @@ Address: %4
</message>
<message>
<source>&lt;b&gt;Recent transactions&lt;/b&gt;</source>
- <translation>&lt;b&gt;Последни транзакции&lt;/b&gt;</translation>
+ <translation>&lt;b&gt;Последни трансакции&lt;/b&gt;</translation>
</message>
<message>
<source>out of sync</source>
@@ -1319,7 +1319,7 @@ Address: %4
</message>
<message>
<source>Payment acknowledged</source>
- <translation type="unfinished"/>
+ <translation>Плащането е приета</translation>
</message>
<message>
<source>Network request error</source>
@@ -1345,6 +1345,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Въведете Биткоин адрес (например 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -1591,7 +1595,7 @@ Address: %4
</message>
<message>
<source>Copy message</source>
- <translation type="unfinished"/>
+ <translation>Копиране на съобщението</translation>
</message>
<message>
<source>Copy amount</source>
@@ -1712,7 +1716,7 @@ Address: %4
</message>
<message>
<source>Bytes:</source>
- <translation type="unfinished"/>
+ <translation>Байтове:</translation>
</message>
<message>
<source>Amount:</source>
@@ -1720,7 +1724,7 @@ Address: %4
</message>
<message>
<source>Priority:</source>
- <translation type="unfinished"/>
+ <translation>Приоритет:</translation>
</message>
<message>
<source>Fee:</source>
@@ -1844,7 +1848,7 @@ Address: %4
</message>
<message>
<source>Transaction creation failed!</source>
- <translation type="unfinished"/>
+ <translation>Грешка при създаването на трансакция!</translation>
</message>
<message>
<source>The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
@@ -1864,11 +1868,11 @@ Address: %4
</message>
<message>
<source>Are you sure you want to send?</source>
- <translation type="unfinished"/>
+ <translation>Наистина ли искате да изпратите?</translation>
</message>
<message>
<source>added as transaction fee</source>
- <translation type="unfinished"/>
+ <translation>добавено като такса за трансакция</translation>
</message>
<message>
<source>Payment request expired</source>
@@ -1907,7 +1911,7 @@ Address: %4
</message>
<message>
<source>This is a normal payment.</source>
- <translation type="unfinished"/>
+ <translation>Това е нормално плащане.</translation>
</message>
<message>
<source>Alt+A</source>
@@ -1923,7 +1927,7 @@ Address: %4
</message>
<message>
<source>Remove this entry</source>
- <translation type="unfinished"/>
+ <translation>Премахване на този запис</translation>
</message>
<message>
<source>Message:</source>
@@ -1947,7 +1951,7 @@ Address: %4
</message>
<message>
<source>Pay To:</source>
- <translation type="unfinished"/>
+ <translation>Плащане на:</translation>
</message>
<message>
<source>Memo:</source>
@@ -2238,7 +2242,7 @@ Address: %4
</message>
<message>
<source>Transaction</source>
- <translation>Транзакция</translation>
+ <translation>Трансакция</translation>
</message>
<message>
<source>Inputs</source>
@@ -2273,11 +2277,11 @@ Address: %4
<name>TransactionDescDialog</name>
<message>
<source>Transaction details</source>
- <translation>Транзакция</translation>
+ <translation>Трансакция</translation>
</message>
<message>
<source>This pane shows a detailed description of the transaction</source>
- <translation>Описание на транзакцията</translation>
+ <translation>Описание на трансакцията</translation>
</message>
</context>
<context>
@@ -2328,15 +2332,15 @@ Address: %4
</message>
<message>
<source>Unconfirmed</source>
- <translation type="unfinished"/>
+ <translation>Непотвърдено</translation>
</message>
<message>
<source>Confirming (%1 of %2 recommended confirmations)</source>
- <translation type="unfinished"/>
+ <translation>Потвърждаване (%1 от %2 препоръчвани потвърждения)</translation>
</message>
<message>
<source>Conflicted</source>
- <translation type="unfinished"/>
+ <translation>Конфликтно</translation>
</message>
<message>
<source>Received with</source>
@@ -2364,7 +2368,7 @@ Address: %4
</message>
<message>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
- <translation>Състояние на транзакцията. Задръжте върху това поле за брой потвърждения.</translation>
+ <translation>Състояние на трансакцията. Задръжте върху това поле за брой потвърждения.</translation>
</message>
<message>
<source>Date and time that the transaction was received.</source>
@@ -2372,11 +2376,11 @@ Address: %4
</message>
<message>
<source>Type of transaction.</source>
- <translation>Тип на транзакцията.</translation>
+ <translation>Вид трансакция.</translation>
</message>
<message>
<source>Destination address of transaction.</source>
- <translation>Получател на транзакцията.</translation>
+ <translation>Получател на трансакцията.</translation>
</message>
<message>
<source>Amount removed from or added to balance.</source>
@@ -2463,15 +2467,15 @@ Address: %4
</message>
<message>
<source>Show transaction details</source>
- <translation type="unfinished"/>
+ <translation>Подробности за трансакцията</translation>
</message>
<message>
<source>Export Transaction History</source>
- <translation type="unfinished"/>
+ <translation>Изнасяне историята на трансакциите</translation>
</message>
<message>
<source>Exporting Failed</source>
- <translation type="unfinished"/>
+ <translation>Грешка при изнасянето</translation>
</message>
<message>
<source>There was an error trying to save the transaction history to %1.</source>
@@ -2479,7 +2483,7 @@ Address: %4
</message>
<message>
<source>Exporting Successful</source>
- <translation type="unfinished"/>
+ <translation>Изнасянето е успешна</translation>
</message>
<message>
<source>The transaction history was successfully saved to %1.</source>
@@ -2530,7 +2534,7 @@ Address: %4
<name>WalletFrame</name>
<message>
<source>No wallet has been loaded.</source>
- <translation type="unfinished"/>
+ <translation>Няма зареден портфейл.</translation>
</message>
</context>
<context>
@@ -2773,11 +2777,11 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>(default: 1)</source>
- <translation type="unfinished"/>
+ <translation>(по подразбиране 1)</translation>
</message>
<message>
<source>(default: wallet.dat)</source>
- <translation type="unfinished"/>
+ <translation>(по подразбиране wallet.dat)</translation>
</message>
<message>
<source>&lt;category&gt; can be:</source>
@@ -2813,7 +2817,7 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Connection options:</source>
- <translation type="unfinished"/>
+ <translation>Настройки на връзката:</translation>
</message>
<message>
<source>Corrupted block database detected</source>
@@ -2857,7 +2861,7 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Error: Disk space is low!</source>
- <translation type="unfinished"/>
+ <translation>Грешка: мястото на диска е малко!</translation>
</message>
<message>
<source>Error: Wallet locked, unable to create transaction!</source>
@@ -2865,7 +2869,7 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Error: system error: </source>
- <translation type="unfinished"/>
+ <translation>Грешка: системна грешка:</translation>
</message>
<message>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
@@ -2940,6 +2944,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation>Внасяне...</translation>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
@@ -3161,15 +3169,15 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Transaction amount too small</source>
- <translation type="unfinished"/>
+ <translation>Сумата на трансакцията е твърде малка</translation>
</message>
<message>
<source>Transaction amounts must be positive</source>
- <translation type="unfinished"/>
+ <translation>Сумите на трансакциите трябва да са положителни</translation>
</message>
<message>
<source>Transaction too large</source>
- <translation type="unfinished"/>
+ <translation>Трансакцията е твърде голяма</translation>
</message>
<message>
<source>Use UPnP to map the listening port (default: 0)</source>
@@ -3233,7 +3241,7 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Rescan the block chain for missing wallet transactions</source>
- <translation>Повторно сканиране на блок-връзка за липсващи портефейлни транзакции</translation>
+ <translation>Повторно сканиране на блок-връзка за липсващи портфейлни трансакции</translation>
</message>
<message>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
diff --git a/src/qt/locale/bitcoin_bs.ts b/src/qt/locale/bitcoin_bs.ts
index eb9a09622e..01c37b0278 100644
--- a/src/qt/locale/bitcoin_bs.ts
+++ b/src/qt/locale/bitcoin_bs.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_ca.ts b/src/qt/locale/bitcoin_ca.ts
index 7e36a3d4ba..592cb337d5 100644
--- a/src/qt/locale/bitcoin_ca.ts
+++ b/src/qt/locale/bitcoin_ca.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_ca@valencia.ts b/src/qt/locale/bitcoin_ca@valencia.ts
index e7215e148b..053cc82ebb 100644
--- a/src/qt/locale/bitcoin_ca@valencia.ts
+++ b/src/qt/locale/bitcoin_ca@valencia.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_ca_ES.ts b/src/qt/locale/bitcoin_ca_ES.ts
index dc86141d3f..f01e48a435 100644
--- a/src/qt/locale/bitcoin_ca_ES.ts
+++ b/src/qt/locale/bitcoin_ca_ES.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Introdueixi una adreça de Bitcoin (per exemple 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_cmn.ts b/src/qt/locale/bitcoin_cmn.ts
index ea6c88c880..402ce7cb10 100644
--- a/src/qt/locale/bitcoin_cmn.ts
+++ b/src/qt/locale/bitcoin_cmn.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_cs.ts b/src/qt/locale/bitcoin_cs.ts
index 36124f90a6..f77e7f34db 100644
--- a/src/qt/locale/bitcoin_cs.ts
+++ b/src/qt/locale/bitcoin_cs.ts
@@ -3,11 +3,11 @@
<name>AboutDialog</name>
<message>
<source>About Bitcoin Core</source>
- <translation type="unfinished"/>
+ <translation>O Bitcoin Core</translation>
</message>
<message>
<source>&lt;b&gt;Bitcoin Core&lt;/b&gt; version</source>
- <translation type="unfinished"/>
+ <translation>&lt;b&gt;Bitcoin Core&lt;/b&gt; verze</translation>
</message>
<message>
<source>
@@ -29,11 +29,11 @@ Tento produkt zahrnuje programy vyvinuté OpenSSL Projektem pro použití v Open
</message>
<message>
<source>The Bitcoin Core developers</source>
- <translation type="unfinished"/>
+ <translation>Vývojáři Bitcoin Core</translation>
</message>
<message>
<source>(%1-bit)</source>
- <translation type="unfinished"/>
+ <translation>(%1-bit)</translation>
</message>
</context>
<context>
@@ -48,7 +48,7 @@ Tento produkt zahrnuje programy vyvinuté OpenSSL Projektem pro použití v Open
</message>
<message>
<source>&amp;New</source>
- <translation type="unfinished"/>
+ <translation>&amp;Nová</translation>
</message>
<message>
<source>Copy the currently selected address to the system clipboard</source>
@@ -56,11 +56,11 @@ Tento produkt zahrnuje programy vyvinuté OpenSSL Projektem pro použití v Open
</message>
<message>
<source>&amp;Copy</source>
- <translation type="unfinished"/>
+ <translation>&amp;Kopíruj</translation>
</message>
<message>
<source>C&amp;lose</source>
- <translation type="unfinished"/>
+ <translation>&amp;Zavřít</translation>
</message>
<message>
<source>&amp;Copy Address</source>
@@ -84,23 +84,23 @@ Tento produkt zahrnuje programy vyvinuté OpenSSL Projektem pro použití v Open
</message>
<message>
<source>Choose the address to send coins to</source>
- <translation type="unfinished"/>
+ <translation>Zvol adresu, na kterou pošleš mince</translation>
</message>
<message>
<source>Choose the address to receive coins with</source>
- <translation type="unfinished"/>
+ <translation>Zvol adres na příjem mincí</translation>
</message>
<message>
<source>C&amp;hoose</source>
- <translation type="unfinished"/>
+ <translation>&amp;Zvol</translation>
</message>
<message>
<source>Sending addresses</source>
- <translation type="unfinished"/>
+ <translation>Odesílací adresy</translation>
</message>
<message>
<source>Receiving addresses</source>
- <translation type="unfinished"/>
+ <translation>Přijímací adresy</translation>
</message>
<message>
<source>These are your Bitcoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
@@ -108,7 +108,7 @@ Tento produkt zahrnuje programy vyvinuté OpenSSL Projektem pro použití v Open
</message>
<message>
<source>These are your Bitcoin addresses for receiving payments. It is recommended to use a new receiving address for each transaction.</source>
- <translation type="unfinished"/>
+ <translation>Tohle jsou tvé Bitcoinové adresy pro příjem plateb. Je doporučené používat pokaždé novou adresu pro každou transakci.</translation>
</message>
<message>
<source>Copy &amp;Label</source>
@@ -120,7 +120,7 @@ Tento produkt zahrnuje programy vyvinuté OpenSSL Projektem pro použití v Open
</message>
<message>
<source>Export Address List</source>
- <translation type="unfinished"/>
+ <translation>Exportuj seznam adres</translation>
</message>
<message>
<source>Comma separated file (*.csv)</source>
@@ -128,11 +128,11 @@ Tento produkt zahrnuje programy vyvinuté OpenSSL Projektem pro použití v Open
</message>
<message>
<source>Exporting Failed</source>
- <translation type="unfinished"/>
+ <translation>Exportování selhalo</translation>
</message>
<message>
<source>There was an error trying to save the address list to %1.</source>
- <translation type="unfinished"/>
+ <translation>Při ukládání seznamu adres do %1 se přihodila nějaká chyba.</translation>
</message>
</context>
<context>
@@ -206,7 +206,7 @@ Tento produkt zahrnuje programy vyvinuté OpenSSL Projektem pro použití v Open
</message>
<message>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR BITCOINS&lt;/b&gt;!</source>
- <translation>Varování: Pokud si zašifruješ peněženku a ztratíš či zapomeneš heslo, &lt;b&gt;PŘIJDEŠ O VŠECHNY BITCOINY&lt;/b&gt;!</translation>
+ <translation>Upozornění: Pokud si zašifruješ peněženku a ztratíš či zapomeneš heslo, &lt;b&gt;PŘIJDEŠ O VŠECHNY BITCOINY&lt;/b&gt;!</translation>
</message>
<message>
<source>Are you sure you wish to encrypt your wallet?</source>
@@ -273,7 +273,7 @@ Tento produkt zahrnuje programy vyvinuté OpenSSL Projektem pro použití v Open
</message>
<message>
<source>Node</source>
- <translation type="unfinished"/>
+ <translation>Uzel</translation>
</message>
<message>
<source>Show general overview of wallet</source>
@@ -325,11 +325,11 @@ Tento produkt zahrnuje programy vyvinuté OpenSSL Projektem pro použití v Open
</message>
<message>
<source>&amp;Sending addresses...</source>
- <translation type="unfinished"/>
+ <translation>Od&amp;esílací adresy...</translation>
</message>
<message>
<source>&amp;Receiving addresses...</source>
- <translation type="unfinished"/>
+ <translation>Př&amp;ijímací adresy...</translation>
</message>
<message>
<source>Open &amp;URI...</source>
@@ -429,7 +429,7 @@ Tento produkt zahrnuje programy vyvinuté OpenSSL Projektem pro použití v Open
</message>
<message>
<source>Bitcoin Core</source>
- <translation>Jádro Bitcoinu</translation>
+ <translation>Bitcoin Core</translation>
</message>
<message>
<source>Request payments (generates QR codes and bitcoin: URIs)</source>
@@ -437,7 +437,7 @@ Tento produkt zahrnuje programy vyvinuté OpenSSL Projektem pro použití v Open
</message>
<message>
<source>&amp;About Bitcoin Core</source>
- <translation type="unfinished"/>
+ <translation>O &amp;Bitcoin Core</translation>
</message>
<message>
<source>Show the list of used sending addresses and labels</source>
@@ -453,11 +453,11 @@ Tento produkt zahrnuje programy vyvinuté OpenSSL Projektem pro použití v Open
</message>
<message>
<source>&amp;Command-line options</source>
- <translation type="unfinished"/>
+ <translation>Ar&amp;gumenty z příkazové řádky</translation>
</message>
<message>
<source>Show the Bitcoin Core help message to get a list with possible Bitcoin command-line options</source>
- <translation type="unfinished"/>
+ <translation>Seznam argumentů Bitcoinu pro příkazovou řádku získáš v nápovědě Bitcoinu Core.</translation>
</message>
<message>
<source>Bitcoin client</source>
@@ -493,7 +493,7 @@ Tento produkt zahrnuje programy vyvinuté OpenSSL Projektem pro použití v Open
</message>
<message>
<source>%1 and %2</source>
- <translation type="unfinished"/>
+ <translation>%1 a %2</translation>
</message>
<message numerus="yes">
<source>%n year(s)</source>
@@ -583,7 +583,7 @@ Adresa: %4
</message>
<message>
<source>Bytes:</source>
- <translation type="unfinished"/>
+ <translation>Bajtů:</translation>
</message>
<message>
<source>Amount:</source>
@@ -591,11 +591,11 @@ Adresa: %4
</message>
<message>
<source>Priority:</source>
- <translation type="unfinished"/>
+ <translation>Priorita:</translation>
</message>
<message>
<source>Fee:</source>
- <translation type="unfinished"/>
+ <translation>Poplatek:</translation>
</message>
<message>
<source>Low Output:</source>
@@ -607,7 +607,7 @@ Adresa: %4
</message>
<message>
<source>Change:</source>
- <translation type="unfinished"/>
+ <translation>Drobné:</translation>
</message>
<message>
<source>(un)select all</source>
@@ -635,7 +635,7 @@ Adresa: %4
</message>
<message>
<source>Confirmations</source>
- <translation type="unfinished"/>
+ <translation>Potvrzení</translation>
</message>
<message>
<source>Confirmed</source>
@@ -643,15 +643,15 @@ Adresa: %4
</message>
<message>
<source>Priority</source>
- <translation type="unfinished"/>
+ <translation>Priorita</translation>
</message>
<message>
<source>Copy address</source>
- <translation>Kopírovat sdresu</translation>
+ <translation>Kopíruj adresu</translation>
</message>
<message>
<source>Copy label</source>
- <translation>Kopírovat popis</translation>
+ <translation>Kopíruj její označení</translation>
</message>
<message>
<source>Copy amount</source>
@@ -675,7 +675,7 @@ Adresa: %4
</message>
<message>
<source>Copy fee</source>
- <translation type="unfinished"/>
+ <translation>Kopíruj poplatek</translation>
</message>
<message>
<source>Copy after fee</source>
@@ -683,11 +683,11 @@ Adresa: %4
</message>
<message>
<source>Copy bytes</source>
- <translation type="unfinished"/>
+ <translation>Kopíruj bajty</translation>
</message>
<message>
<source>Copy priority</source>
- <translation type="unfinished"/>
+ <translation>Kopíruj prioritu</translation>
</message>
<message>
<source>Copy low output</source>
@@ -695,7 +695,7 @@ Adresa: %4
</message>
<message>
<source>Copy change</source>
- <translation type="unfinished"/>
+ <translation>Kopíruj drobné</translation>
</message>
<message>
<source>highest</source>
@@ -791,7 +791,7 @@ Adresa: %4
</message>
<message>
<source>(no label)</source>
- <translation>(bez popisu)</translation>
+ <translation>(bez označení)</translation>
</message>
<message>
<source>change from %1 (%2)</source>
@@ -799,7 +799,7 @@ Adresa: %4
</message>
<message>
<source>(change)</source>
- <translation type="unfinished"/>
+ <translation>(drobné)</translation>
</message>
</context>
<context>
@@ -814,11 +814,11 @@ Adresa: %4
</message>
<message>
<source>The label associated with this address list entry</source>
- <translation type="unfinished"/>
+ <translation>Označení spojené s tímto záznamem v seznamu adres</translation>
</message>
<message>
<source>The address associated with this address list entry. This can only be modified for sending addresses.</source>
- <translation type="unfinished"/>
+ <translation>Adresa spojená s tímto záznamem v seznamu adres. Lze upravovat jen pro odesílací adresy.</translation>
</message>
<message>
<source>&amp;Address</source>
@@ -888,7 +888,7 @@ Adresa: %4
</message>
<message>
<source>Bitcoin Core</source>
- <translation>Jádro Bitcoinu</translation>
+ <translation>Bitcoin Core</translation>
</message>
<message>
<source>version</source>
@@ -935,15 +935,15 @@ Adresa: %4
</message>
<message>
<source>Welcome to Bitcoin Core.</source>
- <translation type="unfinished"/>
+ <translation>Vítej v Bitcoin Core.</translation>
</message>
<message>
<source>As this is the first time the program is launched, you can choose where Bitcoin Core will store its data.</source>
- <translation type="unfinished"/>
+ <translation>Tohle je poprvé, co spouštíš Bitcoin Core, takže si můžeš zvolit, kam bude ukládat svá data.</translation>
</message>
<message>
<source>Bitcoin Core will download and store a copy of the Bitcoin block chain. At least %1GB of data will be stored in this directory, and it will grow over time. The wallet will also be stored in this directory.</source>
- <translation type="unfinished"/>
+ <translation>Bitcoin Core bude stahovat kopii řetězce bloků. Proto bude potřeba do tohoto adresáře uložit nejméně %1 GB dat – toto číslo bude navíc v průběhu času pomalu růst. Tvá peněženka bude rovněž uložena v tomto adresáři.</translation>
</message>
<message>
<source>Use the default data directory</source>
@@ -978,23 +978,23 @@ Adresa: %4
<name>OpenURIDialog</name>
<message>
<source>Open URI</source>
- <translation type="unfinished"/>
+ <translation>Načíst URI</translation>
</message>
<message>
<source>Open payment request from URI or file</source>
- <translation type="unfinished"/>
+ <translation>Načíst platební požadavek z URI nebo ze souboru</translation>
</message>
<message>
<source>URI:</source>
- <translation type="unfinished"/>
+ <translation>URI:</translation>
</message>
<message>
<source>Select payment request file</source>
- <translation type="unfinished"/>
+ <translation>Vyber soubor platebního požadavku</translation>
</message>
<message>
<source>Select payment request file to open</source>
- <translation type="unfinished"/>
+ <translation>Vyber soubor platebního požadavku k načtení</translation>
</message>
</context>
<context>
@@ -1025,27 +1025,27 @@ Adresa: %4
</message>
<message>
<source>Size of &amp;database cache</source>
- <translation type="unfinished"/>
+ <translation>Velikost &amp;databázové cache</translation>
</message>
<message>
<source>MB</source>
- <translation type="unfinished"/>
+ <translation>MB</translation>
</message>
<message>
<source>Number of script &amp;verification threads</source>
- <translation type="unfinished"/>
+ <translation>Počet vláken pro &amp;verifikaci skriptů</translation>
</message>
<message>
<source>Connect to the Bitcoin network through a SOCKS proxy.</source>
- <translation type="unfinished"/>
+ <translation>Připojí se do Bitcoinové sítě přes SOCKS proxy.</translation>
</message>
<message>
<source>&amp;Connect through SOCKS proxy (default proxy):</source>
- <translation type="unfinished"/>
+ <translation>&amp;Připojit přes SOCKS proxy (výchozí proxy):</translation>
</message>
<message>
<source>IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)</source>
- <translation type="unfinished"/>
+ <translation>IP adresa proxy (např. IPv4: 127.0.0.1/IPv6: ::1)</translation>
</message>
<message>
<source>Active command-line options that override above options:</source>
@@ -1065,15 +1065,15 @@ Adresa: %4
</message>
<message>
<source>(0 = auto, &lt;0 = leave that many cores free)</source>
- <translation type="unfinished"/>
+ <translation>(0 = automaticky, &lt;0 = nechat daný počet jader volný, výchozí: 0)</translation>
</message>
<message>
<source>W&amp;allet</source>
- <translation type="unfinished"/>
+ <translation>P&amp;eněženka</translation>
</message>
<message>
<source>Expert</source>
- <translation type="unfinished"/>
+ <translation>Odborník</translation>
</message>
<message>
<source>Enable coin &amp;control features</source>
@@ -1193,11 +1193,11 @@ Adresa: %4
</message>
<message>
<source>Client will be shutdown, do you want to proceed?</source>
- <translation type="unfinished"/>
+ <translation>Klient se vypne, chceš pokračovat?</translation>
</message>
<message>
<source>This change would require a client restart.</source>
- <translation type="unfinished"/>
+ <translation>Tahle změna bude chtít restartovat klienta.</translation>
</message>
<message>
<source>The supplied proxy address is invalid.</source>
@@ -1220,7 +1220,7 @@ Adresa: %4
</message>
<message>
<source>Available:</source>
- <translation type="unfinished"/>
+ <translation>K dispozici:</translation>
</message>
<message>
<source>Your current spendable balance</source>
@@ -1228,7 +1228,7 @@ Adresa: %4
</message>
<message>
<source>Pending:</source>
- <translation type="unfinished"/>
+ <translation>Očekáváno:</translation>
</message>
<message>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the spendable balance</source>
@@ -1271,11 +1271,11 @@ Adresa: %4
</message>
<message>
<source>Requested payment amount of %1 is too small (considered dust).</source>
- <translation>Požadovaná platební částka ve výši %1 je příliš malá (požadovaná za prach).</translation>
+ <translation>Požadovaná platební částka %1 je příliš malá (je považována za prach).</translation>
</message>
<message>
<source>Payment request error</source>
- <translation type="unfinished"/>
+ <translation>Chyba platebního požadavku</translation>
</message>
<message>
<source>Cannot start bitcoin: click-to-pay handler</source>
@@ -1283,11 +1283,11 @@ Adresa: %4
</message>
<message>
<source>Net manager warning</source>
- <translation type="unfinished"/>
+ <translation>Upozornění správce sítě</translation>
</message>
<message>
<source>Your active proxy doesn&apos;t support SOCKS5, which is required for payment requests via proxy.</source>
- <translation type="unfinished"/>
+ <translation>Tvá aktivní proxy nepodporuje SOCKS5, které je vyžadováno pro platební požadavky skrz proxy.</translation>
</message>
<message>
<source>Payment request fetch URL is invalid: %1</source>
@@ -1295,11 +1295,11 @@ Adresa: %4
</message>
<message>
<source>Payment request file handling</source>
- <translation type="unfinished"/>
+ <translation>Zpracování souboru platebního požadavku</translation>
</message>
<message>
<source>Payment request file can not be read or processed! This can be caused by an invalid payment request file.</source>
- <translation type="unfinished"/>
+ <translation>Soubor platebního požadavku nejde přečíst nebo zpracovat! Příčinou může být špatný soubor platebního požadavku.</translation>
</message>
<message>
<source>Unverified payment requests to custom payment scripts are unsupported.</source>
@@ -1311,15 +1311,15 @@ Adresa: %4
</message>
<message>
<source>Error communicating with %1: %2</source>
- <translation>Chyba komunikující s %1: %2</translation>
+ <translation>Chyba při komunikaci s %1: %2</translation>
</message>
<message>
<source>Payment request can not be parsed or processed!</source>
- <translation type="unfinished"/>
+ <translation>Platebního požadavku nejde přečíst nebo zpracovat!</translation>
</message>
<message>
<source>Bad response from server %1</source>
- <translation>Špatná reakce serveru %1</translation>
+ <translation>Chybná odpověď ze serveru %1</translation>
</message>
<message>
<source>Payment acknowledged</source>
@@ -1327,7 +1327,7 @@ Adresa: %4
</message>
<message>
<source>Network request error</source>
- <translation type="unfinished"/>
+ <translation>Chyba síťového požadavku</translation>
</message>
</context>
<context>
@@ -1342,11 +1342,15 @@ Adresa: %4
</message>
<message>
<source>Error: Cannot parse configuration file: %1. Only use key=value syntax.</source>
- <translation type="unfinished"/>
+ <translation>Chyba: Nemohu zpracovat konfigurační soubor: %1. Používej pouze syntaxi klíč=hodnota.</translation>
</message>
<message>
<source>Error: Invalid combination of -regtest and -testnet.</source>
- <translation type="unfinished"/>
+ <translation>Chyba: Neplatná kombinace -regtest a -testnet.</translation>
+ </message>
+ <message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation>Bitcoin Core ještě bezpečně neskončil...</translation>
</message>
<message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
@@ -1357,11 +1361,11 @@ Adresa: %4
<name>QRImageWidget</name>
<message>
<source>&amp;Save Image...</source>
- <translation>&amp;Ulož Obrázek...</translation>
+ <translation>&amp;Ulož obrázek...</translation>
</message>
<message>
<source>&amp;Copy Image</source>
- <translation>&amp;Kopíruj Obraz</translation>
+ <translation>&amp;Kopíruj obrázek</translation>
</message>
<message>
<source>Save QR Code</source>
@@ -1369,7 +1373,7 @@ Adresa: %4
</message>
<message>
<source>PNG Image (*.png)</source>
- <translation type="unfinished"/>
+ <translation>PNG obrázek (*.png)</translation>
</message>
</context>
<context>
@@ -1392,11 +1396,11 @@ Adresa: %4
</message>
<message>
<source>Debug window</source>
- <translation type="unfinished"/>
+ <translation>Ladicí okno</translation>
</message>
<message>
<source>General</source>
- <translation type="unfinished"/>
+ <translation>Obecné</translation>
</message>
<message>
<source>Using OpenSSL version</source>
@@ -1412,7 +1416,7 @@ Adresa: %4
</message>
<message>
<source>Name</source>
- <translation type="unfinished"/>
+ <translation>Název</translation>
</message>
<message>
<source>Number of connections</source>
@@ -1444,23 +1448,23 @@ Adresa: %4
</message>
<message>
<source>&amp;Network Traffic</source>
- <translation>&amp;Provoz na síti</translation>
+ <translation>&amp;Síťový provoz</translation>
</message>
<message>
<source>&amp;Clear</source>
- <translation type="unfinished"/>
+ <translation>&amp;Vyčistit</translation>
</message>
<message>
<source>Totals</source>
- <translation type="unfinished"/>
+ <translation>Sumy</translation>
</message>
<message>
<source>In:</source>
- <translation type="unfinished"/>
+ <translation>Sem:</translation>
</message>
<message>
<source>Out:</source>
- <translation type="unfinished"/>
+ <translation>Ven:</translation>
</message>
<message>
<source>Build date</source>
@@ -1492,46 +1496,46 @@ Adresa: %4
</message>
<message>
<source>%1 B</source>
- <translation type="unfinished"/>
+ <translation>%1 B</translation>
</message>
<message>
<source>%1 KB</source>
- <translation type="unfinished"/>
+ <translation>%1 kB</translation>
</message>
<message>
<source>%1 MB</source>
- <translation type="unfinished"/>
+ <translation>%1 MB</translation>
</message>
<message>
<source>%1 GB</source>
- <translation type="unfinished"/>
+ <translation>%1 GB</translation>
</message>
<message>
<source>%1 m</source>
- <translation type="unfinished"/>
+ <translation>%1 m</translation>
</message>
<message>
<source>%1 h</source>
- <translation type="unfinished"/>
+ <translation>%1 h</translation>
</message>
<message>
<source>%1 h %2 m</source>
- <translation type="unfinished"/>
+ <translation>%1 h %2 m</translation>
</message>
</context>
<context>
<name>ReceiveCoinsDialog</name>
<message>
<source>&amp;Amount:</source>
- <translation type="unfinished"/>
+ <translation>Čás&amp;tka:</translation>
</message>
<message>
<source>&amp;Label:</source>
- <translation>O&amp;značení:</translation>
+ <translation>&amp;Označení:</translation>
</message>
<message>
<source>&amp;Message:</source>
- <translation type="unfinished"/>
+ <translation>&amp;Zpráva:</translation>
</message>
<message>
<source>Reuse one of the previously used receiving addresses. Reusing addresses has security and privacy issues. Do not use this unless re-generating a payment request made before.</source>
@@ -1571,7 +1575,7 @@ Adresa: %4
</message>
<message>
<source>&amp;Request payment</source>
- <translation type="unfinished"/>
+ <translation>&amp;Vyžádat platbu</translation>
</message>
<message>
<source>Show the selected request (does the same as double clicking an entry)</source>
@@ -1591,11 +1595,11 @@ Adresa: %4
</message>
<message>
<source>Copy label</source>
- <translation>Kopírovat popis</translation>
+ <translation>Kopíruj její označení</translation>
</message>
<message>
<source>Copy message</source>
- <translation type="unfinished"/>
+ <translation>Kopíruj zprávu</translation>
</message>
<message>
<source>Copy amount</source>
@@ -1606,7 +1610,7 @@ Adresa: %4
<name>ReceiveRequestDialog</name>
<message>
<source>QR Code</source>
- <translation type="unfinished"/>
+ <translation>QR kód</translation>
</message>
<message>
<source>Copy &amp;URI</source>
@@ -1630,7 +1634,7 @@ Adresa: %4
</message>
<message>
<source>URI</source>
- <translation type="unfinished"/>
+ <translation>URI</translation>
</message>
<message>
<source>Address</source>
@@ -1642,7 +1646,7 @@ Adresa: %4
</message>
<message>
<source>Label</source>
- <translation>Popis</translation>
+ <translation>Označení</translation>
</message>
<message>
<source>Message</source>
@@ -1650,7 +1654,7 @@ Adresa: %4
</message>
<message>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
- <translation>Výsledná URI je příliš dlouhá, zkus zkrátit text označení / zprávy.</translation>
+ <translation>Výsledná URI je příliš dlouhá, zkus zkrátit text označení/zprávy.</translation>
</message>
<message>
<source>Error encoding URI into QR Code.</source>
@@ -1665,7 +1669,7 @@ Adresa: %4
</message>
<message>
<source>Label</source>
- <translation>Popis</translation>
+ <translation>Označení</translation>
</message>
<message>
<source>Message</source>
@@ -1677,15 +1681,15 @@ Adresa: %4
</message>
<message>
<source>(no label)</source>
- <translation>(bez popisu)</translation>
+ <translation>(bez označení)</translation>
</message>
<message>
<source>(no message)</source>
- <translation type="unfinished"/>
+ <translation>(bez zprávy)</translation>
</message>
<message>
<source>(no amount)</source>
- <translation type="unfinished"/>
+ <translation>(bez částky)</translation>
</message>
</context>
<context>
@@ -1716,7 +1720,7 @@ Adresa: %4
</message>
<message>
<source>Bytes:</source>
- <translation type="unfinished"/>
+ <translation>Bajtů:</translation>
</message>
<message>
<source>Amount:</source>
@@ -1724,11 +1728,11 @@ Adresa: %4
</message>
<message>
<source>Priority:</source>
- <translation type="unfinished"/>
+ <translation>Priorita:</translation>
</message>
<message>
<source>Fee:</source>
- <translation type="unfinished"/>
+ <translation>Poplatek:</translation>
</message>
<message>
<source>Low Output:</source>
@@ -1740,7 +1744,7 @@ Adresa: %4
</message>
<message>
<source>Change:</source>
- <translation type="unfinished"/>
+ <translation>Drobné:</translation>
</message>
<message>
<source>If this is activated, but the change address is empty or invalid, change will be sent to a newly generated address.</source>
@@ -1748,7 +1752,7 @@ Adresa: %4
</message>
<message>
<source>Custom change address</source>
- <translation type="unfinished"/>
+ <translation>Vlastní adresa pro drobné</translation>
</message>
<message>
<source>Send to multiple recipients at once</source>
@@ -1796,7 +1800,7 @@ Adresa: %4
</message>
<message>
<source>Copy fee</source>
- <translation type="unfinished"/>
+ <translation>Kopíruj poplatek</translation>
</message>
<message>
<source>Copy after fee</source>
@@ -1804,11 +1808,11 @@ Adresa: %4
</message>
<message>
<source>Copy bytes</source>
- <translation type="unfinished"/>
+ <translation>Kopíruj bajty</translation>
</message>
<message>
<source>Copy priority</source>
- <translation type="unfinished"/>
+ <translation>Kopíruj prioritu</translation>
</message>
<message>
<source>Copy low output</source>
@@ -1816,7 +1820,7 @@ Adresa: %4
</message>
<message>
<source>Copy change</source>
- <translation type="unfinished"/>
+ <translation>Kopíruj drobné</translation>
</message>
<message>
<source>Total Amount %1 (= %2)</source>
@@ -1824,7 +1828,7 @@ Adresa: %4
</message>
<message>
<source>or</source>
- <translation type="unfinished"/>
+ <translation>nebo</translation>
</message>
<message>
<source>The recipient address is not valid, please recheck.</source>
@@ -1848,23 +1852,23 @@ Adresa: %4
</message>
<message>
<source>Transaction creation failed!</source>
- <translation type="unfinished"/>
+ <translation>Vytvoření transakce selhalo!</translation>
</message>
<message>
<source>The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
- <translation type="unfinished"/>
+ <translation>Transakce byla odmítnuta! Tohle může nastat, pokud nějaké mince z tvé peněženky už jednou byly utraceny, například pokud používáš kopii souboru wallet.dat a mince byly utraceny v druhé kopii, ale nebyly označeny jako utracené v této.</translation>
</message>
<message>
<source>Warning: Invalid Bitcoin address</source>
- <translation type="unfinished"/>
+ <translation>Upozornění: Neplatná Bitcoinová adresa</translation>
</message>
<message>
<source>(no label)</source>
- <translation>(bez popisu)</translation>
+ <translation>(bez označení)</translation>
</message>
<message>
<source>Warning: Unknown change address</source>
- <translation type="unfinished"/>
+ <translation>Upozornění: Neznámá adresa pro drobné</translation>
</message>
<message>
<source>Are you sure you want to send?</source>
@@ -1880,7 +1884,7 @@ Adresa: %4
</message>
<message>
<source>Invalid payment address %1</source>
- <translation type="unfinished"/>
+ <translation>Neplatná platební adresa %1</translation>
</message>
</context>
<context>
@@ -1911,7 +1915,7 @@ Adresa: %4
</message>
<message>
<source>This is a normal payment.</source>
- <translation type="unfinished"/>
+ <translation>Tohle je normální platba.</translation>
</message>
<message>
<source>Alt+A</source>
@@ -1927,7 +1931,7 @@ Adresa: %4
</message>
<message>
<source>Remove this entry</source>
- <translation type="unfinished"/>
+ <translation>Smaž tento záznam</translation>
</message>
<message>
<source>Message:</source>
@@ -1955,18 +1959,18 @@ Adresa: %4
</message>
<message>
<source>Memo:</source>
- <translation type="unfinished"/>
+ <translation>Poznámka:</translation>
</message>
</context>
<context>
<name>ShutdownWindow</name>
<message>
<source>Bitcoin Core is shutting down...</source>
- <translation type="unfinished"/>
+ <translation>Bitcoin Core se ukončuje...</translation>
</message>
<message>
<source>Do not shut down the computer until this window disappears.</source>
- <translation type="unfinished"/>
+ <translation>Nevypínej počítač, dokud toto okno nezmizí.</translation>
</message>
</context>
<context>
@@ -2116,11 +2120,11 @@ Adresa: %4
<name>SplashScreen</name>
<message>
<source>Bitcoin Core</source>
- <translation>Jádro Bitcoinu</translation>
+ <translation>Bitcoin Core</translation>
</message>
<message>
<source>The Bitcoin Core developers</source>
- <translation type="unfinished"/>
+ <translation>Vývojáři Bitcoin Core</translation>
</message>
<message>
<source>[testnet]</source>
@@ -2131,7 +2135,7 @@ Adresa: %4
<name>TrafficGraphWidget</name>
<message>
<source>KB/s</source>
- <translation type="unfinished"/>
+ <translation>kB/s</translation>
</message>
</context>
<context>
@@ -2142,7 +2146,7 @@ Adresa: %4
</message>
<message>
<source>conflicted</source>
- <translation type="unfinished"/>
+ <translation>kolidující</translation>
</message>
<message>
<source>%1/offline</source>
@@ -2230,11 +2234,11 @@ Adresa: %4
</message>
<message>
<source>Merchant</source>
- <translation type="unfinished"/>
+ <translation>Obchodník</translation>
</message>
<message>
<source>Generated coins must mature %1 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
- <translation type="unfinished"/>
+ <translation>Vygenerované mince musí čekat %1 bloků, než mohou být utraceny. Když jsi vygeneroval tenhle blok, tak byl rozposlán do sítě, aby byl přidán do řetězce bloků. Pokud se mu nepodaří dostat se do řetězce, změní se na &quot;neakceptovaný&quot; a nepůjde utratit. To se občas může stát, pokud jiný uzel vygeneruje blok zhruba ve stejném okamžiku jako ty.</translation>
</message>
<message>
<source>Debug information</source>
@@ -2304,7 +2308,7 @@ Adresa: %4
</message>
<message>
<source>Immature (%1 confirmations, will be available after %2)</source>
- <translation type="unfinished"/>
+ <translation>Nedozráno (%1 potvrzení, bude k dispozici za %2)</translation>
</message>
<message numerus="yes">
<source>Open for %n more block(s)</source>
@@ -2328,19 +2332,19 @@ Adresa: %4
</message>
<message>
<source>Offline</source>
- <translation type="unfinished"/>
+ <translation>Offline</translation>
</message>
<message>
<source>Unconfirmed</source>
- <translation type="unfinished"/>
+ <translation>Nepotvrzeno</translation>
</message>
<message>
<source>Confirming (%1 of %2 recommended confirmations)</source>
- <translation type="unfinished"/>
+ <translation>Potvrzuje se (%1 z %2 doporučených potvrzení)</translation>
</message>
<message>
<source>Conflicted</source>
- <translation type="unfinished"/>
+ <translation>V kolizi</translation>
</message>
<message>
<source>Received with</source>
@@ -2471,23 +2475,23 @@ Adresa: %4
</message>
<message>
<source>Export Transaction History</source>
- <translation type="unfinished"/>
+ <translation>Exportuj transakční historii</translation>
</message>
<message>
<source>Exporting Failed</source>
- <translation type="unfinished"/>
+ <translation>Exportování selhalo</translation>
</message>
<message>
<source>There was an error trying to save the transaction history to %1.</source>
- <translation type="unfinished"/>
+ <translation>Při ukládání transakční historie do %1 se přihodila nějaká chyba.</translation>
</message>
<message>
<source>Exporting Successful</source>
- <translation type="unfinished"/>
+ <translation>Úspěšně vyexportováno</translation>
</message>
<message>
<source>The transaction history was successfully saved to %1.</source>
- <translation type="unfinished"/>
+ <translation>Transakční historie byla v pořádku uložena do %1.</translation>
</message>
<message>
<source>Comma separated file (*.csv)</source>
@@ -2534,7 +2538,7 @@ Adresa: %4
<name>WalletFrame</name>
<message>
<source>No wallet has been loaded.</source>
- <translation type="unfinished"/>
+ <translation>Žádná peněženka se nenačetla.</translation>
</message>
</context>
<context>
@@ -2568,11 +2572,11 @@ Adresa: %4
</message>
<message>
<source>There was an error trying to save the wallet data to %1.</source>
- <translation type="unfinished"/>
+ <translation>Při ukládání peněženky do %1 se přihodila nějaká chyba.</translation>
</message>
<message>
<source>The wallet data was successfully saved to %1.</source>
- <translation type="unfinished"/>
+ <translation>Data z peněženky byla v pořádku uložena do %1.</translation>
</message>
<message>
<source>Backup Successful</source>
@@ -2647,7 +2651,7 @@ Adresa: %4
</message>
<message>
<source>Bitcoin Core RPC client version</source>
- <translation type="unfinished"/>
+ <translation>Verze Bitcoin Core RPC klienta</translation>
</message>
<message>
<source>Run in the background as a daemon and accept commands</source>
@@ -2687,7 +2691,7 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Acceptable ciphers (default: TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH)</source>
- <translation type="unfinished"/>
+ <translation>Akceptovatelné šifry (výchozí: TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH)</translation>
</message>
<message>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
@@ -2703,11 +2707,11 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly. This is intended for regression testing tools and app development.</source>
- <translation>Přepnout do módu testování regresí, který používá speciální řetěz, ve kterém jsou mohou být bloky okamžitě vyřešeny. Je to určeno pro nástroje pro regresní testování a vyvíjení aplikací.</translation>
+ <translation>Přepnout do módu testování regresí, který používá speciální řetězec, ve kterém jsou mohou být bloky okamžitě vyřešeny. Je to určeno pro nástroje pro regresní testování a vyvíjení aplikací.</translation>
</message>
<message>
<source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly.</source>
- <translation type="unfinished"/>
+ <translation>Přepnout do módu testování regresí, který používá speciální řetězec, ve kterém mohou být bloky okamžitě vyřešeny.</translation>
</message>
<message>
<source>Error: Listening for incoming connections failed (listen returned error %d)</source>
@@ -2735,7 +2739,7 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>How thorough the block verification of -checkblocks is (0-4, default: 3)</source>
- <translation type="unfinished"/>
+ <translation>Jak moc důkladná má být verifikace bloků -checkblocks (0-4, výchozí: 3)</translation>
</message>
<message>
<source>In this mode -genproclimit controls how many blocks are generated immediately.</source>
@@ -2743,7 +2747,7 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Set the number of script verification threads (%u to %d, 0 = auto, &lt;0 = leave that many cores free, default: %d)</source>
- <translation type="unfinished"/>
+ <translation>Nastavení počtu vláken pro verifikaci skriptů (%u až %d, 0 = automaticky, &lt;0 = nechat daný počet jader volný, výchozí: 0)</translation>
</message>
<message>
<source>Set the processor limit for when generation is on (-1 = unlimited, default: -1)</source>
@@ -2755,11 +2759,11 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Unable to bind to %s on this computer. Bitcoin Core is probably already running.</source>
- <translation type="unfinished"/>
+ <translation>Nedaří se mi připojit na %s na tomhle počítači. Bitcoin Core už pravděpodobně jednou běží.</translation>
</message>
<message>
<source>Use separate SOCKS5 proxy to reach peers via Tor hidden services (default: -proxy)</source>
- <translation type="unfinished"/>
+ <translation>Použít samostatnou SOCKS5 proxy ke spojení s peery přes skryté služby v Toru (výchozí: -proxy)</translation>
</message>
<message>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
@@ -2771,11 +2775,11 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.</source>
- <translation type="unfinished"/>
+ <translation>Upozornění: Síť podle všeho není v konzistentním stavu. Někteří těžaři jsou zřejmě v potížích.</translation>
</message>
<message>
<source>Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade.</source>
- <translation type="unfinished"/>
+ <translation>Upozornění: Nesouhlasím zcela se svými protiuzly! Možná potřebuji aktualizovat nebo ostatní uzly potřebují aktualizovat.</translation>
</message>
<message>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
@@ -2787,15 +2791,15 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>(default: 1)</source>
- <translation type="unfinished"/>
+ <translation>(výchozí: 1)</translation>
</message>
<message>
<source>(default: wallet.dat)</source>
- <translation type="unfinished"/>
+ <translation>(výchozí: wallet.dat)</translation>
</message>
<message>
<source>&lt;category&gt; can be:</source>
- <translation type="unfinished"/>
+ <translation>&lt;category&gt; může být:</translation>
</message>
<message>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
@@ -2803,7 +2807,7 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Bitcoin Core Daemon</source>
- <translation type="unfinished"/>
+ <translation>Bitcoin Core démon</translation>
</message>
<message>
<source>Block creation options:</source>
@@ -2823,7 +2827,7 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Connect to JSON-RPC on &lt;port&gt; (default: 8332 or testnet: 18332)</source>
- <translation type="unfinished"/>
+ <translation>Připojit se k JSON RPC na &lt;port&gt; (výchozí: 8332 nebo testnet: 18332)</translation>
</message>
<message>
<source>Connection options:</source>
@@ -2927,7 +2931,7 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Fee per kB to add to transactions you send</source>
- <translation type="unfinished"/>
+ <translation>Poplatek za kB, který se přidá ke každé odeslané transakci</translation>
</message>
<message>
<source>Fees smaller than this are considered zero fee (for relaying) (default:</source>
@@ -2939,7 +2943,7 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Force safe mode (default: 0)</source>
- <translation type="unfinished"/>
+ <translation>Vynutit bezpečný mód (výchozí: 0)</translation>
</message>
<message>
<source>Generate coins (default: 0)</source>
@@ -2954,12 +2958,16 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation>Importuji...</translation>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Nemám žádný nebo jen špatný genesis blok. Není špatně nastavený datadir?</translation>
</message>
<message>
<source>Invalid -onion address: &apos;%s&apos;</source>
- <translation type="unfinished"/>
+ <translation>Neplatná -onion adresa: &apos;%s&apos;</translation>
</message>
<message>
<source>Not enough file descriptors available.</source>
@@ -2967,7 +2975,7 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Prepend debug output with timestamp (default: 1)</source>
- <translation type="unfinished"/>
+ <translation>Připojit před ladicí výstup časové razítko (výchozí: 1)</translation>
</message>
<message>
<source>RPC client options:</source>
@@ -2979,15 +2987,15 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Select SOCKS version for -proxy (4 or 5, default: 5)</source>
- <translation type="unfinished"/>
+ <translation>Zvol verzi SOCKS proxy pro -proxy (4 nebo 5, výchozí: 5)</translation>
</message>
<message>
<source>Set database cache size in megabytes (%d to %d, default: %d)</source>
- <translation type="unfinished"/>
+ <translation>Nastavit velikost databázové vyrovnávací paměti v megabajtech (%d až %d, výchozí: %d)</translation>
</message>
<message>
<source>Set maximum block size in bytes (default: %d)</source>
- <translation type="unfinished"/>
+ <translation>Nastavit maximální velikost bloku v bajtech (výchozí: %d)</translation>
</message>
<message>
<source>Set the number of threads to service RPC calls (default: 4)</source>
@@ -3003,7 +3011,7 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>This is intended for regression testing tools and app development.</source>
- <translation type="unfinished"/>
+ <translation>Tohle je určeno pro nástroje na regresní testování a vyvíjení aplikací.</translation>
</message>
<message>
<source>Usage (deprecated, use bitcoin-cli):</source>
@@ -3043,19 +3051,19 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Cannot obtain a lock on data directory %s. Bitcoin Core is probably already running.</source>
- <translation type="unfinished"/>
+ <translation>Nedaří se mi získat zámek na datový adresář %s. Bitcoin Core pravděpodobně už jednou běží.</translation>
</message>
<message>
<source>Execute command when a relevant alert is received or we see a really long fork (%s in cmd is replaced by message)</source>
- <translation type="unfinished"/>
+ <translation>Spustit příkaz, když přijde relevantní upozornění nebo když dojde k opravdu dlouhému rozštěpení řetezce bloků (%s se v příkazu nahradí zprávou)</translation>
</message>
<message>
<source>Output debugging information (default: 0, supplying &lt;category&gt; is optional)</source>
- <translation type="unfinished"/>
+ <translation>Tisknout ladicí informace (výchozí: 0, zadání &lt;category&gt; je volitelné)</translation>
</message>
<message>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: %d)</source>
- <translation type="unfinished"/>
+ <translation>Nastavit maximální velikost prioritních/nízkopoplatkových transakcí v bajtech (výchozí: %d)</translation>
</message>
<message>
<source>Information</source>
@@ -3091,7 +3099,7 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Only accept block chain matching built-in checkpoints (default: 1)</source>
- <translation>Uznávat pouze řetěz bloků, který odpovídá vnitřním kontrolním bodům (výchozí: 1)</translation>
+ <translation>Uznávat pouze řetězec bloků, který odpovídá vnitřním kontrolním bodům (výchozí: 1)</translation>
</message>
<message>
<source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source>
@@ -3131,7 +3139,7 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>Send command to Bitcoin Core</source>
- <translation type="unfinished"/>
+ <translation>Poslat příkaz Bitcoin Core</translation>
</message>
<message>
<source>Send trace/debug info to console instead of debug.log file</source>
@@ -3211,7 +3219,7 @@ například: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
</message>
<message>
<source>on startup</source>
- <translation type="unfinished"/>
+ <translation>při startu</translation>
</message>
<message>
<source>version</source>
diff --git a/src/qt/locale/bitcoin_cy.ts b/src/qt/locale/bitcoin_cy.ts
index 3bb38386ac..b7624f07f2 100644
--- a/src/qt/locale/bitcoin_cy.ts
+++ b/src/qt/locale/bitcoin_cy.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_da.ts b/src/qt/locale/bitcoin_da.ts
index 67bbc6eadc..3d89d2e5c5 100644
--- a/src/qt/locale/bitcoin_da.ts
+++ b/src/qt/locale/bitcoin_da.ts
@@ -1349,6 +1349,10 @@ Adresse: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Indtast en Bitcoin-adresse (f.eks. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2954,6 +2958,10 @@ f.eks.: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.com
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_de.ts b/src/qt/locale/bitcoin_de.ts
index d242fe3c43..7f7e505e1d 100644
--- a/src/qt/locale/bitcoin_de.ts
+++ b/src/qt/locale/bitcoin_de.ts
@@ -1348,6 +1348,10 @@ Adresse: %4</translation>
<translation>Fehler: Ungültige Kombination von -regtest und -testnet.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation>Bitcoin Core wurde noch nicht sicher beendet...</translation>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Bitcoin-Adresse eingeben (z.B. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2953,6 +2957,10 @@ zum Beispiel: alertnotify=echo %%s | mail -s \&quot;Bitcoin Alert\&quot; admin@f
<translation>Wenn &lt;category&gt; nicht angegeben wird, jegliche Debugginginformationen ausgeben.</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation>Importiere...</translation>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Fehlerhafter oder kein Genesis-Block gefunden. Falsches Datenverzeichnis für das Netzwerk?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_el_GR.ts b/src/qt/locale/bitcoin_el_GR.ts
index 602c7687a5..d13b974b8c 100644
--- a/src/qt/locale/bitcoin_el_GR.ts
+++ b/src/qt/locale/bitcoin_el_GR.ts
@@ -580,11 +580,11 @@ Address: %4
</message>
<message>
<source>Quantity:</source>
- <translation type="unfinished"/>
+ <translation>Ποσότητα:</translation>
</message>
<message>
<source>Bytes:</source>
- <translation type="unfinished"/>
+ <translation>Bytes:</translation>
</message>
<message>
<source>Amount:</source>
@@ -592,7 +592,7 @@ Address: %4
</message>
<message>
<source>Priority:</source>
- <translation type="unfinished"/>
+ <translation>Προτεραιότητα:</translation>
</message>
<message>
<source>Fee:</source>
@@ -636,7 +636,7 @@ Address: %4
</message>
<message>
<source>Confirmations</source>
- <translation type="unfinished"/>
+ <translation>Επικυρώσεις</translation>
</message>
<message>
<source>Confirmed</source>
@@ -644,7 +644,7 @@ Address: %4
</message>
<message>
<source>Priority</source>
- <translation type="unfinished"/>
+ <translation>Προτεραιότητα</translation>
</message>
<message>
<source>Copy address</source>
@@ -748,11 +748,11 @@ Address: %4
</message>
<message>
<source>yes</source>
- <translation type="unfinished"/>
+ <translation>ναι</translation>
</message>
<message>
<source>no</source>
- <translation type="unfinished"/>
+ <translation>όχι</translation>
</message>
<message>
<source>This label turns red, if the transaction size is greater than 1000 bytes.</source>
@@ -1350,6 +1350,10 @@ Address: %4
<translation>Σφάλμα: Άκυρος συνδυασμός των -regtest και -testnet</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Εισάγετε μια διεύθυνση Bitcoin (π.χ. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -1370,7 +1374,7 @@ Address: %4
</message>
<message>
<source>PNG Image (*.png)</source>
- <translation type="unfinished"/>
+ <translation>Εικόνες PNG (*.png)</translation>
</message>
</context>
<context>
@@ -1393,7 +1397,7 @@ Address: %4
</message>
<message>
<source>Debug window</source>
- <translation type="unfinished"/>
+ <translation>Παράθυρο αποσφαλμάτωσης</translation>
</message>
<message>
<source>General</source>
@@ -1580,7 +1584,7 @@ Address: %4
</message>
<message>
<source>Show</source>
- <translation type="unfinished"/>
+ <translation>Εμφάνιση</translation>
</message>
<message>
<source>Remove the selected entries from the list</source>
@@ -1588,7 +1592,7 @@ Address: %4
</message>
<message>
<source>Remove</source>
- <translation type="unfinished"/>
+ <translation>Αφαίρεση</translation>
</message>
<message>
<source>Copy label</source>
@@ -1682,7 +1686,7 @@ Address: %4
</message>
<message>
<source>(no message)</source>
- <translation type="unfinished"/>
+ <translation>(κανένα μήνυμα)</translation>
</message>
<message>
<source>(no amount)</source>
@@ -1709,15 +1713,15 @@ Address: %4
</message>
<message>
<source>Insufficient funds!</source>
- <translation type="unfinished"/>
+ <translation>Ανεπαρκές κεφάλαιο!</translation>
</message>
<message>
<source>Quantity:</source>
- <translation type="unfinished"/>
+ <translation>Ποσότητα:</translation>
</message>
<message>
<source>Bytes:</source>
- <translation type="unfinished"/>
+ <translation>Bytes:</translation>
</message>
<message>
<source>Amount:</source>
@@ -1725,7 +1729,7 @@ Address: %4
</message>
<message>
<source>Priority:</source>
- <translation type="unfinished"/>
+ <translation>Προτεραιότητα:</translation>
</message>
<message>
<source>Fee:</source>
@@ -1849,7 +1853,7 @@ Address: %4
</message>
<message>
<source>Transaction creation failed!</source>
- <translation type="unfinished"/>
+ <translation>Η δημιουργία της συναλλαγής απέτυχε!</translation>
</message>
<message>
<source>The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
@@ -1857,7 +1861,7 @@ Address: %4
</message>
<message>
<source>Warning: Invalid Bitcoin address</source>
- <translation type="unfinished"/>
+ <translation>Προειδοποίηση: Μη έγκυρη διεύθυνση Bitcoin</translation>
</message>
<message>
<source>(no label)</source>
@@ -1952,7 +1956,7 @@ Address: %4
</message>
<message>
<source>Pay To:</source>
- <translation type="unfinished"/>
+ <translation>Πληρωμή σε:</translation>
</message>
<message>
<source>Memo:</source>
@@ -2956,6 +2960,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_en.ts b/src/qt/locale/bitcoin_en.ts
index 8f6e0fead8..4b541eabe9 100644
--- a/src/qt/locale/bitcoin_en.ts
+++ b/src/qt/locale/bitcoin_en.ts
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
-<TS version="2.0" language="en">
+<TS version="2.1" language="en">
<context>
<name>AboutDialog</name>
<message>
@@ -1332,7 +1332,18 @@ Address: %4
<translation type="unfinished"></translation>
</message>
<message>
- <location line="+214"/>
+ <location line="+194"/>
+ <location line="+13"/>
+ <source>Third party URLs (e.g. a block explorer) that appear in the transactions tab as context menu items. %s in the URL is replaced by transaction hash. Multiple URLs are separated by vertical bar |.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location line="-10"/>
+ <source>Third party transaction URLs</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location line="+41"/>
<source>Active command-line options that override above options:</source>
<translation type="unfinished"></translation>
</message>
@@ -1347,7 +1358,7 @@ Address: %4
<translation>&amp;Reset Options</translation>
</message>
<message>
- <location line="-313"/>
+ <location line="-337"/>
<source>&amp;Network</source>
<translation>&amp;Network</translation>
</message>
@@ -1482,7 +1493,7 @@ Address: %4
<translation type="unfinished"></translation>
</message>
<message>
- <location line="+398"/>
+ <location line="+422"/>
<source>&amp;OK</source>
<translation>&amp;OK</translation>
</message>
@@ -1497,12 +1508,12 @@ Address: %4
<translation>default</translation>
</message>
<message>
- <location line="+58"/>
+ <location line="+61"/>
<source>none</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location line="+80"/>
+ <location line="+82"/>
<source>Confirm options reset</source>
<translation>Confirm options reset</translation>
</message>
@@ -1718,7 +1729,7 @@ Address: %4
</message>
<message>
<location line="+60"/>
- <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <source>Bitcoin Core didn&apos;t yet exit safely...</source>
<translation type="unfinished"></translation>
</message>
<message>
@@ -3043,7 +3054,7 @@ Address: %4
<translation>(n/a)</translation>
</message>
<message>
- <location line="+190"/>
+ <location line="+192"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>Transaction status. Hover over this field to show number of confirmations.</translation>
</message>
@@ -3071,7 +3082,7 @@ Address: %4
<context>
<name>TransactionView</name>
<message>
- <location filename="../transactionview.cpp" line="+57"/>
+ <location filename="../transactionview.cpp" line="+60"/>
<location line="+16"/>
<source>All</source>
<translation>All</translation>
@@ -3172,7 +3183,7 @@ Address: %4
<translation>Show transaction details</translation>
</message>
<message>
- <location line="+140"/>
+ <location line="+163"/>
<source>Export Transaction History</source>
<translation type="unfinished"></translation>
</message>
@@ -3237,7 +3248,7 @@ Address: %4
<translation>ID</translation>
</message>
<message>
- <location line="+107"/>
+ <location line="+116"/>
<source>Range:</source>
<translation>Range:</translation>
</message>
diff --git a/src/qt/locale/bitcoin_eo.ts b/src/qt/locale/bitcoin_eo.ts
index 43de82c653..7f5dc3de2f 100644
--- a/src/qt/locale/bitcoin_eo.ts
+++ b/src/qt/locale/bitcoin_eo.ts
@@ -1349,6 +1349,10 @@ Adreso: %4
<translation>Eraro: nevalida kunigo de -regtest kaj -testnet</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Enigi Bitmon-adreson (ekz. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2954,6 +2958,10 @@ ekzemple: alertnotify=echo %%s | mail -s &quot;Averto de Bitmono&quot; admin@foo
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Geneza bloko aŭ netrovita aŭ neĝusta. Ĉu eble la datadir de la reto malĝustas?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_es.ts b/src/qt/locale/bitcoin_es.ts
index d8ac3ebc9f..0bd60be101 100644
--- a/src/qt/locale/bitcoin_es.ts
+++ b/src/qt/locale/bitcoin_es.ts
@@ -1352,6 +1352,10 @@ Dirección: %4
<translation>Error: Combinación no válida de -regtest y -testnet.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Introduzca una dirección Bitcoin (ej. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2966,6 +2970,10 @@ Por ejemplo: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation>Si no se proporciona &lt;category&gt;, mostrar toda la depuración</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Incorrecto o bloque de génesis no encontrado. Datadir equivocada para la red?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_es_CL.ts b/src/qt/locale/bitcoin_es_CL.ts
index 48f52d69fd..b63743e5d6 100644
--- a/src/qt/locale/bitcoin_es_CL.ts
+++ b/src/qt/locale/bitcoin_es_CL.ts
@@ -1352,6 +1352,10 @@ Dirección: %4</translation>
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Introduce una dirección Bitcoin (ej. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2957,6 +2961,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_es_DO.ts b/src/qt/locale/bitcoin_es_DO.ts
index 91d847d88b..6fca831017 100644
--- a/src/qt/locale/bitcoin_es_DO.ts
+++ b/src/qt/locale/bitcoin_es_DO.ts
@@ -1352,6 +1352,10 @@ Dirección: %4
<translation>Error: Combinación no válida de -regtest y -testnet.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Introduzca una dirección Bitcoin (ej. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2965,6 +2969,10 @@ Por ejemplo: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation>Si no se proporciona &lt;category&gt;, mostrar toda la depuración</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Incorrecto o bloque de génesis no encontrado. Datadir equivocada para la red?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_es_MX.ts b/src/qt/locale/bitcoin_es_MX.ts
index d7023227c1..6920f2300b 100644
--- a/src/qt/locale/bitcoin_es_MX.ts
+++ b/src/qt/locale/bitcoin_es_MX.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Ingrese una direccion Bitcoin (ejem. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_es_UY.ts b/src/qt/locale/bitcoin_es_UY.ts
index 56caee4547..d94ad1c938 100644
--- a/src/qt/locale/bitcoin_es_UY.ts
+++ b/src/qt/locale/bitcoin_es_UY.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_et.ts b/src/qt/locale/bitcoin_et.ts
index 6a427eb639..8affc8a5d2 100644
--- a/src/qt/locale/bitcoin_et.ts
+++ b/src/qt/locale/bitcoin_et.ts
@@ -1348,6 +1348,10 @@ Aadress: %4⏎</translation>
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Sisesta Bitcoini aadress (nt: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2953,6 +2957,10 @@ nt: alertnotify=echo %%s | email -s &quot;Bitcoin Alert&quot; admin@foo.com
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_eu_ES.ts b/src/qt/locale/bitcoin_eu_ES.ts
index bccc305f85..afa4d6c540 100644
--- a/src/qt/locale/bitcoin_eu_ES.ts
+++ b/src/qt/locale/bitcoin_eu_ES.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Sartu Bitocin helbide bat (adb.: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L) </translation>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_fa.ts b/src/qt/locale/bitcoin_fa.ts
index fddca4ab1c..805c7bb856 100644
--- a/src/qt/locale/bitcoin_fa.ts
+++ b/src/qt/locale/bitcoin_fa.ts
@@ -1344,6 +1344,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>یک آدرس بیت‌کوین وارد کنید (مثلاً 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2939,6 +2943,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_fa_IR.ts b/src/qt/locale/bitcoin_fa_IR.ts
index 597e5445f1..18a0dca224 100644
--- a/src/qt/locale/bitcoin_fa_IR.ts
+++ b/src/qt/locale/bitcoin_fa_IR.ts
@@ -1343,6 +1343,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>یک آدرس bitcoin وارد کنید (مثال 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2938,6 +2942,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_fi.ts b/src/qt/locale/bitcoin_fi.ts
index d07027b33d..942dad5411 100644
--- a/src/qt/locale/bitcoin_fi.ts
+++ b/src/qt/locale/bitcoin_fi.ts
@@ -1349,6 +1349,10 @@ Osoite: %4</translation>
<translation>Virhe: Virheellinen yhdistelmä -regtest ja -testnet.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation>Bitcoin Core ei vielä sulkeutunut turvallisesti...</translation>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Anna Bitcoin-osoite (esim. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2954,6 +2958,10 @@ esimerkiksi: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation>Jos &lt;kategoria&gt; ei annettu, tulosta kaikki debuggaustieto.</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation>Tuodaan...</translation>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Virheellinen tai olematon alkulohko löydetty. Väärä data-hakemisto verkolle?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_fr.ts b/src/qt/locale/bitcoin_fr.ts
index d4e9ae22d7..e0d5bbdbcd 100644
--- a/src/qt/locale/bitcoin_fr.ts
+++ b/src/qt/locale/bitcoin_fr.ts
@@ -1349,6 +1349,10 @@ Adresse : %4
<translation>Erreur : combinaison invalide de -regtest et de -testnet.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation>Bitcoin Core ne s’est pas arrêté correctement...</translation>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Saisir une adresse Bitcoin (par ex. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2954,6 +2958,10 @@ par exemple : alertnotify=echo %%s | mail -s &quot;Alerte Bitcoin&quot; admin@fo
<translation>Si &lt;category&gt; n&apos;est pas indiqué, extraire toutes les données de débogage.</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation>Importation...</translation>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Bloc de genèse incorrect ou introuvable. Mauvais répertoire de données pour le réseau ?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_fr_CA.ts b/src/qt/locale/bitcoin_fr_CA.ts
index 07243b323e..0df3eb3edd 100644
--- a/src/qt/locale/bitcoin_fr_CA.ts
+++ b/src/qt/locale/bitcoin_fr_CA.ts
@@ -124,7 +124,7 @@ Ce produit comprend des logiciels développés par le projet OpenSSL pour être
</message>
<message>
<source>Comma separated file (*.csv)</source>
- <translation type="unfinished"/>
+ <translation>Fichier séparé par une virgule (*.csv)</translation>
</message>
<message>
<source>Exporting Failed</source>
@@ -139,15 +139,15 @@ Ce produit comprend des logiciels développés par le projet OpenSSL pour être
<name>AddressTableModel</name>
<message>
<source>Label</source>
- <translation type="unfinished"/>
+ <translation>Record</translation>
</message>
<message>
<source>Address</source>
- <translation type="unfinished"/>
+ <translation>Addresse</translation>
</message>
<message>
<source>(no label)</source>
- <translation type="unfinished"/>
+ <translation>(pas de record)</translation>
</message>
</context>
<context>
@@ -158,35 +158,35 @@ Ce produit comprend des logiciels développés par le projet OpenSSL pour être
</message>
<message>
<source>Enter passphrase</source>
- <translation type="unfinished"/>
+ <translation>Entrer Mot de Passe</translation>
</message>
<message>
<source>New passphrase</source>
- <translation type="unfinished"/>
+ <translation>Nouveau Mot de passe</translation>
</message>
<message>
<source>Repeat new passphrase</source>
- <translation type="unfinished"/>
+ <translation>Répéter Mot de Passe</translation>
</message>
<message>
<source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source>
- <translation type="unfinished"/>
+ <translation>Entrer le nouveau mot de passe pour le porte-feuille. Veuillez utiliser un mot de passe de 10 caractères au hasard ou plus, ou, 8 mots ou plus. </translation>
</message>
<message>
<source>Encrypt wallet</source>
- <translation type="unfinished"/>
+ <translation>Encrypter Porte-Feuille</translation>
</message>
<message>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
- <translation type="unfinished"/>
+ <translation>Cette opération nécessite le mot de passe de votre porte-feuille pour débarrer le porte-feuille.</translation>
</message>
<message>
<source>Unlock wallet</source>
- <translation type="unfinished"/>
+ <translation>Débarrer Porte-Feuille</translation>
</message>
<message>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
- <translation type="unfinished"/>
+ <translation>Cette opération nécessite le mot de passe de votre porte-feuille pour le décrypter.</translation>
</message>
<message>
<source>Decrypt wallet</source>
@@ -623,7 +623,7 @@ Address: %4
</message>
<message>
<source>Address</source>
- <translation type="unfinished"/>
+ <translation>Addresse</translation>
</message>
<message>
<source>Date</source>
@@ -787,7 +787,7 @@ Address: %4
</message>
<message>
<source>(no label)</source>
- <translation type="unfinished"/>
+ <translation>(pas de record)</translation>
</message>
<message>
<source>change from %1 (%2)</source>
@@ -1345,6 +1345,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -1630,7 +1634,7 @@ Address: %4
</message>
<message>
<source>Address</source>
- <translation type="unfinished"/>
+ <translation>Addresse</translation>
</message>
<message>
<source>Amount</source>
@@ -1638,7 +1642,7 @@ Address: %4
</message>
<message>
<source>Label</source>
- <translation type="unfinished"/>
+ <translation>Record</translation>
</message>
<message>
<source>Message</source>
@@ -1661,7 +1665,7 @@ Address: %4
</message>
<message>
<source>Label</source>
- <translation type="unfinished"/>
+ <translation>Record</translation>
</message>
<message>
<source>Message</source>
@@ -1673,7 +1677,7 @@ Address: %4
</message>
<message>
<source>(no label)</source>
- <translation type="unfinished"/>
+ <translation>(pas de record)</translation>
</message>
<message>
<source>(no message)</source>
@@ -1856,7 +1860,7 @@ Address: %4
</message>
<message>
<source>(no label)</source>
- <translation type="unfinished"/>
+ <translation>(pas de record)</translation>
</message>
<message>
<source>Warning: Unknown change address</source>
@@ -2292,7 +2296,7 @@ Address: %4
</message>
<message>
<source>Address</source>
- <translation type="unfinished"/>
+ <translation>Addresse</translation>
</message>
<message>
<source>Amount</source>
@@ -2487,7 +2491,7 @@ Address: %4
</message>
<message>
<source>Comma separated file (*.csv)</source>
- <translation type="unfinished"/>
+ <translation>Fichier séparé par une virgule (*.csv)</translation>
</message>
<message>
<source>Confirmed</source>
@@ -2503,11 +2507,11 @@ Address: %4
</message>
<message>
<source>Label</source>
- <translation type="unfinished"/>
+ <translation>Record</translation>
</message>
<message>
<source>Address</source>
- <translation type="unfinished"/>
+ <translation>Addresse</translation>
</message>
<message>
<source>Amount</source>
@@ -2940,6 +2944,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_gl.ts b/src/qt/locale/bitcoin_gl.ts
index a75ef4a234..a1ee3545bf 100644
--- a/src/qt/locale/bitcoin_gl.ts
+++ b/src/qt/locale/bitcoin_gl.ts
@@ -1349,6 +1349,10 @@ Dirección: %4
<translation>Erro: combinación inválida de -regtest e -testnet.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Introduce unha dirección Bitcoin (exemplo: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2954,6 +2958,10 @@ por exemplo: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Bloque genesis incorrecto o no existente. Datadir erróneo para a rede?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_gu_IN.ts b/src/qt/locale/bitcoin_gu_IN.ts
index ec5068ffb8..66b341545e 100644
--- a/src/qt/locale/bitcoin_gu_IN.ts
+++ b/src/qt/locale/bitcoin_gu_IN.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_he.ts b/src/qt/locale/bitcoin_he.ts
index 0fc94e77f2..73378535a7 100644
--- a/src/qt/locale/bitcoin_he.ts
+++ b/src/qt/locale/bitcoin_he.ts
@@ -1348,6 +1348,10 @@ Address: %4
<translation>שגיאה: שילוב בלתי חוקי של regtest- ו testnet-.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>הכנס כתובת ביטקוין (למשל 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2953,6 +2957,10 @@ rpcpassword=%s
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>בלוק בראשית הינו שגוי או לא נמצא. ספריית מידע לא נכונה עבור הרשת?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_hi_IN.ts b/src/qt/locale/bitcoin_hi_IN.ts
index 9ee4a99b49..d27e26b871 100644
--- a/src/qt/locale/bitcoin_hi_IN.ts
+++ b/src/qt/locale/bitcoin_hi_IN.ts
@@ -1344,6 +1344,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Bitcoin एड्रेस लिखें (उदाहरण: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2940,6 +2944,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_hr.ts b/src/qt/locale/bitcoin_hr.ts
index f12413b056..b5f1595515 100644
--- a/src/qt/locale/bitcoin_hr.ts
+++ b/src/qt/locale/bitcoin_hr.ts
@@ -1344,6 +1344,10 @@ Adresa:%4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Unesite Bitcoin adresu (npr. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2939,6 +2943,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_hu.ts b/src/qt/locale/bitcoin_hu.ts
index 0be3ef4540..de57490847 100644
--- a/src/qt/locale/bitcoin_hu.ts
+++ b/src/qt/locale/bitcoin_hu.ts
@@ -1349,6 +1349,10 @@ Cím: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Adj meg egy Bitcoin-címet (pl.: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L )</translation>
</message>
@@ -2954,6 +2958,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Helytelen vagy nemlétező genézis blokk. Helytelen hálózati adatkönyvtár?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_id_ID.ts b/src/qt/locale/bitcoin_id_ID.ts
index a7ec77c68c..bd92878fed 100644
--- a/src/qt/locale/bitcoin_id_ID.ts
+++ b/src/qt/locale/bitcoin_id_ID.ts
@@ -1349,6 +1349,10 @@ Alamat: %4
<translation>Gagal: Gabungan -regtest dan -testnet salah</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Masukkan alamat Bitcoin (cth. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2945,6 +2949,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Tidak bisa cari blok pertama, atau blok pertama salah. Salah direktori untuk jaringan?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_it.ts b/src/qt/locale/bitcoin_it.ts
index 20d50ba865..b9ef5e4d0b 100644
--- a/src/qt/locale/bitcoin_it.ts
+++ b/src/qt/locale/bitcoin_it.ts
@@ -1350,6 +1350,10 @@ Indirizzo: %4
<translation>Errore: combinazione di -regtest e -testnet non valida.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation>Bitcoin Core non è ancora stato chiuso in modo sicuro ...</translation>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Inserisci un indirizzo Bitcoin (ad esempio 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2955,6 +2959,10 @@ ad esempio: alertnotify=echo %%s | mail -s &quot;Allarme Bitcoin&quot; admin@foo
<translation>Se &lt;category&gt; non è specificata, mostra tutte le informazioni di debug.</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation>Importazione...</translation>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Blocco genesis non corretto o non trovato. Cartella dati errata?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_ja.ts b/src/qt/locale/bitcoin_ja.ts
index d1baca48a1..c7e4fe6091 100644
--- a/src/qt/locale/bitcoin_ja.ts
+++ b/src/qt/locale/bitcoin_ja.ts
@@ -1350,6 +1350,10 @@ Address: %4
<translation>エラー: -regtestと-testnetは一緒にするのは無効です。</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Bitcoin アドレスを入力します (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2955,6 +2959,10 @@ rpcpassword=%s
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>不正なブロックあるいは、生成されていないブロックが見つかりました。ネットワークの datadir が間違っていませんか?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_ka.ts b/src/qt/locale/bitcoin_ka.ts
index c6d719cc14..fd14152b04 100644
--- a/src/qt/locale/bitcoin_ka.ts
+++ b/src/qt/locale/bitcoin_ka.ts
@@ -1349,6 +1349,10 @@ Address: %4
<translation>შეცდომა: -regtest-ისა და -testnet-ის დაუშვებელი კომბინაცია.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>შეიყვანეთ ბიტკოინ-მისამართი (მაგ. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2954,6 +2958,10 @@ rpcpassword=%s
<translation>თუ &lt;category&gt; არ არის მითითებული, ნაჩვენები იქნება სრული დახვეწის ინფორმაცია.</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>საწყისი ბლოკი არ არსებობს ან არასწორია. ქსელის მონაცემთა კატალოგი datadir ხომ არის არასწორი?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_kk_KZ.ts b/src/qt/locale/bitcoin_kk_KZ.ts
index a82f506e43..e35055ebd1 100644
--- a/src/qt/locale/bitcoin_kk_KZ.ts
+++ b/src/qt/locale/bitcoin_kk_KZ.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_ko_KR.ts b/src/qt/locale/bitcoin_ko_KR.ts
index 2930a71248..c1584600cf 100644
--- a/src/qt/locale/bitcoin_ko_KR.ts
+++ b/src/qt/locale/bitcoin_ko_KR.ts
@@ -1349,6 +1349,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>비트코인 주소를 입력하기 (예 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2944,6 +2948,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_ky.ts b/src/qt/locale/bitcoin_ky.ts
index 73992e8083..375e72d359 100644
--- a/src/qt/locale/bitcoin_ky.ts
+++ b/src/qt/locale/bitcoin_ky.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_la.ts b/src/qt/locale/bitcoin_la.ts
index 076292a29b..89f4be8202 100644
--- a/src/qt/locale/bitcoin_la.ts
+++ b/src/qt/locale/bitcoin_la.ts
@@ -1348,6 +1348,10 @@ Inscriptio: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Insere inscriptionem Bitcoin (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2953,6 +2957,10 @@ exempli gratia: alertnotify=echo %%s | mail -s &quot;Bitcoin Notificatio&quot; a
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_lt.ts b/src/qt/locale/bitcoin_lt.ts
index 86162fecb2..103cd5f53d 100644
--- a/src/qt/locale/bitcoin_lt.ts
+++ b/src/qt/locale/bitcoin_lt.ts
@@ -1347,6 +1347,10 @@ Adresas: %4</translation>
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Įveskite bitkoinų adresą (pvz. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2942,6 +2946,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_lv_LV.ts b/src/qt/locale/bitcoin_lv_LV.ts
index 7c59015ea1..0db0b77a47 100644
--- a/src/qt/locale/bitcoin_lv_LV.ts
+++ b/src/qt/locale/bitcoin_lv_LV.ts
@@ -1344,6 +1344,10 @@ Adrese: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Ierakstiet Bitcoin adresi (piem. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2939,6 +2943,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation>Ja &lt;category&gt; nav norādīta, izvadīt visu atkļūdošanas informāciju.</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_ms_MY.ts b/src/qt/locale/bitcoin_ms_MY.ts
index 157b98fa36..9835a2e19f 100644
--- a/src/qt/locale/bitcoin_ms_MY.ts
+++ b/src/qt/locale/bitcoin_ms_MY.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_nb.ts b/src/qt/locale/bitcoin_nb.ts
index d5a442153c..078bad7edc 100644
--- a/src/qt/locale/bitcoin_nb.ts
+++ b/src/qt/locale/bitcoin_nb.ts
@@ -1349,6 +1349,10 @@ Adresse: %4
<translation>Feil: Ugyldig kombinasjon av -regtest og -testnet.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation>Bitcoin Core har annå ikke avsluttet på en sikker måte...</translation>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Skriv inn en Bitcoin-adresse (f.eks. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2953,6 +2957,10 @@ For eksempel: varselmelding=echo %%s | mail -s &quot;Bitcoin Varsel&quot; admin@
<translation>Hvis &lt;category&gt; ikke er oppgitt, ta ut all informasjon om feilsøking.</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation>Importerer...</translation>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Ugyldig eller ingen skaperblokk funnet. Feil datamappe for nettverk?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_nl.ts b/src/qt/locale/bitcoin_nl.ts
index 18ab38b771..0da46059b5 100644
--- a/src/qt/locale/bitcoin_nl.ts
+++ b/src/qt/locale/bitcoin_nl.ts
@@ -1349,6 +1349,10 @@ Adres: %4
<translation>Fout: Ongeldige combinatie van -regtest en -testnet</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Vul een Bitcoinadres in (bijv. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2954,6 +2958,10 @@ bijvoorbeeld: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo
<translation>Als er geen &lt;category&gt; is opgegeven, laat dan alle debugging informatie zien.</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Incorrect of geen genesis-blok gevonden. Verkeerde datamap voor het netwerk?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_pam.ts b/src/qt/locale/bitcoin_pam.ts
index e404bcfaa6..4a5e0363a8 100644
--- a/src/qt/locale/bitcoin_pam.ts
+++ b/src/qt/locale/bitcoin_pam.ts
@@ -1347,6 +1347,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Magpalub kang Bitcoin address(e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2942,6 +2946,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_pl.ts b/src/qt/locale/bitcoin_pl.ts
index 198d7a570d..06845bfc3b 100644
--- a/src/qt/locale/bitcoin_pl.ts
+++ b/src/qt/locale/bitcoin_pl.ts
@@ -1349,6 +1349,10 @@ Adres: %4
<translation>Błąd: Niepoprawna kombinacja -regtest i -testnet.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Wprowadź adres Bitcoin (np. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2953,6 +2957,10 @@ na przykład: alertnotify=echo %%s | mail -s &quot;Alarm Bitcoin&quot; admin@foo
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Nieprawidłowy lub brak bloku genezy. Błędny folder_danych dla sieci?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_pt_BR.ts b/src/qt/locale/bitcoin_pt_BR.ts
index 868ed5c0a4..94a87596ca 100644
--- a/src/qt/locale/bitcoin_pt_BR.ts
+++ b/src/qt/locale/bitcoin_pt_BR.ts
@@ -1348,6 +1348,10 @@ Endereço: %4</translation>
<translation>Erro: Combinação inválida de-regtest e testnet.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Digite um endereço Bitcoin (exemplo: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2953,6 +2957,10 @@ por exemplo: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation>Se &lt;category&gt; não for informada, logar toda informação de debug.</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation>Importando...</translation>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Bloco gênese incorreto ou não encontrado. Datadir errado para a rede?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_pt_PT.ts b/src/qt/locale/bitcoin_pt_PT.ts
index 8d1d2f6eb5..d6dbbbf42a 100644
--- a/src/qt/locale/bitcoin_pt_PT.ts
+++ b/src/qt/locale/bitcoin_pt_PT.ts
@@ -1348,6 +1348,10 @@ Endereço: %4</translation>
<translation>Erro: Combinação inválida de -regtest e -testnet.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Introduza um endereço Bitcoin (p.ex. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2952,6 +2956,10 @@ por exemplo: alertnotify=echo %%s | mail -s &quot;Alerta Bitcoin&quot; admin@foo
<translation>Se uma &lt;categoria&gt; não é fornecida, imprimir toda a informação de depuração.</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Bloco génese incorreto ou nenhum bloco génese encontrado. Pasta de dados errada para a rede?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_ro_RO.ts b/src/qt/locale/bitcoin_ro_RO.ts
index 131a271c5c..0a310db989 100644
--- a/src/qt/locale/bitcoin_ro_RO.ts
+++ b/src/qt/locale/bitcoin_ro_RO.ts
@@ -1349,6 +1349,10 @@ Adresa: %4
<translation>Eroare: combinație nevalidă de -regtest și -testnet.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Introdu o adresă Bitcoin (de exemplu: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2955,6 +2959,10 @@ spre exemplu: alertnotify=echo %%s | mail -s &quot;Alerta Bitcoin&quot; admin@fo
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Incorect sau nici un bloc de Geneza găsite. Directorul de retea greşit?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_ru.ts b/src/qt/locale/bitcoin_ru.ts
index bd12a8a514..d9840a9c5e 100644
--- a/src/qt/locale/bitcoin_ru.ts
+++ b/src/qt/locale/bitcoin_ru.ts
@@ -1349,6 +1349,10 @@ Address: %4
<translation>Ошибка: неверная комбинация -regtest и -testnet.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation>Bitcoin Core еще не готов к безопасному завершению...</translation>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Введите Bitcoin-адрес (например 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2955,6 +2959,10 @@ rpcpassword=%s
<translation>Если &lt;category&gt; не предоставлена, выводить всю отладочную информацию.</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation>Импорт ...</translation>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Неверный или отсутствующий начальный блок. Неправильный каталог данных для сети?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_sah.ts b/src/qt/locale/bitcoin_sah.ts
index bd69939ab4..5cdf9a93d7 100644
--- a/src/qt/locale/bitcoin_sah.ts
+++ b/src/qt/locale/bitcoin_sah.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_sk.ts b/src/qt/locale/bitcoin_sk.ts
index f038ce1da8..b12462dbb2 100644
--- a/src/qt/locale/bitcoin_sk.ts
+++ b/src/qt/locale/bitcoin_sk.ts
@@ -1343,6 +1343,10 @@ Adresa: %4</translation>
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Zadajte Bitcoin adresu (napr. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2938,6 +2942,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_sl_SI.ts b/src/qt/locale/bitcoin_sl_SI.ts
index 3bd7e7739e..b966842d85 100644
--- a/src/qt/locale/bitcoin_sl_SI.ts
+++ b/src/qt/locale/bitcoin_sl_SI.ts
@@ -1344,6 +1344,10 @@ Naslov: %4
<translation>Napaka: Neveljavna kombinacija -regtest and -testnet</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Vnesite bitcoin naslov (npr.: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2939,6 +2943,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_sq.ts b/src/qt/locale/bitcoin_sq.ts
index a30d37a299..5d9e7b7168 100644
--- a/src/qt/locale/bitcoin_sq.ts
+++ b/src/qt/locale/bitcoin_sq.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Futni një adresë Bitkoini (p.sh. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_sr.ts b/src/qt/locale/bitcoin_sr.ts
index 5b3ce97017..6549c53542 100644
--- a/src/qt/locale/bitcoin_sr.ts
+++ b/src/qt/locale/bitcoin_sr.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Unesite Bitcoin adresu (n.pr. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2936,6 +2940,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_sv.ts b/src/qt/locale/bitcoin_sv.ts
index b3bd9d4247..27a8c4d0e3 100644
--- a/src/qt/locale/bitcoin_sv.ts
+++ b/src/qt/locale/bitcoin_sv.ts
@@ -1350,6 +1350,10 @@ Adress: %4
<translation>Fel: Felaktig kombination av -regtest och -testnet.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation>Bitcoin Core avslutades säkert...</translation>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Ange en Bitcoin-adress (t.ex. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2955,6 +2959,10 @@ till exempel: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo
<translation>Om &lt;category&gt; inte anges, skrivs all avlusningsinformation ut.</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation>Importerar...</translation>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Felaktig eller inget genesisblock hittades. Fel datadir för nätverket?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_th_TH.ts b/src/qt/locale/bitcoin_th_TH.ts
index c89f9d89e5..a26a128d93 100644
--- a/src/qt/locale/bitcoin_th_TH.ts
+++ b/src/qt/locale/bitcoin_th_TH.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_tr.ts b/src/qt/locale/bitcoin_tr.ts
index d8b0c25a9d..07d6e68f17 100644
--- a/src/qt/locale/bitcoin_tr.ts
+++ b/src/qt/locale/bitcoin_tr.ts
@@ -1349,6 +1349,10 @@ Adres: %4
<translation>Hata: -regtest ve -testnet&apos;in geçersiz kombinasyonu.</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation>Bitcoin Çekirdeği henüz güvenli bir şekilde çıkış yapmamıştır...</translation>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Bitcoin adresi giriniz (mesela 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2954,6 +2958,10 @@ mesela: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.com
<translation>&lt;kategori&gt; sağlanmamışsa tüm hata ayıklama verilerini dök.</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation>İçe aktarılıyor...</translation>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Yanlış ya da bulunamamış doğuş bloku. Şebeke için yanlış veri klasörü mü?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_uk.ts b/src/qt/locale/bitcoin_uk.ts
index 365a188293..d78775319f 100644
--- a/src/qt/locale/bitcoin_uk.ts
+++ b/src/qt/locale/bitcoin_uk.ts
@@ -1349,6 +1349,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Введіть адресу Bitcoin (наприклад 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2944,6 +2948,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_ur_PK.ts b/src/qt/locale/bitcoin_ur_PK.ts
index bdcb8cedb1..45b46e2689 100644
--- a/src/qt/locale/bitcoin_ur_PK.ts
+++ b/src/qt/locale/bitcoin_ur_PK.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_uz@Cyrl.ts b/src/qt/locale/bitcoin_uz@Cyrl.ts
index d657ea7af6..e4ce310e20 100644
--- a/src/qt/locale/bitcoin_uz@Cyrl.ts
+++ b/src/qt/locale/bitcoin_uz@Cyrl.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_vi.ts b/src/qt/locale/bitcoin_vi.ts
index 5ac6607fe6..88e37b5ea2 100644
--- a/src/qt/locale/bitcoin_vi.ts
+++ b/src/qt/locale/bitcoin_vi.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_vi_VN.ts b/src/qt/locale/bitcoin_vi_VN.ts
index 05774a9a66..743e7119d1 100644
--- a/src/qt/locale/bitcoin_vi_VN.ts
+++ b/src/qt/locale/bitcoin_vi_VN.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_zh_CN.ts b/src/qt/locale/bitcoin_zh_CN.ts
index 5103ba8de7..a8859892d6 100644
--- a/src/qt/locale/bitcoin_zh_CN.ts
+++ b/src/qt/locale/bitcoin_zh_CN.ts
@@ -33,7 +33,7 @@ This product includes software developed by the OpenSSL Project for use in the O
</message>
<message>
<source>(%1-bit)</source>
- <translation type="unfinished"/>
+ <translation>(%1 位)</translation>
</message>
</context>
<context>
@@ -1350,6 +1350,10 @@ Address: %4
<translation>错误:无效的 -regtest 与 -testnet 结合体。</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>请输入比特币地址(例如: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2965,6 +2969,10 @@ rpcpassword=%s
<translation>如果&lt;category&gt;未提供,将输出所有调试信息。</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation>导入中...</translation>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>不正确或没有找到起源区块。网络错误?</translation>
</message>
diff --git a/src/qt/locale/bitcoin_zh_HK.ts b/src/qt/locale/bitcoin_zh_HK.ts
index 204db43a4b..cf729a3f92 100644
--- a/src/qt/locale/bitcoin_zh_HK.ts
+++ b/src/qt/locale/bitcoin_zh_HK.ts
@@ -1340,6 +1340,10 @@ Address: %4
<translation type="unfinished"/>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
@@ -2935,6 +2939,10 @@ for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.
<translation type="unfinished"/>
</message>
<message>
+ <source>Importing...</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
diff --git a/src/qt/locale/bitcoin_zh_TW.ts b/src/qt/locale/bitcoin_zh_TW.ts
index 0c2b711d00..4f7561ab9e 100644
--- a/src/qt/locale/bitcoin_zh_TW.ts
+++ b/src/qt/locale/bitcoin_zh_TW.ts
@@ -1351,6 +1351,10 @@ Address: %4
<translation>錯誤: -regtest 和 -testnet 的使用組合無效。</translation>
</message>
<message>
+ <source>Bitcoin Core did&apos;t yet exit safely...</source>
+ <translation>位元幣核心還沒有安全地結束...</translation>
+ </message>
+ <message>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>請輸入位元幣位址(像是 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
@@ -2957,6 +2961,10 @@ alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; admin@foo.com</translat
<translation>如果沒有提供 &lt;category&gt; 就會輸出所有的除錯資訊。</translation>
</message>
<message>
+ <source>Importing...</source>
+ <translation>正在匯入中...</translation>
+ </message>
+ <message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>創世區塊不正確或找不到。資料目錄錯了嗎?</translation>
</message>
diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp
index 74c6b10ce2..e87a1d97e7 100644
--- a/src/qt/optionsmodel.cpp
+++ b/src/qt/optionsmodel.cpp
@@ -93,7 +93,7 @@ void OptionsModel::Init()
// Wallet
#ifdef ENABLE_WALLET
if (!settings.contains("nTransactionFee"))
- settings.setValue("nTransactionFee", 0);
+ settings.setValue("nTransactionFee", (qint64)DEFAULT_TRANSACTION_FEE);
nTransactionFee = settings.value("nTransactionFee").toLongLong(); // if -paytxfee is set, this will be overridden later in init.cpp
if (mapArgs.count("-paytxfee"))
addOverriddenOption("-paytxfee");
diff --git a/src/qt/receivecoinsdialog.cpp b/src/qt/receivecoinsdialog.cpp
index 3ccfb429a6..f2c76c8355 100644
--- a/src/qt/receivecoinsdialog.cpp
+++ b/src/qt/receivecoinsdialog.cpp
@@ -5,21 +5,21 @@
#include "receivecoinsdialog.h"
#include "ui_receivecoinsdialog.h"
-#include "walletmodel.h"
-#include "bitcoinunits.h"
#include "addressbookpage.h"
-#include "optionsmodel.h"
+#include "addresstablemodel.h"
+#include "bitcoinunits.h"
#include "guiutil.h"
+#include "optionsmodel.h"
#include "receiverequestdialog.h"
-#include "addresstablemodel.h"
#include "recentrequeststablemodel.h"
+#include "walletmodel.h"
#include <QAction>
#include <QCursor>
+#include <QItemSelection>
#include <QMessageBox>
-#include <QTextDocument>
#include <QScrollBar>
-#include <QItemSelection>
+#include <QTextDocument>
ReceiveCoinsDialog::ReceiveCoinsDialog(QWidget *parent) :
QDialog(parent),
@@ -78,7 +78,7 @@ void ReceiveCoinsDialog::setModel(WalletModel *model)
connect(tableView->selectionModel(),
SIGNAL(selectionChanged(QItemSelection, QItemSelection)), this,
- SLOT(on_recentRequestsView_selectionChanged(QItemSelection, QItemSelection)));
+ SLOT(recentRequestsView_selectionChanged(QItemSelection, QItemSelection)));
// Last 2 columns are set by the columnResizingFixer, when the table geometry is ready.
columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer(tableView, AMOUNT_MINIMUM_COLUMN_WIDTH, DATE_COLUMN_WIDTH);
}
@@ -165,8 +165,7 @@ void ReceiveCoinsDialog::on_recentRequestsView_doubleClicked(const QModelIndex &
dialog->show();
}
-void ReceiveCoinsDialog::on_recentRequestsView_selectionChanged(const QItemSelection &selected,
- const QItemSelection &deselected)
+void ReceiveCoinsDialog::recentRequestsView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
{
// Enable Show/Remove buttons only if anything is selected.
bool enable = !ui->recentRequestsView->selectionModel()->selectedRows().isEmpty();
@@ -200,7 +199,7 @@ void ReceiveCoinsDialog::on_removeRequestButton_clicked()
// We override the virtual resizeEvent of the QWidget to adjust tables column
// sizes as the tables width is proportional to the dialogs width.
-void ReceiveCoinsDialog::resizeEvent(QResizeEvent* event)
+void ReceiveCoinsDialog::resizeEvent(QResizeEvent *event)
{
QWidget::resizeEvent(event);
columnResizingFixer->stretchColumnWidth(RecentRequestsTableModel::Message);
diff --git a/src/qt/receivecoinsdialog.h b/src/qt/receivecoinsdialog.h
index ab63331597..663cb157a4 100644
--- a/src/qt/receivecoinsdialog.h
+++ b/src/qt/receivecoinsdialog.h
@@ -18,8 +18,8 @@
namespace Ui {
class ReceiveCoinsDialog;
}
-class WalletModel;
class OptionsModel;
+class WalletModel;
QT_BEGIN_NAMESPACE
class QModelIndex;
@@ -57,16 +57,16 @@ private:
WalletModel *model;
QMenu *contextMenu;
void copyColumnToClipboard(int column);
- virtual void resizeEvent(QResizeEvent* event);
+ virtual void resizeEvent(QResizeEvent *event);
private slots:
void on_receiveButton_clicked();
void on_showRequestButton_clicked();
void on_removeRequestButton_clicked();
void on_recentRequestsView_doubleClicked(const QModelIndex &index);
- void on_recentRequestsView_selectionChanged(const QItemSelection &, const QItemSelection &);
+ void recentRequestsView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
void updateDisplayUnit();
- void showMenu(const QPoint &);
+ void showMenu(const QPoint &point);
void copyLabel();
void copyMessage();
void copyAmount();
diff --git a/src/qt/receiverequestdialog.cpp b/src/qt/receiverequestdialog.cpp
index b5e45341d9..062638f2bc 100644
--- a/src/qt/receiverequestdialog.cpp
+++ b/src/qt/receiverequestdialog.cpp
@@ -16,6 +16,7 @@
#include <QMimeData>
#include <QMouseEvent>
#include <QPixmap>
+#include <QMenu>
#if QT_VERSION < 0x050000
#include <QUrl>
#endif
@@ -29,26 +30,27 @@
#endif
QRImageWidget::QRImageWidget(QWidget *parent):
- QLabel(parent)
+ QLabel(parent), contextMenu(0)
{
- setContextMenuPolicy(Qt::ActionsContextMenu);
-
+ contextMenu = new QMenu();
QAction *saveImageAction = new QAction(tr("&Save Image..."), this);
connect(saveImageAction, SIGNAL(triggered()), this, SLOT(saveImage()));
- addAction(saveImageAction);
+ contextMenu->addAction(saveImageAction);
QAction *copyImageAction = new QAction(tr("&Copy Image"), this);
connect(copyImageAction, SIGNAL(triggered()), this, SLOT(copyImage()));
- addAction(copyImageAction);
+ contextMenu->addAction(copyImageAction);
}
QImage QRImageWidget::exportImage()
{
+ if(!pixmap())
+ return QImage();
return pixmap()->toImage().scaled(EXPORT_IMAGE_SIZE, EXPORT_IMAGE_SIZE);
}
void QRImageWidget::mousePressEvent(QMouseEvent *event)
{
- if(event->button() == Qt::LeftButton)
+ if(event->button() == Qt::LeftButton && pixmap())
{
event->accept();
QMimeData *mimeData = new QMimeData;
@@ -64,6 +66,8 @@ void QRImageWidget::mousePressEvent(QMouseEvent *event)
void QRImageWidget::saveImage()
{
+ if(!pixmap())
+ return;
QString fn = GUIUtil::getSaveFileName(this, tr("Save QR Code"), QString(), tr("PNG Image (*.png)"), NULL);
if (!fn.isEmpty())
{
@@ -73,9 +77,18 @@ void QRImageWidget::saveImage()
void QRImageWidget::copyImage()
{
+ if(!pixmap())
+ return;
QApplication::clipboard()->setImage(exportImage());
}
+void QRImageWidget::contextMenuEvent(QContextMenuEvent *event)
+{
+ if(!pixmap())
+ return;
+ contextMenu->exec(event->globalPos());
+}
+
ReceiveRequestDialog::ReceiveRequestDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::ReceiveRequestDialog),
diff --git a/src/qt/receiverequestdialog.h b/src/qt/receiverequestdialog.h
index 295a73031d..5614ac635a 100644
--- a/src/qt/receiverequestdialog.h
+++ b/src/qt/receiverequestdialog.h
@@ -15,6 +15,9 @@ namespace Ui {
class ReceiveRequestDialog;
}
class OptionsModel;
+QT_BEGIN_NAMESPACE
+class QMenu;
+QT_END_NAMESPACE
/* Label widget for QR code. This image can be dragged, dropped, copied and saved
* to disk.
@@ -33,6 +36,10 @@ public slots:
protected:
virtual void mousePressEvent(QMouseEvent *event);
+ virtual void contextMenuEvent(QContextMenuEvent *event);
+
+private:
+ QMenu *contextMenu;
};
class ReceiveRequestDialog : public QDialog
diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp
index 78a92ce1e9..1ed8a8e866 100644
--- a/src/rpcblockchain.cpp
+++ b/src/rpcblockchain.cpp
@@ -6,6 +6,7 @@
#include "rpcserver.h"
#include "main.h"
#include "sync.h"
+#include "checkpoints.h"
#include <stdint.h>
@@ -429,3 +430,38 @@ Value verifychain(const Array& params, bool fHelp)
return VerifyDB(nCheckLevel, nCheckDepth);
}
+Value getblockchaininfo(const Array& params, bool fHelp)
+{
+ if (fHelp || params.size() != 0)
+ throw runtime_error(
+ "getblockchaininfo\n"
+ "Returns an object containing various state info regarding block chain processing.\n"
+ "\nResult:\n"
+ "{\n"
+ " \"chain\": \"xxxx\", (string) current chain (main, testnet3, regtest)\n"
+ " \"blocks\": xxxxxx, (numeric) the current number of blocks processed in the server\n"
+ " \"bestblockhash\": \"...\", (string) the hash of the currently best block\n"
+ " \"difficulty\": xxxxxx, (numeric) the current difficulty\n"
+ " \"verificationprogress\": xxxx, (numeric) estimate of verification progress [0..1]\n"
+ " \"chainwork\": \"xxxx\" (string) total amount of work in active chain, in hexadecimal\n"
+ "}\n"
+ "\nExamples:\n"
+ + HelpExampleCli("getblockchaininfo", "")
+ + HelpExampleRpc("getblockchaininfo", "")
+ );
+
+ proxyType proxy;
+ GetProxy(NET_IPV4, proxy);
+
+ Object obj;
+ std::string chain = Params().DataDir();
+ if(chain.empty())
+ chain = "main";
+ obj.push_back(Pair("chain", chain));
+ obj.push_back(Pair("blocks", (int)chainActive.Height()));
+ obj.push_back(Pair("bestblockhash", chainActive.Tip()->GetBlockHash().GetHex()));
+ obj.push_back(Pair("difficulty", (double)GetDifficulty()));
+ obj.push_back(Pair("verificationprogress", Checkpoints::GuessVerificationProgress(chainActive.Tip())));
+ obj.push_back(Pair("chainwork", chainActive.Tip()->nChainWork.GetHex()));
+ return obj;
+}
diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp
index 1b56d9ae7d..573d6cd3f6 100644
--- a/src/rpcnet.cpp
+++ b/src/rpcnet.cpp
@@ -333,3 +333,54 @@ Value getnettotals(const Array& params, bool fHelp)
obj.push_back(Pair("timemillis", static_cast<boost::int64_t>(GetTimeMillis())));
return obj;
}
+
+Value getnetworkinfo(const Array& params, bool fHelp)
+{
+ if (fHelp || params.size() != 0)
+ throw runtime_error(
+ "getnetworkinfo\n"
+ "Returns an object containing various state info regarding P2P networking.\n"
+ "\nResult:\n"
+ "{\n"
+ " \"version\": xxxxx, (numeric) the server version\n"
+ " \"protocolversion\": xxxxx, (numeric) the protocol version\n"
+ " \"timeoffset\": xxxxx, (numeric) the time offset\n"
+ " \"connections\": xxxxx, (numeric) the number of connections\n"
+ " \"proxy\": \"host:port\", (string, optional) the proxy used by the server\n"
+ " \"relayfee\": x.xxxx, (numeric) minimum relay fee for non-free transactions in btc/kb\n"
+ " \"localaddresses\": [, (array) list of local addresses\n"
+ " \"address\": \"xxxx\", (string) network address\n"
+ " \"port\": xxx, (numeric) network port\n"
+ " \"score\": xxx (numeric) relative score\n"
+ " ]\n"
+ "}\n"
+ "\nExamples:\n"
+ + HelpExampleCli("getnetworkinfo", "")
+ + HelpExampleRpc("getnetworkinfo", "")
+ );
+
+ proxyType proxy;
+ GetProxy(NET_IPV4, proxy);
+
+ Object obj;
+ obj.push_back(Pair("version", (int)CLIENT_VERSION));
+ obj.push_back(Pair("protocolversion",(int)PROTOCOL_VERSION));
+ obj.push_back(Pair("timeoffset", (boost::int64_t)GetTimeOffset()));
+ obj.push_back(Pair("connections", (int)vNodes.size()));
+ obj.push_back(Pair("proxy", (proxy.first.IsValid() ? proxy.first.ToStringIPPort() : string())));
+ obj.push_back(Pair("relayfee", ValueFromAmount(CTransaction::nMinRelayTxFee)));
+ Array localAddresses;
+ {
+ LOCK(cs_mapLocalHost);
+ BOOST_FOREACH(const PAIRTYPE(CNetAddr, LocalServiceInfo) &item, mapLocalHost)
+ {
+ Object rec;
+ rec.push_back(Pair("address", item.first.ToString()));
+ rec.push_back(Pair("port", item.second.nPort));
+ rec.push_back(Pair("score", item.second.nScore));
+ localAddresses.push_back(rec);
+ }
+ }
+ obj.push_back(Pair("localaddresses", localAddresses));
+ return obj;
+}
diff --git a/src/rpcrawtransaction.cpp b/src/rpcrawtransaction.cpp
index 70a5bdf29b..50734a5c11 100644
--- a/src/rpcrawtransaction.cpp
+++ b/src/rpcrawtransaction.cpp
@@ -400,12 +400,11 @@ Value decoderawtransaction(const Array& params, bool fHelp)
"\nReturn a JSON object representing the serialized, hex-encoded transaction.\n"
"\nArguments:\n"
- "1. \"txid\" (string, required) The transaction hex string\n"
+ "1. \"hex\" (string, required) The transaction hex string\n"
"\nResult:\n"
"{\n"
- " \"hex\" : \"data\", (string) The serialized, hex-encoded data for 'txid'\n"
- " \"txid\" : \"id\", (string) The transaction id (same as provided)\n"
+ " \"txid\" : \"id\", (string) The transaction id\n"
" \"version\" : n, (numeric) The version\n"
" \"locktime\" : ttt, (numeric) The lock time\n"
" \"vin\" : [ (array of json objects)\n"
@@ -437,10 +436,6 @@ Value decoderawtransaction(const Array& params, bool fHelp)
" }\n"
" ,...\n"
" ],\n"
- " \"blockhash\" : \"hash\", (string) the block hash\n"
- " \"confirmations\" : n, (numeric) The confirmations\n"
- " \"time\" : ttt, (numeric) The transaction time in seconds since epoch (Jan 1 1970 GMT)\n"
- " \"blocktime\" : ttt (numeric) The block time in seconds since epoch (Jan 1 1970 GMT)\n"
"}\n"
"\nExamples:\n"
diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp
index d771a42427..f78cb420f4 100644
--- a/src/rpcserver.cpp
+++ b/src/rpcserver.cpp
@@ -228,6 +228,7 @@ static const CRPCCommand vRPCCommands[] =
{ "stop", &stop, true, true, false },
/* P2P networking */
+ { "getnetworkinfo", &getnetworkinfo, true, false, false },
{ "addnode", &addnode, true, true, false },
{ "getaddednodeinfo", &getaddednodeinfo, true, true, false },
{ "getconnectioncount", &getconnectioncount, true, false, false },
@@ -236,6 +237,7 @@ static const CRPCCommand vRPCCommands[] =
{ "ping", &ping, true, false, false },
/* Block chain and UTXO */
+ { "getblockchaininfo", &getblockchaininfo, true, false, false },
{ "getbestblockhash", &getbestblockhash, true, false, false },
{ "getblockcount", &getblockcount, true, false, false },
{ "getblock", &getblock, false, false, false },
diff --git a/src/rpcserver.h b/src/rpcserver.h
index ea03c09bf6..1092c691be 100644
--- a/src/rpcserver.h
+++ b/src/rpcserver.h
@@ -164,6 +164,8 @@ extern json_spirit::Value encryptwallet(const json_spirit::Array& params, bool f
extern json_spirit::Value validateaddress(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value getinfo(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value getwalletinfo(const json_spirit::Array& params, bool fHelp);
+extern json_spirit::Value getblockchaininfo(const json_spirit::Array& params, bool fHelp);
+extern json_spirit::Value getnetworkinfo(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value getrawtransaction(const json_spirit::Array& params, bool fHelp); // in rcprawtransaction.cpp
extern json_spirit::Value listunspent(const json_spirit::Array& params, bool fHelp);
diff --git a/src/script.cpp b/src/script.cpp
index a5cdc9712d..4e2eeaf075 100644
--- a/src/script.cpp
+++ b/src/script.cpp
@@ -5,7 +5,6 @@
#include "script.h"
-#include "bignum.h"
#include "core.h"
#include "hash.h"
#include "key.h"
@@ -25,22 +24,13 @@ typedef vector<unsigned char> valtype;
static const valtype vchFalse(0);
static const valtype vchZero(0);
static const valtype vchTrue(1, 1);
-static const CBigNum bnZero(0);
-static const CBigNum bnOne(1);
-static const CBigNum bnFalse(0);
-static const CBigNum bnTrue(1);
-static const size_t nMaxNumSize = 4;
+static const CScriptNum bnZero(0);
+static const CScriptNum bnOne(1);
+static const CScriptNum bnFalse(0);
+static const CScriptNum bnTrue(1);
bool CheckSig(vector<unsigned char> vchSig, const vector<unsigned char> &vchPubKey, const CScript &scriptCode, const CTransaction& txTo, unsigned int nIn, int nHashType, int flags);
-CBigNum CastToBigNum(const valtype& vch)
-{
- if (vch.size() > nMaxNumSize)
- throw runtime_error("CastToBigNum() : overflow");
- // Get rid of extra leading zeros
- return CBigNum(CBigNum(vch).getvch());
-}
-
bool CastToBool(const valtype& vch)
{
for (unsigned int i = 0; i < vch.size(); i++)
@@ -306,7 +296,6 @@ bool IsCanonicalSignature(const valtype &vchSig, unsigned int flags) {
bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, const CTransaction& txTo, unsigned int nIn, unsigned int flags, int nHashType)
{
- CAutoBN_CTX pctx;
CScript::const_iterator pc = script.begin();
CScript::const_iterator pend = script.end();
CScript::const_iterator pbegincodehash = script.begin();
@@ -380,7 +369,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
case OP_16:
{
// ( -- value)
- CBigNum bn((int)opcode - (int)(OP_1 - 1));
+ CScriptNum bn((int)opcode - (int)(OP_1 - 1));
stack.push_back(bn.getvch());
}
break;
@@ -556,7 +545,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
case OP_DEPTH:
{
// -- stacksize
- CBigNum bn(stack.size());
+ CScriptNum bn(stack.size());
stack.push_back(bn.getvch());
}
break;
@@ -606,7 +595,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
// (xn ... x2 x1 x0 n - ... x2 x1 x0 xn)
if (stack.size() < 2)
return false;
- int n = CastToBigNum(stacktop(-1)).getint();
+ int n = CScriptNum(stacktop(-1)).getint();
popstack(stack);
if (n < 0 || n >= (int)stack.size())
return false;
@@ -654,7 +643,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
// (in -- in size)
if (stack.size() < 1)
return false;
- CBigNum bn(stacktop(-1).size());
+ CScriptNum bn(stacktop(-1).size());
stack.push_back(bn.getvch());
}
break;
@@ -705,7 +694,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
// (in -- out)
if (stack.size() < 1)
return false;
- CBigNum bn = CastToBigNum(stacktop(-1));
+ CScriptNum bn(stacktop(-1));
switch (opcode)
{
case OP_1ADD: bn += bnOne; break;
@@ -738,9 +727,9 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
// (x1 x2 -- out)
if (stack.size() < 2)
return false;
- CBigNum bn1 = CastToBigNum(stacktop(-2));
- CBigNum bn2 = CastToBigNum(stacktop(-1));
- CBigNum bn;
+ CScriptNum bn1(stacktop(-2));
+ CScriptNum bn2(stacktop(-1));
+ CScriptNum bn(0);
switch (opcode)
{
case OP_ADD:
@@ -783,9 +772,9 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
// (x min max -- out)
if (stack.size() < 3)
return false;
- CBigNum bn1 = CastToBigNum(stacktop(-3));
- CBigNum bn2 = CastToBigNum(stacktop(-2));
- CBigNum bn3 = CastToBigNum(stacktop(-1));
+ CScriptNum bn1(stacktop(-3));
+ CScriptNum bn2(stacktop(-2));
+ CScriptNum bn3(stacktop(-1));
bool fValue = (bn2 <= bn1 && bn1 < bn3);
popstack(stack);
popstack(stack);
@@ -882,7 +871,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
if ((int)stack.size() < i)
return false;
- int nKeysCount = CastToBigNum(stacktop(-i)).getint();
+ int nKeysCount = CScriptNum(stacktop(-i)).getint();
if (nKeysCount < 0 || nKeysCount > 20)
return false;
nOpCount += nKeysCount;
@@ -893,7 +882,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
if ((int)stack.size() < i)
return false;
- int nSigsCount = CastToBigNum(stacktop(-i)).getint();
+ int nSigsCount = CScriptNum(stacktop(-i)).getint();
if (nSigsCount < 0 || nSigsCount > nKeysCount)
return false;
int isig = ++i;
diff --git a/src/script.h b/src/script.h
index bbcdad159c..af9c794a31 100644
--- a/src/script.h
+++ b/src/script.h
@@ -6,7 +6,6 @@
#ifndef H_BITCOIN_SCRIPT
#define H_BITCOIN_SCRIPT
-#include "bignum.h"
#include "key.h"
#include "util.h"
@@ -25,6 +24,155 @@ class CTransaction;
static const unsigned int MAX_SCRIPT_ELEMENT_SIZE = 520; // bytes
static const unsigned int MAX_OP_RETURN_RELAY = 40; // bytes
+class scriptnum_error : public std::runtime_error
+{
+public:
+ explicit scriptnum_error(const std::string& str) : std::runtime_error(str) {}
+};
+
+class CScriptNum
+{
+// Numeric opcodes (OP_1ADD, etc) are restricted to operating on 4-byte integers.
+// The semantics are subtle, though: operands must be in the range [-2^31 +1...2^31 -1],
+// but results may overflow (and are valid as long as they are not used in a subsequent
+// numeric operation). CScriptNum enforces those semantics by storing results as
+// an int64 and allowing out-of-range values to be returned as a vector of bytes but
+// throwing an exception if arithmetic is done or the result is interpreted as an integer.
+public:
+
+ explicit CScriptNum(const int64_t& n)
+ {
+ m_value = n;
+ }
+
+ explicit CScriptNum(const std::vector<unsigned char>& vch)
+ {
+ if (vch.size() > nMaxNumSize)
+ throw scriptnum_error("CScriptNum(const std::vector<unsigned char>&) : overflow");
+ m_value = set_vch(vch);
+ }
+
+ inline bool operator==(const int64_t& rhs) const { return m_value == rhs; }
+ inline bool operator!=(const int64_t& rhs) const { return m_value != rhs; }
+ inline bool operator<=(const int64_t& rhs) const { return m_value <= rhs; }
+ inline bool operator< (const int64_t& rhs) const { return m_value < rhs; }
+ inline bool operator>=(const int64_t& rhs) const { return m_value >= rhs; }
+ inline bool operator> (const int64_t& rhs) const { return m_value > rhs; }
+
+ inline bool operator==(const CScriptNum& rhs) const { return operator==(rhs.m_value); }
+ inline bool operator!=(const CScriptNum& rhs) const { return operator!=(rhs.m_value); }
+ inline bool operator<=(const CScriptNum& rhs) const { return operator<=(rhs.m_value); }
+ inline bool operator< (const CScriptNum& rhs) const { return operator< (rhs.m_value); }
+ inline bool operator>=(const CScriptNum& rhs) const { return operator>=(rhs.m_value); }
+ inline bool operator> (const CScriptNum& rhs) const { return operator> (rhs.m_value); }
+
+ inline CScriptNum operator+( const int64_t& rhs) const { return CScriptNum(m_value + rhs);}
+ inline CScriptNum operator-( const int64_t& rhs) const { return CScriptNum(m_value - rhs);}
+ inline CScriptNum operator+( const CScriptNum& rhs) const { return operator+(rhs.m_value); }
+ inline CScriptNum operator-( const CScriptNum& rhs) const { return operator-(rhs.m_value); }
+
+ inline CScriptNum& operator+=( const CScriptNum& rhs) { return operator+=(rhs.m_value); }
+ inline CScriptNum& operator-=( const CScriptNum& rhs) { return operator-=(rhs.m_value); }
+
+ inline CScriptNum operator-() const
+ {
+ assert(m_value != std::numeric_limits<int64_t>::min());
+ return CScriptNum(-m_value);
+ }
+
+ inline CScriptNum& operator=( const int64_t& rhs)
+ {
+ m_value = rhs;
+ return *this;
+ }
+
+ inline CScriptNum& operator+=( const int64_t& rhs)
+ {
+ assert(rhs == 0 || (rhs > 0 && m_value <= std::numeric_limits<int64_t>::max() - rhs) ||
+ (rhs < 0 && m_value >= std::numeric_limits<int64_t>::min() - rhs));
+ m_value += rhs;
+ return *this;
+ }
+
+ inline CScriptNum& operator-=( const int64_t& rhs)
+ {
+ assert(rhs == 0 || (rhs > 0 && m_value >= std::numeric_limits<int64_t>::min() + rhs) ||
+ (rhs < 0 && m_value <= std::numeric_limits<int64_t>::max() + rhs));
+ m_value -= rhs;
+ return *this;
+ }
+
+ int getint() const
+ {
+ if (m_value > std::numeric_limits<int>::max())
+ return std::numeric_limits<int>::max();
+ else if (m_value < std::numeric_limits<int>::min())
+ return std::numeric_limits<int>::min();
+ return m_value;
+ }
+
+ std::vector<unsigned char> getvch() const
+ {
+ return serialize(m_value);
+ }
+
+ static std::vector<unsigned char> serialize(const int64_t& value)
+ {
+ if(value == 0)
+ return std::vector<unsigned char>();
+
+ std::vector<unsigned char> result;
+ const bool neg = value < 0;
+ uint64_t absvalue = neg ? -value : value;
+
+ while(absvalue)
+ {
+ result.push_back(absvalue & 0xff);
+ absvalue >>= 8;
+ }
+
+
+// - If the most significant byte is >= 0x80 and the value is positive, push a
+// new zero-byte to make the significant byte < 0x80 again.
+
+// - If the most significant byte is >= 0x80 and the value is negative, push a
+// new 0x80 byte that will be popped off when converting to an integral.
+
+// - If the most significant byte is < 0x80 and the value is negative, add
+// 0x80 to it, since it will be subtracted and interpreted as a negative when
+// converting to an integral.
+
+ if (result.back() & 0x80)
+ result.push_back(neg ? 0x80 : 0);
+ else if (neg)
+ result.back() |= 0x80;
+
+ return result;
+ }
+
+ static const size_t nMaxNumSize = 4;
+
+private:
+ static int64_t set_vch(const std::vector<unsigned char>& vch)
+ {
+ if (vch.empty())
+ return 0;
+
+ int64_t result = 0;
+ for (size_t i = 0; i != vch.size(); ++i)
+ result |= static_cast<int64_t>(vch[i]) << 8*i;
+
+ // If the input vector's most significant byte is 0x80, remove it from
+ // the result's msb and return a negative.
+ if (vch.back() & 0x80)
+ return -(result & ~(0x80 << (8 * (vch.size() - 1))));
+
+ return result;
+ }
+
+ int64_t m_value;
+};
+
/** Signature hash types/flags */
enum
{
@@ -245,7 +393,7 @@ const char* GetOpName(opcodetype opcode);
inline std::string ValueString(const std::vector<unsigned char>& vch)
{
if (vch.size() <= 4)
- return strprintf("%d", CBigNum(vch).getint());
+ return strprintf("%d", CScriptNum(vch).getint());
else
return HexStr(vch);
}
@@ -281,26 +429,10 @@ protected:
}
else
{
- CBigNum bn(n);
- *this << bn.getvch();
+ *this << CScriptNum::serialize(n);
}
return *this;
}
-
- CScript& push_uint64(uint64_t n)
- {
- if (n >= 1 && n <= 16)
- {
- push_back(n + (OP_1 - 1));
- }
- else
- {
- CBigNum bn(n);
- *this << bn.getvch();
- }
- return *this;
- }
-
public:
CScript() { }
CScript(const CScript& b) : std::vector<unsigned char>(b.begin(), b.end()) { }
@@ -323,35 +455,15 @@ public:
}
- //explicit CScript(char b) is not portable. Use 'signed char' or 'unsigned char'.
- explicit CScript(signed char b) { operator<<(b); }
- explicit CScript(short b) { operator<<(b); }
- explicit CScript(int b) { operator<<(b); }
- explicit CScript(long b) { operator<<(b); }
- explicit CScript(long long b) { operator<<(b); }
- explicit CScript(unsigned char b) { operator<<(b); }
- explicit CScript(unsigned int b) { operator<<(b); }
- explicit CScript(unsigned short b) { operator<<(b); }
- explicit CScript(unsigned long b) { operator<<(b); }
- explicit CScript(unsigned long long b) { operator<<(b); }
+ CScript(int64_t b) { operator<<(b); }
explicit CScript(opcodetype b) { operator<<(b); }
explicit CScript(const uint256& b) { operator<<(b); }
- explicit CScript(const CBigNum& b) { operator<<(b); }
+ explicit CScript(const CScriptNum& b) { operator<<(b); }
explicit CScript(const std::vector<unsigned char>& b) { operator<<(b); }
- //CScript& operator<<(char b) is not portable. Use 'signed char' or 'unsigned char'.
- CScript& operator<<(signed char b) { return push_int64(b); }
- CScript& operator<<(short b) { return push_int64(b); }
- CScript& operator<<(int b) { return push_int64(b); }
- CScript& operator<<(long b) { return push_int64(b); }
- CScript& operator<<(long long b) { return push_int64(b); }
- CScript& operator<<(unsigned char b) { return push_uint64(b); }
- CScript& operator<<(unsigned int b) { return push_uint64(b); }
- CScript& operator<<(unsigned short b) { return push_uint64(b); }
- CScript& operator<<(unsigned long b) { return push_uint64(b); }
- CScript& operator<<(unsigned long long b) { return push_uint64(b); }
+ CScript& operator<<(int64_t b) { return push_int64(b); }
CScript& operator<<(opcodetype opcode)
{
@@ -383,7 +495,7 @@ public:
return *this;
}
- CScript& operator<<(const CBigNum& b)
+ CScript& operator<<(const CScriptNum& b)
{
*this << b.getvch();
return *this;
diff --git a/src/test/Makefile.am b/src/test/Makefile.am
index b375ba1306..e12f4904f1 100644
--- a/src/test/Makefile.am
+++ b/src/test/Makefile.am
@@ -61,6 +61,7 @@ test_bitcoin_SOURCES = \
transaction_tests.cpp \
uint256_tests.cpp \
util_tests.cpp \
+ scriptnum_tests.cpp \
sighash_tests.cpp \
$(JSON_TEST_FILES) $(RAW_TEST_FILES)
diff --git a/src/test/data/script_invalid.json b/src/test/data/script_invalid.json
index 8cb365a46f..d623e974b8 100644
--- a/src/test/data/script_invalid.json
+++ b/src/test/data/script_invalid.json
@@ -1,8 +1,18 @@
[
+["", "DEPTH", "Test the test: we should have an empty stack after scriptSig evaluation"],
+[" ", "DEPTH", "and multiple spaces should not change that."],
+[" ", "DEPTH"],
+[" ", "DEPTH"],
+
["", ""],
["", "NOP"],
+["", "NOP DEPTH"],
["NOP", ""],
+["NOP", "DEPTH"],
["NOP","NOP"],
+["NOP","NOP DEPTH"],
+
+["DEPTH", ""],
["0x4c01","0x01 NOP", "PUSHDATA1 with not enough bytes"],
["0x4d0200ff","0x01 NOP", "PUSHDATA2 with not enough bytes"],
@@ -257,7 +267,10 @@
["1","0xba", "0xba == OP_NOP10 + 1"],
["2147483648", "1ADD 1", "We cannot do math on 5-byte integers"],
+["2147483648", "NEGATE 1", "We cannot do math on 5-byte integers"],
["-2147483648", "1ADD 1", "Because we use a sign bit, -2147483648 is also 5 bytes"],
+["2147483647", "1ADD 1SUB 1", "We cannot do math on 5-byte integers, even if the result is 4-bytes"],
+["2147483648", "1SUB 1", "We cannot do math on 5-byte integers, even if the result is 4-bytes"],
["1", "1 ENDIF", "ENDIF without IF"],
["1", "IF 1", "IF without ENDIF"],
@@ -321,6 +334,22 @@
["NOP", "HASH160 1"],
["NOP", "HASH256 1"],
+["",
+"0 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG",
+"202 CHECKMULTISIGS, fails due to 201 op limit"],
+
+["1",
+"0 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY 0 0 CHECKMULTISIGVERIFY"],
+
+["",
+"NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG",
+"Fails due to 201 sig op limit"],
+
+["1",
+"NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY"],
+
+
+
["NOP 0x01 1", "HASH160 0x14 0xda1745e9b549bd0bfa1a569971c77eba30cd5a4b EQUAL", "Tests for Script.IsPushOnly()"],
["NOP1 0x01 1", "HASH160 0x14 0xda1745e9b549bd0bfa1a569971c77eba30cd5a4b EQUAL"],
diff --git a/src/test/data/script_valid.json b/src/test/data/script_valid.json
index 3b4c191865..7546a3b1fe 100644
--- a/src/test/data/script_valid.json
+++ b/src/test/data/script_valid.json
@@ -1,4 +1,16 @@
[
+["", "DEPTH 0 EQUAL", "Test the test: we should have an empty stack after scriptSig evaluation"],
+[" ", "DEPTH 0 EQUAL", "and multiple spaces should not change that."],
+[" ", "DEPTH 0 EQUAL"],
+[" ", "DEPTH 0 EQUAL"],
+["1 2", "2 EQUALVERIFY 1 EQUAL", "Similarly whitespace around and between symbols"],
+["1 2", "2 EQUALVERIFY 1 EQUAL"],
+[" 1 2", "2 EQUALVERIFY 1 EQUAL"],
+["1 2 ", "2 EQUALVERIFY 1 EQUAL"],
+[" 1 2 ", "2 EQUALVERIFY 1 EQUAL"],
+
+["1", ""],
+
["0x01 0x0b", "11 EQUAL", "push 1 byte"],
["0x02 0x417a", "'Az' EQUAL"],
["0x4b 0x417a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a",
@@ -97,6 +109,9 @@
["8388608", "SIZE 4 EQUAL"],
["2147483647", "SIZE 4 EQUAL"],
["2147483648", "SIZE 5 EQUAL"],
+["549755813887", "SIZE 5 EQUAL"],
+["549755813888", "SIZE 6 EQUAL"],
+["9223372036854775807", "SIZE 8 EQUAL"],
["-1", "SIZE 1 EQUAL"],
["-127", "SIZE 1 EQUAL"],
["-128", "SIZE 2 EQUAL"],
@@ -106,6 +121,9 @@
["-8388608", "SIZE 4 EQUAL"],
["-2147483647", "SIZE 4 EQUAL"],
["-2147483648", "SIZE 5 EQUAL"],
+["-549755813887", "SIZE 5 EQUAL"],
+["-549755813888", "SIZE 6 EQUAL"],
+["-9223372036854775807", "SIZE 8 EQUAL"],
["'abcdefghijklmnopqrstuvwxyz'", "SIZE 26 EQUAL"],
@@ -306,6 +324,9 @@
["8388608", "0x04 0x00008000 EQUAL"],
["2147483647", "0x04 0xFFFFFF7F EQUAL"],
["2147483648", "0x05 0x0000008000 EQUAL"],
+["549755813887", "0x05 0xFFFFFFFF7F EQUAL"],
+["549755813888", "0x06 0xFFFFFFFF7F EQUAL"],
+["9223372036854775807", "0x08 0xFFFFFFFFFFFFFF7F EQUAL"],
["-1", "0x01 0x81 EQUAL", "Numbers are little-endian with the MSB being a sign bit"],
["-127", "0x01 0xFF EQUAL"],
["-128", "0x02 0x8080 EQUAL"],
@@ -315,6 +336,10 @@
["-8388608", "0x04 0x00008080 EQUAL"],
["-2147483647", "0x04 0xFFFFFFFF EQUAL"],
["-2147483648", "0x05 0x0000008080 EQUAL"],
+["-4294967295", "0x05 0xFFFFFFFF80 EQUAL"],
+["-549755813887", "0x05 0xFFFFFFFFFF EQUAL"],
+["-549755813888", "0x06 0x000000008080 EQUAL"],
+["-9223372036854775807", "0x08 0xFFFFFFFFFFFFFFFF EQUAL"],
["2147483647", "1ADD 2147483648 EQUAL", "We can do math on 4-byte integers, and compare 5-byte ones"],
["2147483647", "1ADD 1"],
@@ -402,6 +427,70 @@
["NOP", "NOP9 1"],
["NOP", "NOP10 1"],
+["", "0 0 0 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "CHECKMULTISIG is allowed to have zero keys and/or sigs"],
+["", "0 0 0 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 0 1 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "Zero sigs means no sigs are checked"],
+["", "0 0 0 1 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+
+["", "0 0 0 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "CHECKMULTISIG is allowed to have zero keys and/or sigs"],
+["", "0 0 0 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 0 1 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "Zero sigs means no sigs are checked"],
+["", "0 0 0 1 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+
+["", "0 0 'a' 'b' 2 CHECKMULTISIG VERIFY DEPTH 0 EQUAL", "Test from up to 20 pubkeys, all not checked"],
+["", "0 0 'a' 'b' 'c' 3 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 4 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 5 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 6 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 7 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 8 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 9 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 10 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 11 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 12 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 13 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 14 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 15 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 16 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 17 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 18 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 19 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG VERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 1 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 2 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 3 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 4 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 5 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 6 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 7 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 8 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 9 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 10 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 11 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 12 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 13 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 14 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 15 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 16 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 17 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 18 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 19 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+["", "0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY DEPTH 0 EQUAL"],
+
+["",
+"0 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG 0 0 CHECKMULTISIG",
+"nOpCount is incremented by the number of keys evaluated in addition to the usual one op per op. In this case we have zero keys, so we can execute 201 CHECKMULTISIGS"],
+
+["1",
+"0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY 0 0 0 CHECKMULTISIGVERIFY"],
+
+["",
+"NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIG",
+"Even though there are no signatures being checked nOpCount is incremented by the number of keys."],
+
+["1",
+"NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY 0 0 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 20 CHECKMULTISIGVERIFY"],
+
["0 0x01 1", "HASH160 0x14 0xda1745e9b549bd0bfa1a569971c77eba30cd5a4b EQUAL", "Very basic P2SH"],
["0x4c 0 0x01 1", "HASH160 0x14 0xda1745e9b549bd0bfa1a569971c77eba30cd5a4b EQUAL"],
diff --git a/src/test/script_tests.cpp b/src/test/script_tests.cpp
index 7bc2bfb6dd..29d518d707 100644
--- a/src/test/script_tests.cpp
+++ b/src/test/script_tests.cpp
@@ -67,7 +67,11 @@ ParseScript(string s)
BOOST_FOREACH(string w, words)
{
- if (all(w, is_digit()) ||
+ if (w.size() == 0)
+ {
+ // Empty string, ignore. (boost::split given '' will return one word)
+ }
+ else if (all(w, is_digit()) ||
(starts_with(w, "-") && all(string(w.begin()+1, w.end()), is_digit())))
{
// Number
diff --git a/src/test/scriptnum_tests.cpp b/src/test/scriptnum_tests.cpp
new file mode 100644
index 0000000000..cd194cc4d9
--- /dev/null
+++ b/src/test/scriptnum_tests.cpp
@@ -0,0 +1,196 @@
+// Copyright (c) 2012-2014 The Bitcoin Core developers
+// Distributed under the MIT/X11 software license, see the accompanying
+// file COPYING or http://www.opensource.org/licenses/mit-license.php.
+
+#include "bignum.h"
+#include "script.h"
+#include <boost/test/unit_test.hpp>
+#include <limits.h>
+#include <stdint.h>
+BOOST_AUTO_TEST_SUITE(scriptnum_tests)
+
+static const int64_t values[] = \
+{ 0, 1, CHAR_MIN, CHAR_MAX, UCHAR_MAX, SHRT_MIN, USHRT_MAX, INT_MIN, INT_MAX, UINT_MAX, LONG_MIN, LONG_MAX };
+static const int64_t offsets[] = { 1, 0x79, 0x80, 0x81, 0xFF, 0x7FFF, 0x8000, 0xFFFF, 0x10000};
+
+static bool verify(const CBigNum& bignum, const CScriptNum& scriptnum)
+{
+ return bignum.getvch() == scriptnum.getvch() && bignum.getint() == scriptnum.getint();
+}
+
+static void CheckCreateVch(const int64_t& num)
+{
+ CBigNum bignum(num);
+ CScriptNum scriptnum(num);
+ BOOST_CHECK(verify(bignum, scriptnum));
+
+ CBigNum bignum2(bignum.getvch());
+ CScriptNum scriptnum2(scriptnum.getvch());
+ BOOST_CHECK(verify(bignum2, scriptnum2));
+
+ CBigNum bignum3(scriptnum2.getvch());
+ CScriptNum scriptnum3(bignum2.getvch());
+ BOOST_CHECK(verify(bignum3, scriptnum3));
+}
+
+static void CheckCreateInt(const int64_t& num)
+{
+ CBigNum bignum(num);
+ CScriptNum scriptnum(num);
+ BOOST_CHECK(verify(bignum, scriptnum));
+ BOOST_CHECK(verify(bignum.getint(), CScriptNum(scriptnum.getint())));
+ BOOST_CHECK(verify(scriptnum.getint(), CScriptNum(bignum.getint())));
+ BOOST_CHECK(verify(CBigNum(scriptnum.getint()).getint(), CScriptNum(CScriptNum(bignum.getint()).getint())));
+}
+
+
+static void CheckAdd(const int64_t& num1, const int64_t& num2)
+{
+ const CBigNum bignum1(num1);
+ const CBigNum bignum2(num2);
+ const CScriptNum scriptnum1(num1);
+ const CScriptNum scriptnum2(num2);
+ CBigNum bignum3(num1);
+ CBigNum bignum4(num1);
+ CScriptNum scriptnum3(num1);
+ CScriptNum scriptnum4(num1);
+
+ // int64_t overflow is undefined.
+ bool invalid = (((num2 > 0) && (num1 > (std::numeric_limits<int64_t>::max() - num2))) ||
+ ((num2 < 0) && (num1 < (std::numeric_limits<int64_t>::min() - num2))));
+ if (!invalid)
+ {
+ BOOST_CHECK(verify(bignum1 + bignum2, scriptnum1 + scriptnum2));
+ BOOST_CHECK(verify(bignum1 + bignum2, scriptnum1 + num2));
+ BOOST_CHECK(verify(bignum1 + bignum2, scriptnum2 + num1));
+ }
+}
+
+static void CheckNegate(const int64_t& num)
+{
+ const CBigNum bignum(num);
+ const CScriptNum scriptnum(num);
+
+ // -INT64_MIN is undefined
+ if (num != std::numeric_limits<int64_t>::min())
+ BOOST_CHECK(verify(-bignum, -scriptnum));
+}
+
+static void CheckSubtract(const int64_t& num1, const int64_t& num2)
+{
+ const CBigNum bignum1(num1);
+ const CBigNum bignum2(num2);
+ const CScriptNum scriptnum1(num1);
+ const CScriptNum scriptnum2(num2);
+ bool invalid = false;
+
+ // int64_t overflow is undefined.
+ invalid = ((num2 > 0 && num1 < std::numeric_limits<int64_t>::min() + num2) ||
+ (num2 < 0 && num1 > std::numeric_limits<int64_t>::max() + num2));
+ if (!invalid)
+ {
+ BOOST_CHECK(verify(bignum1 - bignum2, scriptnum1 - scriptnum2));
+ BOOST_CHECK(verify(bignum1 - bignum2, scriptnum1 - num2));
+ }
+
+ invalid = ((num1 > 0 && num2 < std::numeric_limits<int64_t>::min() + num1) ||
+ (num1 < 0 && num2 > std::numeric_limits<int64_t>::max() + num1));
+ if (!invalid)
+ {
+ BOOST_CHECK(verify(bignum2 - bignum1, scriptnum2 - scriptnum1));
+ BOOST_CHECK(verify(bignum2 - bignum1, scriptnum2 - num1));
+ }
+}
+
+static void CheckCompare(const int64_t& num1, const int64_t& num2)
+{
+ const CBigNum bignum1(num1);
+ const CBigNum bignum2(num2);
+ const CScriptNum scriptnum1(num1);
+ const CScriptNum scriptnum2(num2);
+
+ BOOST_CHECK((bignum1 == bignum1) == (scriptnum1 == scriptnum1));
+ BOOST_CHECK((bignum1 != bignum1) == (scriptnum1 != scriptnum1));
+ BOOST_CHECK((bignum1 < bignum1) == (scriptnum1 < scriptnum1));
+ BOOST_CHECK((bignum1 > bignum1) == (scriptnum1 > scriptnum1));
+ BOOST_CHECK((bignum1 >= bignum1) == (scriptnum1 >= scriptnum1));
+ BOOST_CHECK((bignum1 <= bignum1) == (scriptnum1 <= scriptnum1));
+
+ BOOST_CHECK((bignum1 == bignum1) == (scriptnum1 == num1));
+ BOOST_CHECK((bignum1 != bignum1) == (scriptnum1 != num1));
+ BOOST_CHECK((bignum1 < bignum1) == (scriptnum1 < num1));
+ BOOST_CHECK((bignum1 > bignum1) == (scriptnum1 > num1));
+ BOOST_CHECK((bignum1 >= bignum1) == (scriptnum1 >= num1));
+ BOOST_CHECK((bignum1 <= bignum1) == (scriptnum1 <= num1));
+
+ BOOST_CHECK((bignum1 == bignum2) == (scriptnum1 == scriptnum2));
+ BOOST_CHECK((bignum1 != bignum2) == (scriptnum1 != scriptnum2));
+ BOOST_CHECK((bignum1 < bignum2) == (scriptnum1 < scriptnum2));
+ BOOST_CHECK((bignum1 > bignum2) == (scriptnum1 > scriptnum2));
+ BOOST_CHECK((bignum1 >= bignum2) == (scriptnum1 >= scriptnum2));
+ BOOST_CHECK((bignum1 <= bignum2) == (scriptnum1 <= scriptnum2));
+
+ BOOST_CHECK((bignum1 == bignum2) == (scriptnum1 == num2));
+ BOOST_CHECK((bignum1 != bignum2) == (scriptnum1 != num2));
+ BOOST_CHECK((bignum1 < bignum2) == (scriptnum1 < num2));
+ BOOST_CHECK((bignum1 > bignum2) == (scriptnum1 > num2));
+ BOOST_CHECK((bignum1 >= bignum2) == (scriptnum1 >= num2));
+ BOOST_CHECK((bignum1 <= bignum2) == (scriptnum1 <= num2));
+}
+
+static void RunCreate(const int64_t& num)
+{
+ CheckCreateInt(num);
+ CScriptNum scriptnum(num);
+ if (scriptnum.getvch().size() <= CScriptNum::nMaxNumSize)
+ CheckCreateVch(num);
+ else
+ {
+ BOOST_CHECK_THROW (CheckCreateVch(num), scriptnum_error);
+ }
+}
+
+static void RunOperators(const int64_t& num1, const int64_t& num2)
+{
+ CheckAdd(num1, num2);
+ CheckSubtract(num1, num2);
+ CheckNegate(num1);
+ CheckCompare(num1, num2);
+}
+
+BOOST_AUTO_TEST_CASE(creation)
+{
+ for(size_t i = 0; i < sizeof(values) / sizeof(values[0]); ++i)
+ {
+ for(size_t j = 0; j < sizeof(offsets) / sizeof(offsets[0]); ++j)
+ {
+ RunCreate(values[i]);
+ RunCreate(values[i] + offsets[j]);
+ RunCreate(values[i] - offsets[j]);
+ }
+ }
+}
+
+BOOST_AUTO_TEST_CASE(operators)
+{
+ for(size_t i = 0; i < sizeof(values) / sizeof(values[0]); ++i)
+ {
+ for(size_t j = 0; j < sizeof(offsets) / sizeof(offsets[0]); ++j)
+ {
+ RunOperators(values[i], values[i]);
+ RunOperators(values[i], -values[i]);
+ RunOperators(values[i], values[j]);
+ RunOperators(values[i], -values[j]);
+ RunOperators(values[i] + values[j], values[j]);
+ RunOperators(values[i] + values[j], -values[j]);
+ RunOperators(values[i] - values[j], values[j]);
+ RunOperators(values[i] - values[j], -values[j]);
+ RunOperators(values[i] + values[j], values[i] + values[j]);
+ RunOperators(values[i] + values[j], values[i] - values[j]);
+ RunOperators(values[i] - values[j], values[i] + values[j]);
+ RunOperators(values[i] - values[j], values[i] - values[j]);
+ }
+ }
+}
+
+BOOST_AUTO_TEST_SUITE_END()
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 7cf2361096..418720de93 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -6,9 +6,9 @@
#include "wallet.h"
#include "base58.h"
+#include "checkpoints.h"
#include "coincontrol.h"
#include "net.h"
-#include "checkpoints.h"
#include <boost/algorithm/string/replace.hpp>
#include <openssl/rand.h>
@@ -16,7 +16,7 @@
using namespace std;
// Settings
-int64_t nTransactionFee = 0;
+int64_t nTransactionFee = DEFAULT_TRANSACTION_FEE;
bool bSpendZeroConfChange = true;
//////////////////////////////////////////////////////////////////////////////
diff --git a/src/wallet.h b/src/wallet.h
index 5fd56d0af6..b2c06d3f61 100644
--- a/src/wallet.h
+++ b/src/wallet.h
@@ -27,6 +27,8 @@
extern int64_t nTransactionFee;
extern bool bSpendZeroConfChange;
+// -paytxfee default
+static const int64_t DEFAULT_TRANSACTION_FEE = 0;
// -paytxfee will warn if called with a higher fee than this amount (in satoshis) per KB
static const int nHighTransactionFeeWarning = 0.01 * COIN;