diff --git a/Bitblocks-qt.pro b/Bitblocks-qt.pro index 899d7e0..60c3c89 100644 --- a/Bitblocks-qt.pro +++ b/Bitblocks-qt.pro @@ -12,6 +12,18 @@ greaterThan(QT_MAJOR_VERSION, 4) { DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 } +macx { +# + BOOST_INCLUDE_PATH=/usr/local/opt/boost162/include + BOOST_LIB_PATH=/usr/local/opt/boost162/lib + BDB_INCLUDE_PATH=/usr/local/opt/berkeley-db@4/include + BDB_LIB_PATH=/usr/local/opt/berkeley-db@4/lib + OPENSSL_INCLUDE_PATH=/usr/local/opt/openssl/include + OPENSSL_LIB_PATH=/usr/local/opt/openssl/lib + MINIUPNPC_INCLUDE_PATH=/usr/local/opt/miniupnpc/include + MINIUPNPC_LIB_PATH=/usr/local/opt/miniupnpc/lib + + } # for boost 1.37, add -mt to the boost libraries # use: qmake BOOST_LIB_SUFFIX=-mt # for boost thread win32 with _win32 sufix diff --git a/src/alert.cpp b/src/alert.cpp index ee872f1..90274b1 100644 --- a/src/alert.cpp +++ b/src/alert.cpp @@ -56,8 +56,8 @@ std::string CUnsignedAlert::ToString() const return strprintf( "CAlert(\n" " nVersion = %d\n" - " nRelayUntil = %"PRId64"\n" - " nExpiration = %"PRId64"\n" + " nRelayUntil = %" PRId64"\n" + " nExpiration = %" PRId64"\n" " nID = %d\n" " nCancel = %d\n" " setCancel = %s\n" diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index a72ab92..c7b871c 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -383,7 +383,7 @@ static string HTTPReply(int nStatus, const string& strMsg, bool keepalive) "HTTP/1.1 %d %s\r\n" "Date: %s\r\n" "Connection: %s\r\n" - "Content-Length: %"PRIszu"\r\n" + "Content-Length: %" PRIszu"\r\n" "Content-Type: application/json\r\n" "Server: bitblocks-json-rpc/%s\r\n" "\r\n" diff --git a/src/db.cpp b/src/db.cpp index c465a22..4bc4212 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -464,7 +464,7 @@ void CDBEnv::Flush(bool fShutdown) else mi++; } - printf("DBFlush(%s)%s ended %15"PRId64"ms\n", fShutdown ? "true" : "false", fDbEnvInit ? "" : " db not started", GetTimeMillis() - nStart); + printf("DBFlush(%s)%s ended %15" PRId64"ms\n", fShutdown ? "true" : "false", fDbEnvInit ? "" : " db not started", GetTimeMillis() - nStart); if (fShutdown) { char** listp; diff --git a/src/init.cpp b/src/init.cpp index e26b5b8..d082769 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -726,7 +726,7 @@ bool AppInit2() printf("Shutdown requested. Exiting.\n"); return false; } - printf(" block index %15"PRId64"ms\n", GetTimeMillis() - nStart); + printf(" block index %15" PRId64"ms\n", GetTimeMillis() - nStart); if (GetBoolArg("-printblockindex") || GetBoolArg("-printblocktree")) { @@ -827,7 +827,7 @@ bool AppInit2() } printf("%s", strErrors.str().c_str()); - printf(" wallet %15"PRId64"ms\n", GetTimeMillis() - nStart); + printf(" wallet %15" PRId64"ms\n", GetTimeMillis() - nStart); RegisterWallet(pwalletMain); @@ -847,7 +847,7 @@ bool AppInit2() printf("Rescanning last %i blocks (from block %i)...\n", pindexBest->nHeight - pindexRescan->nHeight, pindexRescan->nHeight); nStart = GetTimeMillis(); pwalletMain->ScanForWalletTransactions(pindexRescan, true); - printf(" rescan %15"PRId64"ms\n", GetTimeMillis() - nStart); + printf(" rescan %15" PRId64"ms\n", GetTimeMillis() - nStart); } // ********************************************************* Step 9: import blocks @@ -889,7 +889,7 @@ bool AppInit2() printf("Invalid or missing peers.dat; recreating\n"); } - printf("Loaded %i addresses from peers.dat %"PRId64"ms\n", + printf("Loaded %i addresses from peers.dat %" PRId64"ms\n", addrman.size(), GetTimeMillis() - nStart); // ********************************************************* Step 11: start node @@ -900,11 +900,11 @@ bool AppInit2() RandAddSeedPerfmon(); //// debug print - printf("mapBlockIndex.size() = %"PRIszu"\n", mapBlockIndex.size()); + printf("mapBlockIndex.size() = %" PRIszu"\n", mapBlockIndex.size()); printf("nBestHeight = %d\n", nBestHeight); - printf("setKeyPool.size() = %"PRIszu"\n", pwalletMain->setKeyPool.size()); - printf("mapWallet.size() = %"PRIszu"\n", pwalletMain->mapWallet.size()); - printf("mapAddressBook.size() = %"PRIszu"\n", pwalletMain->mapAddressBook.size()); + printf("setKeyPool.size() = %" PRIszu"\n", pwalletMain->setKeyPool.size()); + printf("mapWallet.size() = %" PRIszu"\n", pwalletMain->mapWallet.size()); + printf("mapAddressBook.size() = %" PRIszu"\n", pwalletMain->mapAddressBook.size()); if (!NewThread(StartNode, NULL)) InitError(_("Error: could not start node")); diff --git a/src/irc.cpp b/src/irc.cpp index cecef50..e736529 100644 --- a/src/irc.cpp +++ b/src/irc.cpp @@ -260,7 +260,7 @@ void ThreadIRCSeed2(void* parg) if (!fNoListen && GetLocal(addrLocal, &addrIPv4) && nNameRetry<3) strMyName = EncodeAddress(GetLocalAddress(&addrConnect)); if (strMyName == "") - strMyName = strprintf("x%"PRIu64"", GetRand(1000000000)); + strMyName = strprintf("x%" PRIu64"", GetRand(1000000000)); Send(hSocket, strprintf("NICK %s\r", strMyName.c_str()).c_str()); Send(hSocket, strprintf("USER %s 8 * : %s\r", strMyName.c_str(), strMyName.c_str()).c_str()); diff --git a/src/kernel.cpp b/src/kernel.cpp index 06db326..86c34da 100644 --- a/src/kernel.cpp +++ b/src/kernel.cpp @@ -137,7 +137,7 @@ bool ComputeNextStakeModifier(const CBlockIndex* pindexPrev, uint64_t& nStakeMod return error("ComputeNextStakeModifier: unable to get last modifier"); if (fDebug) { - printf("ComputeNextStakeModifier: prev modifier=0x%016"PRIx64" time=%s\n", nStakeModifier, DateTimeStrFormat(nModifierTime).c_str()); + printf("ComputeNextStakeModifier: prev modifier=0x%016" PRIx64" time=%s\n", nStakeModifier, DateTimeStrFormat(nModifierTime).c_str()); } if (nModifierTime / nModifierInterval >= pindexPrev->GetBlockTime() / nModifierInterval) return true; @@ -200,7 +200,7 @@ bool ComputeNextStakeModifier(const CBlockIndex* pindexPrev, uint64_t& nStakeMod } if (fDebug) { - printf("ComputeNextStakeModifier: new modifier=0x%016"PRIx64" time=%s\n", nStakeModifierNew, DateTimeStrFormat(pindexPrev->GetBlockTime()).c_str()); + printf("ComputeNextStakeModifier: new modifier=0x%016" PRIx64" time=%s\n", nStakeModifierNew, DateTimeStrFormat(pindexPrev->GetBlockTime()).c_str()); } nStakeModifier = nStakeModifierNew; @@ -295,12 +295,12 @@ bool CheckStakeKernelHash(unsigned int nBits, const CBlock& blockFrom, unsigned hashProofOfStake = Hash(ss.begin(), ss.end()); if (fPrintProofOfStake) { - printf("CheckStakeKernelHash() : using modifier 0x%016"PRIx64" at height=%d timestamp=%s for block from height=%d timestamp=%s\n", + printf("CheckStakeKernelHash() : using modifier 0x%016" PRIx64" at height=%d timestamp=%s for block from height=%d timestamp=%s\n", nStakeModifier, nStakeModifierHeight, DateTimeStrFormat(nStakeModifierTime).c_str(), mapBlockIndex[hashBlockFrom]->nHeight, DateTimeStrFormat(blockFrom.GetBlockTime()).c_str()); - printf("CheckStakeKernelHash() : check modifier=0x%016"PRIx64" nTimeBlockFrom=%u nTxPrevOffset=%u nTimeTxPrev=%u nPrevout=%u nTimeTx=%u hashProof=%s\n", + printf("CheckStakeKernelHash() : check modifier=0x%016" PRIx64" nTimeBlockFrom=%u nTxPrevOffset=%u nTimeTxPrev=%u nPrevout=%u nTimeTx=%u hashProof=%s\n", nStakeModifier, nTimeBlockFrom, nTxPrevOffset, txPrev.nTime, prevout.n, nTimeTx, hashProofOfStake.ToString().c_str()); @@ -311,12 +311,12 @@ bool CheckStakeKernelHash(unsigned int nBits, const CBlock& blockFrom, unsigned return false; if (fDebug && !fPrintProofOfStake) { - printf("CheckStakeKernelHash() : using modifier 0x%016"PRIx64" at height=%d timestamp=%s for block from height=%d timestamp=%s\n", + printf("CheckStakeKernelHash() : using modifier 0x%016" PRIx64" at height=%d timestamp=%s for block from height=%d timestamp=%s\n", nStakeModifier, nStakeModifierHeight, DateTimeStrFormat(nStakeModifierTime).c_str(), mapBlockIndex[hashBlockFrom]->nHeight, DateTimeStrFormat(blockFrom.GetBlockTime()).c_str()); - printf("CheckStakeKernelHash() : pass modifier=0x%016"PRIx64" nTimeBlockFrom=%u nTxPrevOffset=%u nTimeTxPrev=%u nPrevout=%u nTimeTx=%u hashProof=%s\n", + printf("CheckStakeKernelHash() : pass modifier=0x%016" PRIx64" nTimeBlockFrom=%u nTxPrevOffset=%u nTimeTxPrev=%u nPrevout=%u nTimeTx=%u hashProof=%s\n", nStakeModifier, nTimeBlockFrom, nTxPrevOffset, txPrev.nTime, prevout.n, nTimeTx, hashProofOfStake.ToString().c_str()); diff --git a/src/main.cpp b/src/main.cpp index d16d779..1445250 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -211,7 +211,7 @@ bool AddOrphanTx(const CTransaction& tx) if (nSize > 5000) { - printf("ignoring large orphan tx (size: %"PRIszu", hash: %s)\n", nSize, hash.ToString().substr(0,10).c_str()); + printf("ignoring large orphan tx (size: %" PRIszu", hash: %s)\n", nSize, hash.ToString().substr(0,10).c_str()); return false; } @@ -219,7 +219,7 @@ bool AddOrphanTx(const CTransaction& tx) BOOST_FOREACH(const CTxIn& txin, tx.vin) mapOrphanTransactionsByPrev[txin.prevout.hash].insert(hash); - printf("stored orphan tx %s (mapsz %"PRIszu")\n", hash.ToString().substr(0,10).c_str(), + printf("stored orphan tx %s (mapsz %" PRIszu")\n", hash.ToString().substr(0,10).c_str(), mapOrphanTransactions.size()); return true; } @@ -689,7 +689,7 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CTransaction &tx, // Don't accept it if it can't get into a block int64_t txMinFee = tx.GetMinFee(1000, GMF_RELAY, nSize); if (nFees < txMinFee) - return error("AcceptToMemoryPool : not enough fees %s, %"PRId64" < %"PRId64, + return error("AcceptToMemoryPool : not enough fees %s, %" PRId64" < %" PRId64, hash.ToString().c_str(), nFees, txMinFee); @@ -742,7 +742,7 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CTransaction &tx, if (ptxOld) EraseFromWallets(ptxOld->GetHash()); - printf("AcceptToMemoryPool : accepted %s (poolsz %"PRIszu")\n", + printf("AcceptToMemoryPool : accepted %s (poolsz %" PRIszu")\n", hash.ToString().substr(0,10).c_str(), pool.mapTx.size()); return true; @@ -1098,7 +1098,7 @@ int64_t GetProofOfWorkReward(int nHeight, int64_t nFees) if (fDebug && GetBoolArg("-printcreation")) - printf("GetProofOfWorkReward() : create=%s nSubsidy=%"PRId64"\n", FormatMoney(nSubsidy).c_str(), nSubsidy); + printf("GetProofOfWorkReward() : create=%s nSubsidy=%" PRId64"\n", FormatMoney(nSubsidy).c_str(), nSubsidy); return nSubsidy + nFees; } @@ -1157,7 +1157,7 @@ int64_t GetProofOfStakeReward(int nHeight, int64_t nCoinAge, int64_t nFees) } if (fDebug && GetBoolArg("-printcreation")) - printf("GetProofOfStakeReward(): create=%s nCoinAge=%"PRId64"\n", FormatMoney(nSubsidy).c_str(), nCoinAge); + printf("GetProofOfStakeReward(): create=%s nCoinAge=%" PRId64"\n", FormatMoney(nSubsidy).c_str(), nCoinAge); return nSubsidy + nFees; } @@ -1357,11 +1357,11 @@ void static InvalidChainFound(CBlockIndex* pindexNew) uint256 nBestInvalidBlockTrust = pindexNew->nChainTrust - pindexNew->pprev->nChainTrust; uint256 nBestBlockTrust = pindexBest->nHeight != 0 ? (pindexBest->nChainTrust - pindexBest->pprev->nChainTrust) : pindexBest->nChainTrust; - printf("InvalidChainFound: invalid block=%s height=%d trust=%s blocktrust=%"PRId64" date=%s\n", + printf("InvalidChainFound: invalid block=%s height=%d trust=%s blocktrust=%" PRId64" date=%s\n", pindexNew->GetBlockHash().ToString().substr(0,20).c_str(), pindexNew->nHeight, CBigNum(pindexNew->nChainTrust).ToString().c_str(), nBestInvalidBlockTrust.Get64(), DateTimeStrFormat("%x %H:%M:%S", pindexNew->GetBlockTime()).c_str()); - printf("InvalidChainFound: current best=%s height=%d trust=%s blocktrust=%"PRId64" date=%s\n", + printf("InvalidChainFound: current best=%s height=%d trust=%s blocktrust=%" PRId64" date=%s\n", hashBestChain.ToString().substr(0,20).c_str(), nBestHeight, CBigNum(pindexBest->nChainTrust).ToString().c_str(), nBestBlockTrust.Get64(), @@ -1484,7 +1484,7 @@ bool CTransaction::FetchInputs(CTxDB& txdb, const map& mapTes // Revisit this if/when transaction replacement is implemented and allows // adding inputs: fInvalid = true; - return DoS(100, error("FetchInputs() : %s prevout.n out of range %d %"PRIszu" %"PRIszu" prev tx %s\n%s", GetHash().ToString().substr(0,10).c_str(), prevout.n, txPrev.vout.size(), txindex.vSpent.size(), prevout.hash.ToString().substr(0,10).c_str(), txPrev.ToString().c_str())); + return DoS(100, error("FetchInputs() : %s prevout.n out of range %d %" PRIszu" %" PRIszu" prev tx %s\n%s", GetHash().ToString().substr(0,10).c_str(), prevout.n, txPrev.vout.size(), txindex.vSpent.size(), prevout.hash.ToString().substr(0,10).c_str(), txPrev.ToString().c_str())); } } @@ -1552,7 +1552,7 @@ bool CTransaction::ConnectInputs(CTxDB& txdb, MapPrevTx inputs, map= txPrev.vout.size() || prevout.n >= txindex.vSpent.size()) - return DoS(100, error("ConnectInputs() : %s prevout.n out of range %d %"PRIszu" %"PRIszu" prev tx %s\n%s", GetHash().ToString().substr(0,10).c_str(), prevout.n, txPrev.vout.size(), txindex.vSpent.size(), prevout.hash.ToString().substr(0,10).c_str(), txPrev.ToString().c_str())); + return DoS(100, error("ConnectInputs() : %s prevout.n out of range %d %" PRIszu" %" PRIszu" prev tx %s\n%s", GetHash().ToString().substr(0,10).c_str(), prevout.n, txPrev.vout.size(), txindex.vSpent.size(), prevout.hash.ToString().substr(0,10).c_str(), txPrev.ToString().c_str())); // If prev is coinbase or coinstake, check that it's matured if (txPrev.IsCoinBase() || txPrev.IsCoinStake()) @@ -1744,7 +1744,7 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck) int64_t nReward = GetProofOfWorkReward(pindex->nHeight, nFees); // Check coinbase reward if (vtx[0].GetValueOut() > nReward) - return DoS(50, error("ConnectBlock() : coinbase reward exceeded (actual=%"PRId64" vs calculated=%"PRId64")", + return DoS(50, error("ConnectBlock() : coinbase reward exceeded (actual=%" PRId64" vs calculated=%" PRId64")", vtx[0].GetValueOut(), nReward)); } @@ -1758,7 +1758,7 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck) int64_t nCalculatedStakeReward = GetProofOfStakeReward(pindex->nHeight, nCoinAge, nFees); if (nStakeReward > nCalculatedStakeReward) - return DoS(100, error("ConnectBlock() : coinstake pays too much(actual=%"PRId64" vs calculated=%"PRId64")", nStakeReward, nCalculatedStakeReward)); + return DoS(100, error("ConnectBlock() : coinstake pays too much(actual=%" PRId64" vs calculated=%" PRId64")", nStakeReward, nCalculatedStakeReward)); } // ppcoin: track money supply and mint amount info @@ -1823,8 +1823,8 @@ bool static Reorganize(CTxDB& txdb, CBlockIndex* pindexNew) vConnect.push_back(pindex); reverse(vConnect.begin(), vConnect.end()); - printf("REORGANIZE: Disconnect %"PRIszu" blocks; %s..%s\n", vDisconnect.size(), pfork->GetBlockHash().ToString().substr(0,20).c_str(), pindexBest->GetBlockHash().ToString().substr(0,20).c_str()); - printf("REORGANIZE: Connect %"PRIszu" blocks; %s..%s\n", vConnect.size(), pfork->GetBlockHash().ToString().substr(0,20).c_str(), pindexNew->GetBlockHash().ToString().substr(0,20).c_str()); + printf("REORGANIZE: Disconnect %" PRIszu" blocks; %s..%s\n", vDisconnect.size(), pfork->GetBlockHash().ToString().substr(0,20).c_str(), pindexBest->GetBlockHash().ToString().substr(0,20).c_str()); + printf("REORGANIZE: Connect %" PRIszu" blocks; %s..%s\n", vConnect.size(), pfork->GetBlockHash().ToString().substr(0,20).c_str(), pindexNew->GetBlockHash().ToString().substr(0,20).c_str()); // Disconnect shorter branch list vResurrect; @@ -1956,7 +1956,7 @@ bool CBlock::SetBestChain(CTxDB& txdb, CBlockIndex* pindexNew) } if (!vpindexSecondary.empty()) - printf("Postponing %"PRIszu" reconnects\n", vpindexSecondary.size()); + printf("Postponing %" PRIszu" reconnects\n", vpindexSecondary.size()); // Switch to new best branch if (!Reorganize(txdb, pindexIntermediate)) @@ -2004,7 +2004,7 @@ bool CBlock::SetBestChain(CTxDB& txdb, CBlockIndex* pindexNew) uint256 nBestBlockTrust = pindexBest->nHeight != 0 ? (pindexBest->nChainTrust - pindexBest->pprev->nChainTrust) : pindexBest->nChainTrust; - printf("SetBestChain: new best=%s height=%d trust=%s blocktrust=%"PRId64" date=%s\n", + printf("SetBestChain: new best=%s height=%d trust=%s blocktrust=%" PRId64" date=%s\n", hashBestChain.ToString().substr(0,20).c_str(), nBestHeight, CBigNum(nBestChainTrust).ToString().c_str(), nBestBlockTrust.Get64(), @@ -2075,7 +2075,7 @@ bool CTransaction::GetCoinAge(CTxDB& txdb, uint64_t& nCoinAge) const bnCentSecond += CBigNum(nValueIn) * (nTime-txPrev.nTime) / CENT; if (fDebug && GetBoolArg("-printcoinage")) - printf("coin age nValueIn=%"PRId64" nTimeDiff=%d bnCentSecond=%s\n", nValueIn, nTime - txPrev.nTime, bnCentSecond.ToString().c_str()); + printf("coin age nValueIn=%" PRId64" nTimeDiff=%d bnCentSecond=%s\n", nValueIn, nTime - txPrev.nTime, bnCentSecond.ToString().c_str()); } CBigNum bnCoinDay = bnCentSecond * CENT / COIN / (24 * 60 * 60); @@ -2103,7 +2103,7 @@ bool CBlock::GetCoinAge(uint64_t& nCoinAge) const if (nCoinAge == 0) // block coin age minimum 1 coin-day nCoinAge = 1; if (fDebug && GetBoolArg("-printcoinage")) - printf("block coin age total nCoinDays=%"PRId64"\n", nCoinAge); + printf("block coin age total nCoinDays=%" PRId64"\n", nCoinAge); return true; } @@ -2144,7 +2144,7 @@ bool CBlock::AddToBlockIndex(unsigned int nFile, unsigned int nBlockPos, const u pindexNew->SetStakeModifier(nStakeModifier, fGeneratedStakeModifier); pindexNew->nStakeModifierChecksum = GetStakeModifierChecksum(pindexNew); if (!CheckStakeModifierCheckpoints(pindexNew->nHeight, pindexNew->nStakeModifierChecksum)) - return error("AddToBlockIndex() : Rejected by stake modifier checkpoint height=%d, modifier=0x%016"PRIx64, pindexNew->nHeight, nStakeModifier); + return error("AddToBlockIndex() : Rejected by stake modifier checkpoint height=%d, modifier=0x%016" PRIx64, pindexNew->nHeight, nStakeModifier); // Add to mapBlockIndex map::iterator mi = mapBlockIndex.insert(make_pair(hash, pindexNew)).first; @@ -2225,7 +2225,7 @@ bool CBlock::CheckBlock(bool fCheckPOW, bool fCheckMerkleRoot, bool fCheckSig) c // Check coinstake timestamp if (!CheckCoinStakeTimestamp(GetBlockTime(), (int64_t)vtx[1].nTime)) - return DoS(50, error("CheckBlock() : coinstake timestamp violation nTimeBlock=%"PRId64" nTimeTx=%u", GetBlockTime(), vtx[1].nTime)); + return DoS(50, error("CheckBlock() : coinstake timestamp violation nTimeBlock=%" PRId64" nTimeTx=%u", GetBlockTime(), vtx[1].nTime)); // NovaCoin: check proof-of-stake block signature if (fCheckSig && !CheckBlockSignature()) @@ -2814,7 +2814,7 @@ void PrintBlockTree() // print item CBlock block; block.ReadFromDisk(pindex); - printf("%d (%u,%u) %s %08x %s mint %7s tx %"PRIszu"", + printf("%d (%u,%u) %s %08x %s mint %7s tx %" PRIszu"", pindex->nHeight, pindex->nFile, pindex->nBlockPos, @@ -2899,7 +2899,7 @@ bool LoadExternalBlockFile(FILE* fileIn) __PRETTY_FUNCTION__); } } - printf("Loaded %i blocks from external file in %"PRId64"ms\n", nLoaded, GetTimeMillis() - nStart); + printf("Loaded %i blocks from external file in %" PRId64"ms\n", nLoaded, GetTimeMillis() - nStart); return nLoaded > 0; } @@ -3005,7 +3005,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) static map mapReuseKey; RandAddSeedPerfmon(); if (fDebug) - printf("received: %s (%"PRIszu" bytes)\n", strCommand.c_str(), vRecv.size()); + printf("received: %s (%" PRIszu" bytes)\n", strCommand.c_str(), vRecv.size()); if (mapArgs.count("-dropmessagestest") && GetRand(atoi(mapArgs["-dropmessagestest"])) == 0) { printf("dropmessagestest DROPPING RECV MESSAGE\n"); @@ -3169,7 +3169,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) if (vAddr.size() > 1000) { pfrom->Misbehaving(20); - return error("message addr size() = %"PRIszu"", vAddr.size()); + return error("message addr size() = %" PRIszu"", vAddr.size()); } // Store the new addresses @@ -3231,7 +3231,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) if (vInv.size() > MAX_INV_SZ) { pfrom->Misbehaving(20); - return error("message inv size() = %"PRIszu"", vInv.size()); + return error("message inv size() = %" PRIszu"", vInv.size()); } // find last block in inv vector @@ -3281,11 +3281,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) if (vInv.size() > MAX_INV_SZ) { pfrom->Misbehaving(20); - return error("message getdata size() = %"PRIszu"", vInv.size()); + return error("message getdata size() = %" PRIszu"", vInv.size()); } if (fDebugNet || (vInv.size() != 1)) - printf("received getdata (%"PRIszu" invsz)\n", vInv.size()); + printf("received getdata (%" PRIszu" invsz)\n", vInv.size()); BOOST_FOREACH(const CInv& inv, vInv) { diff --git a/src/main.h b/src/main.h index 1104f14..585fb12 100644 --- a/src/main.h +++ b/src/main.h @@ -629,7 +629,7 @@ class CTransaction { std::string str; str += IsCoinBase()? "Coinbase" : (IsCoinStake()? "Coinstake" : "CTransaction"); - str += strprintf("(hash=%s, nTime=%d, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%d)\n", + str += strprintf("(hash=%s, nTime=%d, ver=%d, vin.size=%" PRIszu", vout.size=%" PRIszu", nLockTime=%d)\n", GetHash().ToString().substr(0,10).c_str(), nTime, nVersion, @@ -1054,7 +1054,7 @@ class CBlock void print() const { - printf("CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%"PRIszu", vchBlockSig=%s)\n", + printf("CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%" PRIszu", vchBlockSig=%s)\n", GetHash().ToString().c_str(), nVersion, hashPrevBlock.ToString().c_str(), @@ -1304,7 +1304,7 @@ class CBlockIndex std::string ToString() const { - return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%-6d nHeight=%d, nMint=%s, nMoneySupply=%s, nFlags=(%s)(%d)(%s), nStakeModifier=%016"PRIx64", nStakeModifierChecksum=%08x, hashProof=%s, prevoutStake=(%s), nStakeTime=%d merkle=%s, hashBlock=%s)", + return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%-6d nHeight=%d, nMint=%s, nMoneySupply=%s, nFlags=(%s)(%d)(%s), nStakeModifier=%016" PRIx64", nStakeModifierChecksum=%08x, hashProof=%s, prevoutStake=(%s), nStakeTime=%d merkle=%s, hashBlock=%s)", pprev, pnext, nFile, nBlockPos, nHeight, FormatMoney(nMint).c_str(), FormatMoney(nMoneySupply).c_str(), GeneratedStakeModifier() ? "MOD" : "-", GetStakeEntropyBit(), IsProofOfStake()? "PoS" : "PoW", diff --git a/src/miner.cpp b/src/miner.cpp index 443f77c..d5ba731 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -359,7 +359,7 @@ CBlock* CreateNewBlock(CWallet* pwallet, bool fProofOfStake, int64_t* pFees) nLastBlockSize = nBlockSize; if (fDebug && GetBoolArg("-printpriority")) - printf("CreateNewBlock(): total size %"PRIu64"\n", nBlockSize); + printf("CreateNewBlock(): total size %" PRIu64"\n", nBlockSize); if (!fProofOfStake) pblock->vtx[0].vout[0].nValue = GetProofOfWorkReward(nHeight, nFees); diff --git a/src/net.cpp b/src/net.cpp index 999c005..ea3995c 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1109,10 +1109,14 @@ void ThreadMapPort2(void* parg) #ifndef UPNPDISCOVER_SUCCESS /* miniupnpc 1.5 */ devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0); -#else +#elif MINIUPNPC_API_VERSION < 14 /* miniupnpc 1.6 */ int error = 0; devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error); +#else + /* miniupnpc 1.9.20150730 */ + int error = 0; + devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 2, &error); #endif struct UPNPUrls urls; @@ -1311,7 +1315,7 @@ void DumpAddresses() CAddrDB adb; adb.Write(addrman); - printf("Flushed %d addresses to peers.dat %"PRId64"ms\n", + printf("Flushed %d addresses to peers.dat %" PRId64"ms\n", addrman.size(), GetTimeMillis() - nStart); } diff --git a/src/net.h b/src/net.h index 0829846..b3d808a 100644 --- a/src/net.h +++ b/src/net.h @@ -377,7 +377,7 @@ class CNode // the key is the earliest time the request can be sent int64_t& nRequestTime = mapAlreadyAskedFor[inv]; if (fDebugNet) - printf("askfor %s %"PRId64" (%s)\n", inv.ToString().c_str(), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str()); + printf("askfor %s %" PRId64" (%s)\n", inv.ToString().c_str(), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str()); // Make sure not to reuse time indexes to keep things in the same order int64_t nNow = (GetTime() - 1) * 1000000; diff --git a/src/qt/locale/bitcoin_ja.ts b/src/qt/locale/bitcoin_ja.ts index a3a6d9a..c3fb4ee 100644 --- a/src/qt/locale/bitcoin_ja.ts +++ b/src/qt/locale/bitcoin_ja.ts @@ -1,15 +1,17 @@ - + + + AboutDialog About bitblocks - ブラックコインについて + bitblocksについて <b>bitblocks</b> version - <b>ブラックコイン</b>バージョン + <b>bitblocks</b>バージョン @@ -56,7 +58,7 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 Copy the currently selected address to the system clipboard - 現在選択されているアドレスをシステムのクリップボードにコピーする + 現在選択されているアドレスをクリップボードへコピー @@ -66,27 +68,27 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 These are your bitblocks addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you. - これは支払いを受けるためのブラックコインのアドレス。支払い管理をするのため、各送信者へ、それぞれのアドレスを伝えたほうがいいです。 + これは支払いを受けるためのbitblocksのアドレス。支払い管理をするのため、各送信者へ、それぞれのアドレスを伝えたほうがいいです。 &Copy Address - アドレスをコピー (&C) + アドレスをコピー(&C) Show &QR Code - QRコードを表す + QRコード (&Q) Sign a message to prove you own a bitblocks address - 所有権の証明するためのメサッジを署名する。 + 所有権の証明するためのメッセージを署名する。 Sign &Message - メサッジを署名する。 + メッセージの署名 (&M) @@ -101,12 +103,12 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 &Verify Message - メッセージを確認する。 + メッセージの検証 (&V) &Delete - 削除 + 削除 (&D) @@ -121,7 +123,7 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 Export Address Book Data - アドレス帳のデータを書き出す + アドレス帳のデータをエクスポート @@ -131,12 +133,12 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 Error exporting - エラーを書き出す + エクスポートエラー Could not write to file %1. - ファイルを書き込めなかった。%1 + ファイル%1に書き込みできません。 @@ -154,7 +156,7 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 (no label) - (ラベル無し) + (ラベルなし) @@ -177,17 +179,17 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 Repeat new passphrase - 新しいパスフレーズをもう一度 + 新しいパスフレーズの再入力 Serves to disable the trivial sendmoney when OS account compromised. Provides no real security. - ユーザアカウントはハッキングされたばい、瑣末のsendmoney無効にする。機密保護には効果はない。 + OSのアカウントが侵害された場合、送金を無効にします。実際のセキュリティは提供されません。 For staking only - 賭けるのみ + Stakeのみ @@ -202,7 +204,7 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 This operation needs your wallet passphrase to unlock the wallet. - この操作はウォレットをアンロックするためにパスフレーズが必要です。 + ウォレットをアンロックするためにはパスフレーズが必要です。 @@ -212,7 +214,7 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 This operation needs your wallet passphrase to decrypt the wallet. - この操作はウォレットの暗号化解除のためにパスフレーズが必要です。 + ウォレットの暗号化解除のためにはパスフレーズが必要です。 @@ -237,12 +239,12 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR COINS</b>! - ご注意:暗号化したウォレットのパスワードを忘れたばい、b>すべてのコインを失う</b>! + ご注意:暗号化したウォレットのパスワードを忘れた場合、<b>すべてのコインを失います</b>! Are you sure you wish to encrypt your wallet? - ウォレットを暗号化、よろしいですか? + ウォレットを暗号化してよろしいですか? @@ -253,7 +255,7 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 Warning: The Caps Lock key is on! - 警告: Caps Lock キーがオンになっています! + 警告: Capsキーがロックされています! @@ -264,7 +266,7 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 bitblocks will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer. - ただいま、暗号化手順を完成するため、ブラックコインQTは閉じます。尚、ウォレットを暗号化をされたにしても、PCのウイルスから盗難防止の報償できないことを、ご理解をお願い足します。 + ただいま、暗号化手順を完成するため、bitblocksQTは閉じます。尚、ウォレットを暗号化をされたにしても、PCのウイルスから盗難防止の報償できないことを、ご理解をお願い足します。 @@ -277,7 +279,7 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 Wallet encryption failed due to an internal error. Your wallet was not encrypted. - 内部エラーによりウォレットの暗号化が失敗しました。ウォレットは暗号化されませんでした。 + 内部エラーによりウォレットの暗号化が失敗しました。ウォレットは暗号化されていません。 @@ -305,7 +307,7 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 Wallet passphrase was successfully changed. - ウォレットのパスフレーズの変更が成功しました。 + ウォレットのパスフレーズが正常に変更れれました。 @@ -333,22 +335,22 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 &Transactions - 処理(&T) + トランザクション(&T) Browse transaction history - 処理履歴を閲覧 + トランザクション履歴を閲覧 &Address Book - アドレス帳 + アドレス帳(&A) Edit the list of stored addresses and labels - 保存されたアドレスとラベルの編集 + アドレスとラベルの編集 @@ -358,7 +360,7 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 Show the list of addresses for receiving payments - 支払いを受けるためのアドレスリストを表示 + 支払いを受け取るためのアドレス一覧を見る @@ -368,52 +370,54 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 E&xit - 終了(&E) + 終了(&x) Quit application - アプリケーションを終了 + アプリケーションの終了 Show information about bitblocks - ブラックコインの情報を表示 + bitblocksの情報を表示 About &Qt - Qt について(&Q) + Qtについて(&Q) Show information about Qt - Qt の情報を表示 + Qtについての情報を見る &Options... - オプション... (&O) + オプション(&O)... &Encrypt Wallet... - ウォレットの暗号化... (&E) + ウォレットの暗号化(&E)... &Backup Wallet... - ウォレットのバックアップ... (&B) + ウォレットのバックアップ(&B)... &Change Passphrase... - パスフレーズの変更... (&C) + パスフレーズの変更(&C)... ~%n block(s) remaining - ~%n ブロックが残っている + + ~%n ブロックが残っている + @@ -423,57 +427,57 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 &Export... - (&E)書き出す... + エクスポート(&E)... Send coins to a bitblocks address - ブラックコインアドレスへコインを送る + bitblocksアドレスへコインを送る Modify configuration options for bitblocks - ブラックコインの設定を変化する + bitblocksの設定を変化する Export the data in the current tab to a file - 現在のタブのデータをファイルへ書き出す + 現在のタブのデータをファイルへエキスポート Encrypt or decrypt wallet - ウォレットを暗号化か暗号化を解除する + ウォレットを暗号化と暗号化の解除 Backup wallet to another location - ウォレットを他の場所にバックアップ + ウォレットを他の場所へバックアップ Change the passphrase used for wallet encryption - ウォレット暗号化用パスフレーズの変更 + ウォレット暗号化に使用するパスフレーズの変更 &Debug window - デバッグ ウインドウ (&D) + デバッグ ウインドウ(&D) Open debugging and diagnostic console - デバッグと診断コンソールを開く + デバッグと診断のコンソールを開く &Verify message... - メッセージの検証... (&V) + メッセージの検証(&V)... bitblocks - ブラックコイン + bitblocks @@ -483,12 +487,12 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 &About bitblocks - ブラックコインについて + bitblocksについて &Show / Hide - 見る/隠す (&S) + 表示/非表示(&S) @@ -498,7 +502,7 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 &Lock Wallet - (&L)ウォレットをロックする + ウォレットのロック(&L) @@ -540,12 +544,14 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 bitblocks client - ブラックコインクライアントソフトウェア + bitblocksクライアントソフトウェア %n active connection(s) to bitblocks network - ブラックコインネットワークへの%n アクティブな接続 + + bitblocksネットワークへの%n アクティブな接続 + @@ -555,32 +561,34 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3 - 賭けている。<br>重さは%1<br>ネットワークの重さは%2<br>報酬をもらう時間の推測は%3 + stakeしています。<br>重さは%1<br>ネットワークの重さは%2<br>報酬をもらう時間の推測は%3 Not staking because wallet is locked - ウォレットをロックされたため、賭けていません + ウォレットがロックされているためstakeしていません Not staking because wallet is offline - ウォレットはオフラインで、賭けていません + ウォレットがオフラインのためstakeしていません Not staking because wallet is syncing - ウォレットは同期最中ため、賭けていません。 + ウォレットは同期中のためstakeしていません Not staking because you don't have mature coins - コインはまだ成長できていないため、賭けていません。 + コインはまだ成長できていないため、stakeしていません %n second(s) ago - %n 秒前 + + %n 秒前 + @@ -590,22 +598,28 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 %n minute(s) ago - %n 分前 + + %n 分前 + %n hour(s) ago - %n 時間前 + + %n 時間前 + %n day(s) ago - %n 日間前 + + %n 日間前 + Up to date - バージョンは最新です + 最新です @@ -625,7 +639,7 @@ MIT/X11 ソフトウェア ライセンスの下で配布されています。 Confirm transaction fee - 処理手数料を確認する + トランザクション手数料を確認する @@ -645,7 +659,7 @@ Type: %3 Address: %4 日付: %1 -総額: %2 +金額: %2 種類: %3 アドレス: %4 @@ -653,18 +667,18 @@ Address: %4 URI handling - URIの取り扱い + URIの操作 URI can not be parsed! This can be caused by an invalid bitblocks address or malformed URI parameters. - URIのパーズができませんでした!。原因は無効なブラックコインアドレスか不正なURIパラメータ。 + URIのパーズができませんでした!。原因は無効なbitblocksアドレスか不正なURIパラメータ。 Wallet is <b>encrypted</b> and currently <b>unlocked</b> - ウォレットは<b>暗号化されて、アンロックされています</b> + ウォレットは<b>暗号化されて、ロック解除されています</b> @@ -679,7 +693,7 @@ Address: %4 Wallet Data (*.dat) - ウォレットのデータ (*.dat) + ウォレット データ (*.dat) @@ -689,32 +703,40 @@ Address: %4 There was an error trying to save the wallet data to the new location. - ウォレットのデータが新しい場所へ保存するにはエラーになりました。 + ウォレットのデータを新しい場所へ保存しようとしてエラーになりました。 %n second(s) - %n 秒 + + %n 秒 + %n minute(s) - %n 分 + + %n 分 + %n hour(s) - %n 時間 + + %n 時間 + %n day(s) - %n 日間 + + %n 日間 + Not staking - 賭けていません + Stakeしていません @@ -735,7 +757,7 @@ Address: %4 Coin Control - コインのコントロール + コインコントロール @@ -750,22 +772,22 @@ Address: %4 Amount: - 総額: + 金額: Priority: - 優先: + 優先度: Fee: - 料金: + 手数料: Low Output: - アウトプット低い: + 低い出力: @@ -775,37 +797,37 @@ Address: %4 After Fee: - 料金の後 + 手数料差引後: Change: - お釣り: + 釣り銭: (un)select all - すべてを選択か選択を解除 + 全選択/全解除 Tree mode - 木モード + ツリーモード List mode - リストモード + 一覧モード Amount - 総額 + 金額 Label - レベル + ラベル @@ -820,17 +842,17 @@ Address: %4 Confirmations - 検証済みの数 + 検証数 Confirmed - 検証済 + 検証済み Priority - 優先 + 優先度 @@ -846,12 +868,12 @@ Address: %4 Copy amount - 総額のコピー + 金額のコピー Copy transaction ID - 処理のIDをコピー + トランザクションIDをコピー @@ -861,12 +883,12 @@ Address: %4 Copy fee - 料金をコピー + 手数料をコピー Copy after fee - 料金の後をコピー + 手数料差引後をコピー @@ -876,17 +898,17 @@ Address: %4 Copy priority - 優先をコピー + 優先度をコピー Copy low output - アウトプット低いをコピー + 低い出力をコピー Copy change - お釣りをコピー + 釣り銭をコピー @@ -926,7 +948,7 @@ Address: %4 DUST - ほこり + DUST @@ -940,11 +962,11 @@ Address: %4 This means a fee of at least %1 per kb is required. Can vary +/- 1 Byte per input. - このラベルが赤くなったら、処理の大きさは10000バイトより大きいです。 + このラベルが赤くなったら、トランザクションの大きさは10000バイトより大きいです。 -少なくとも%1 KBあたりの料金は必要となります。 +1KBあたり最低%1 の手数料が必要となります。 -入力データによって、料金の+/-1 バイトが可能です。 +1つの入力につき1バイト前後ずれることがあります。 @@ -966,36 +988,36 @@ This label turns red, if the priority is smaller than "medium". This means a fee of at least %2 is required. Amounts below 0.546 times the minimum relay fee are shown as DUST. - 任意の受信者は%1より少ない額をもらったばい、このラベルは赤くなる。 + 受信者が%1より小さい金額を受け取った場合、ラベルは赤色に変わります。 -少なくとも%2の料金は必要となります。 +最低%2の手数料が必要となります。 -最小なリレー料金 x 0.546より下の額は、ほこりになります。 +最低中継料金の0.546以下の金額は、DUSTとして表示されます。 This label turns red, if the change is smaller than %1. This means a fee of at least %2 is required. - このラベルが赤くなたら、お釣りは%1より少ない。 + 釣り銭が%1より小さい場合、ラベルが赤色に変わります。 -少なくとも%2の料金は必要となります。 +これは最低%2の手数料が必要となります。 (no label) - (ラベル無し) + (ラベルなし) change from %1 (%2) - %1 (%2)からお釣り + %1 (%2)からの釣り銭 (change) - (お釣り) + (釣り銭) @@ -1013,37 +1035,37 @@ This label turns red, if the priority is smaller than "medium". The label associated with this address book entry - このアドレス帳の入力のラベル + このアドレス帳エントリに関連付けられたラベル &Address - アドレス帳 (&A) + アドレス (&A) The address associated with this address book entry. This can only be modified for sending addresses. - このアドレス帳の入力のアドレス。通信アドレスした変更ができない。 + アドレス帳エントリに関連付けられたアドレス。送金用アドレスのみアドレスを変更できます。 New receiving address - 新しい受信アドレス + 新しい受け取りアドレス New sending address - 新しい送信アドレス + 新しい送金用アドレス Edit receiving address - 受信アドレスを編集 + 受け取りアドレスを編集 Edit sending address - 送信アドレスを編集 + 送金用アドレスを編集 @@ -1053,12 +1075,12 @@ This label turns red, if the priority is smaller than "medium". The entered address "%1" is not a valid bitblocks address. - 入力されたアドレス "%1" 、有効なブラックコインアドレスではない。 + 入力されたアドレス "%1" 、有効なbitblocksアドレスではない。 Could not unlock wallet. - ウォレットをアンロックできませんでした。 + ウォレットのロック解除ができませんでした。 @@ -1072,7 +1094,7 @@ This label turns red, if the priority is smaller than "medium". bitblocks-Qt - ブラックコインQT + bitblocksQT @@ -1082,7 +1104,7 @@ This label turns red, if the priority is smaller than "medium". Usage: - 使用法 + 使用法: @@ -1097,17 +1119,17 @@ This label turns red, if the priority is smaller than "medium". Set language, for example "de_DE" (default: system locale) - 言語の設定、例: "de_DE" (デフォルト:システムのロケール) + 言語の設定、例: "de_DE" (ディフォルト:システムの言語) Start minimized - 最小化でスタート + 最小化された状態で起動する Show splash screen on startup (default: 1) - スタートでスプラッシュスクリーンを表示(デフォルト:1) + 起動時にスプラッシュ画面を表示する (初期値: 1) @@ -1125,17 +1147,17 @@ This label turns red, if the priority is smaller than "medium". Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended. - 手続きを早めるためのオプショナル料金。だいたいの処理は1KB。料金の0.01が勧めです。 + トランザクションを早めるための1KBあたりのオプショントランザクション手数料。だいたいのトランザクションは1KB。手数料はの0.01を推奨します。 Pay transaction &fee - 支払う取引手数料 (&f) + 支払うトランザクション手数料 (&f) Reserved amount does not participate in staking and is therefore spendable at any time. - 貯金は賭ける参加しないため、いつでも支出できる。 + 貯金はStakeに参加しないため、いつでも支出できる。 @@ -1145,12 +1167,12 @@ This label turns red, if the priority is smaller than "medium". Automatically start bitblocks after logging in to the system. - システムのログイン次第、自動的にブラックコインをスタート。 + システムのログイン次第、自動的にbitblocksをスタート。 &Start bitblocks on system login - システムログイン次第、ブラックコインをスタート + システムログイン次第、bitblocksをスタート @@ -1170,7 +1192,7 @@ This label turns red, if the priority is smaller than "medium". Automatically open the bitblocks client port on the router. This only works when your router supports UPnP and it is enabled. - 自動的にルーターでブラックコインクライエントソフトウェアのポートを開く。ルーターはUPnPのサポートあり、UPnPを有効にするならできる。 + 自動的にルーターでbitblocksクライエントソフトウェアのポートを開く。ルーターはUPnPのサポートあり、UPnPを有効にするならできる。 @@ -1180,17 +1202,17 @@ This label turns red, if the priority is smaller than "medium". Connect to the bitblocks network through a SOCKS proxy (e.g. when connecting through Tor). - ブラックコインのネットワークへSOCKSプロキシで接続する(例:TORで接続するばい) + bitblocksのネットワークへSOCKSプロキシで接続する(例:TORで接続するばい) &Connect through SOCKS proxy: - SOCKSプロキシで接続する + SOCKSプロキシ経由で接続する(&C): Proxy &IP: - プロキシの IP (&I) : + プロキシのIP (&I) : @@ -1210,7 +1232,7 @@ This label turns red, if the priority is smaller than "medium". SOCKS &Version: - SOCKS バージョン (&V) : + SOCKS バージョン (&V): @@ -1235,7 +1257,7 @@ This label turns red, if the priority is smaller than "medium". Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu. - ウインドウが閉じられる時アプリケーションを終了せずに最小化します。このオプションが有効な時にアプリケーションを終了するにはメニューから終了を選択します。 + ウィンドウを閉じる際にアプリケーションを終了するのではなく、最小化します。このオプションが有効化された場合、メニューから終了を選択した場合にのみアプリケーションは閉じられます。 @@ -1245,12 +1267,12 @@ This label turns red, if the priority is smaller than "medium". &Display - 表示 (&D) + 表示 (&D User Interface &language: - ユーザインターフェースの言語 (&l) : + ユーザインターフェースの言語 (&l): @@ -1260,7 +1282,7 @@ This label turns red, if the priority is smaller than "medium". &Unit to show amounts in: - 額を表示する単位 (&U) : + 金額を表示する単位 (&U): @@ -1270,7 +1292,7 @@ This label turns red, if the priority is smaller than "medium". Whether to show bitblocks addresses in the transaction list or not. - 処理の歴史でブラックコインのアドレスを表示する/しない。 + 処理の歴史でbitblocksのアドレスを表示する/しない。 @@ -1285,7 +1307,7 @@ This label turns red, if the priority is smaller than "medium". Display coin &control features (experts only!) - コインコントロールの設定を表示する(有識者のみ!) + コインコントロールを表示する(エキスパートのみ!) @@ -1311,18 +1333,18 @@ This label turns red, if the priority is smaller than "medium". Warning - 警告 + This setting will take effect after restarting bitblocks. - この設定はブラックコインをリスタートした後に有効する。 + この設定はbitblocksをリスタートした後に有効する。 The supplied proxy address is invalid. - プロキシアドレスが無効です。 + 指定されたプロキシアドレスが無効です。 @@ -1336,12 +1358,12 @@ This label turns red, if the priority is smaller than "medium". The displayed information may be out of date. Your wallet automatically synchronizes with the bitblocks network after a connection is established, but this process has not completed yet. - 表示されている情報は時間遅れている。接続したら、ウォレットは自動的にブラックコインネットワークと同期しますが過程は完了してません。 + 表示されている情報は時間遅れている。接続したら、ウォレットは自動的にbitblocksネットワークと同期しますが過程は完了してません。 Stake: - 賭け金: + Stake: @@ -1366,12 +1388,12 @@ This label turns red, if the priority is smaller than "medium". Immature: - 未完成: + 未成熟: Mined balance that has not yet matured - 完成していない採掘された残高 + まだ成熟していない未熟な残高 @@ -1381,22 +1403,22 @@ This label turns red, if the priority is smaller than "medium". Your current total balance - あなたの現在の残高 + 現在の残高 <b>Recent transactions</b> - <b>最近の処理</b> + <b>最近のトランザクション</b> Total of transactions that have yet to be confirmed, and do not yet count toward the current balance - 未確認の合計で、まだ現在の残高に含まれていない。 + まだ検証されておらず、現在の残高にカウントされていないトランザクションの合計 Total of coins that was staked, and do not yet count toward the current balance - 賭けているコインの合計で、まだ現在の残高に含まれていない。 + まだ現在の残高に含まれていないStakeしているコインの合計 @@ -1410,22 +1432,22 @@ This label turns red, if the priority is smaller than "medium". QR Code Dialog - QRコードのダイアログ + QRコード ダイアログ Request Payment - 支払いを要請する + 支払の要求 Amount: - 総額: + 金額: Label: - レベル + ラベル @@ -1435,22 +1457,22 @@ This label turns red, if the priority is smaller than "medium". &Save As... - &S名前を付けて保存... + 名前を付けて保存(&S)... Error encoding URI into QR Code. - URIからQRコードにエンコードするエラー。 + URIをQRコードにエンコードする際にエラーが発生しました。 The entered amount is invalid, please check. - 入力された額は無効です。確認してください。 + 入力された金額は無効です。確認してください。 Resulting URI too long, try to reduce the text for label / message. - URIは長過ぎて、ラベル文字の長さを短くしてください。 + URI が長くなり過ぎます。ラベルやメッセージのテキストを短くしてください。 @@ -1460,7 +1482,7 @@ This label turns red, if the priority is smaller than "medium". PNG Images (*.png) - PNG イメージ (*.png) + PNG (*.png) @@ -1517,12 +1539,12 @@ This label turns red, if the priority is smaller than "medium". On testnet - testnetで + On testnet Block chain - ブロック チェーン + ブロックチェーン @@ -1537,7 +1559,7 @@ This label turns red, if the priority is smaller than "medium". Last block time - 最終ブロックの日時 + 最終ブロック日時 @@ -1552,12 +1574,12 @@ This label turns red, if the priority is smaller than "medium". Show the bitblocks-Qt help message to get a list with possible bitblocks command-line options. - ブラックコインQTのコマンドラインのヘルプ情報を表示する。 + bitblocksQTのコマンドラインのヘルプ情報を表示する。 &Show - (&S)表示 + 表示 (&S) @@ -1567,17 +1589,17 @@ This label turns red, if the priority is smaller than "medium". Build date - ビルドの日付 + ビルド日付 bitblocks - Debug window - ブラックコイン:デバッグウインドウ + bitblocks:デバッグウインドウ bitblocks Core - ブラックコインコア + bitblocksコア @@ -1597,7 +1619,7 @@ This label turns red, if the priority is smaller than "medium". Welcome to the bitblocks RPC console. - ブラックコインRPCコンソールへようこそ。 + bitblocksRPCコンソールへようこそ。 @@ -1622,12 +1644,12 @@ This label turns red, if the priority is smaller than "medium". Send Coins - コインを送る + コインの送金 Coin Control Features - コインのコントロールの設定 + コインコントロール機能 @@ -1642,7 +1664,7 @@ This label turns red, if the priority is smaller than "medium". Insufficient funds! - 資金不足! + 残高不足! @@ -1663,7 +1685,7 @@ This label turns red, if the priority is smaller than "medium". Amount: - 総額: + 金額: @@ -1676,7 +1698,7 @@ This label turns red, if the priority is smaller than "medium". Priority: - 優先: + 優先度: @@ -1686,12 +1708,12 @@ This label turns red, if the priority is smaller than "medium". Fee: - 料金: + 手数料: Low Output: - アウトプット低い: + 低い出力: @@ -1701,17 +1723,17 @@ This label turns red, if the priority is smaller than "medium". After Fee: - 料金の後 + 手数料差引後: Change - お釣り: + 釣り銭: custom change address - カスタムのお釣りのアドレス + カスタムの釣り銭アドレス @@ -1726,7 +1748,7 @@ This label turns red, if the priority is smaller than "medium". Remove all transaction fields - 全分の処理欄を削除する + すべてのトランザクション項目を削除する @@ -1751,12 +1773,12 @@ This label turns red, if the priority is smaller than "medium". S&end - 送る (&e) + 送金 (&E) Enter a bitblocks address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i) - ブラックコインアドレスの入力 (例;B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i) + bitblocksアドレスの入力 (例;B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i) @@ -1766,17 +1788,17 @@ This label turns red, if the priority is smaller than "medium". Copy amount - 総額のコピー + 金額のコピー Copy fee - 料金をコピー + 手数料をコピー Copy after fee - 料金の後をコピー + 手数料差引後をコピー @@ -1786,17 +1808,17 @@ This label turns red, if the priority is smaller than "medium". Copy priority - 優先をコピー + 優先度をコピー Copy low output - アウトプット低いをコピー + 低い出力をコピー Copy change - お釣りをコピー + 釣り銭をコピー @@ -1811,7 +1833,7 @@ This label turns red, if the priority is smaller than "medium". Are you sure you want to send %1? - %1送付、よろしいですか? + %1を送金、よろしいですか? @@ -1831,12 +1853,12 @@ This label turns red, if the priority is smaller than "medium". The amount exceeds your balance. - 額が残高を超えています。 + 金額が残高を超えています。 The total exceeds your balance when the %1 transaction fee is included. - %1 の処理手数料を含めると額が残高を超えています。 + 金額に%1 のトランザクション手数料を含めると残高を超えています。 @@ -1846,27 +1868,27 @@ This label turns red, if the priority is smaller than "medium". Error: Transaction creation failed. - エラー:処理を失敗しました。 + エラー:トランザクション作成に失敗しました。 Error: 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. - エラー:処理は拒否されました。ウォレットのコインをすでに費やした可能性で、wallet.datのコピーで費やしたが、現行のwallet.datとはアップデートされていない。 + エラー:トランザクションは拒否されました。これは、wallet.datファイルのコピーを使用しコインがコピーしたウォレットで費やされた等、あなたのウォレットのコインの一部がすでに使われている場合に発生する可能性があります。 WARNING: Invalid bitblocks address - 警告:無効なブラックコインアドレス + 警告:無効なbitblocksアドレス (no label) - (ラベル無し) + (ラベルなし) WARNING: unknown change address - 警告:不明なお釣りのアドレス + 警告:不明な釣り銭アドレス @@ -1879,7 +1901,7 @@ This label turns red, if the priority is smaller than "medium". A&mount: - 金額(&A): + 金額(&m): @@ -1925,12 +1947,12 @@ This label turns red, if the priority is smaller than "medium". Remove this recipient - この受信者を外す + この受信者を除外する Enter a bitblocks address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i) - ブラックコインアドレスの入力 (例;B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i) + bitblocksアドレスの入力 (例;B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i) @@ -1949,7 +1971,7 @@ This label turns red, if the priority is smaller than "medium". You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to. - あなた自身を立証するためにあなたのアドレスでメッセージに署名することができます。フィッシング攻撃によってあなたを騙して署名を譲渡させようとするかもしれないので、不明確なものは絶対に署名しないように注意してください。あなたが同意する完全に詳細な声明にだけ署名してください。 + あなた自身を証明するためにあなたのアドレスでメッセージに署名することができます。フィッシング攻撃によってあなたを騙して署名を譲渡させようとするかもしれないので、不明確なものは絶対に署名しないように注意してください。あなたが同意する完全に詳細なメッセージにだけ署名してください。 @@ -1960,7 +1982,7 @@ This label turns red, if the priority is smaller than "medium". Choose an address from the address book - アドレス帳からアドレスを選ぶ + アドレス帳からアドレスを選択 @@ -1986,7 +2008,7 @@ This label turns red, if the priority is smaller than "medium". Copy the current signature to the system clipboard - 現在の署名をシステムのクリップボードにコピーする + 現在の署名をシステムのクリップボードへコピー @@ -2034,7 +2056,7 @@ This label turns red, if the priority is smaller than "medium". Enter a bitblocks address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i) - ブラックコインのアドレスを入力(例:B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i) + bitblocksのアドレスを入力(例:B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i) @@ -2044,13 +2066,13 @@ This label turns red, if the priority is smaller than "medium". Enter bitblocks signature - ブラックコインのデジタル署名を入力 + bitblocksのデジタル署名を入力 The entered address is invalid. - 不正なアドレスが入力されました。 + 入力されたアドレスは不正です。 @@ -2089,7 +2111,7 @@ This label turns red, if the priority is smaller than "medium". The signature could not be decoded. - 署名がデコードできません。 + 署名を復号できません。 @@ -2123,12 +2145,14 @@ This label turns red, if the priority is smaller than "medium". Open for %n block(s) - %n ブロックに開いている + + %n ブロックに開いている + conflicted - 相違 + 衝突 @@ -2143,7 +2167,7 @@ This label turns red, if the priority is smaller than "medium". %1 confirmations - %1 確認 + %1 検証済み @@ -2153,7 +2177,9 @@ This label turns red, if the priority is smaller than "medium". , broadcast through %n node(s) - %n ノードにブロードキャスト + + %n ノードにブロードキャスト + @@ -2168,7 +2194,7 @@ This label turns red, if the priority is smaller than "medium". Generated - 生成された + 生成されました @@ -2201,12 +2227,14 @@ This label turns red, if the priority is smaller than "medium". Credit - クレジット + 入金 matures in %n more block(s) - %n 以上のブロックが満期 + + あと %n ブロックで成熟します + @@ -2219,12 +2247,12 @@ This label turns red, if the priority is smaller than "medium". Debit - 引き落とし額 + 出金 Transaction fee - 処理の手数料 + トランザクション手数料 @@ -2244,7 +2272,7 @@ This label turns red, if the priority is smaller than "medium". Transaction ID - 処理のID + トランザクションID @@ -2259,7 +2287,7 @@ This label turns red, if the priority is smaller than "medium". Transaction - 処理 + トランザクション @@ -2269,7 +2297,7 @@ This label turns red, if the priority is smaller than "medium". Amount - 総額 + 金額 @@ -2297,12 +2325,12 @@ This label turns red, if the priority is smaller than "medium". Transaction details - 処理の詳細 + トランザクションの詳細 This pane shows a detailed description of the transaction - ここでは処理の詳細を表示しています + ここではトランザクションの詳細を表示しています @@ -2320,12 +2348,12 @@ This label turns red, if the priority is smaller than "medium". Address - Helbidea + アドレス Amount - 総額 + 金額 @@ -2340,7 +2368,9 @@ This label turns red, if the priority is smaller than "medium". Open for %n more block(s) - %n 以上のブロックを開く + + + @@ -2355,22 +2385,22 @@ This label turns red, if the priority is smaller than "medium". Confirming (%1 of %2 recommended confirmations) - 検証最中 (%1 / %2 の進めている検証済み) + 検証中 (%2 中 %1 検証済み) Conflicted - 相違 + 衝突 Immature (%1 confirmations, will be available after %2) - 未熟 (%1 検証,%2の後可用ができる) + 未成熟 (%1 検証済み,%2検証完了後に使用可能となります) This block was not received by any other nodes and will probably not be accepted! - このブロックは他のどのノードによっても受け取られないで、多分受け入れられないでしょう! + このブロックは他のノードでは受信されておらず、おそらく受け入れられません! @@ -2410,27 +2440,27 @@ This label turns red, if the priority is smaller than "medium". Transaction status. Hover over this field to show number of confirmations. - 処理の状況。この欄の上にカーソルを置くと検証の数を表示します。 + トランザクションの状況。この欄の上にカーソルを置くと検証の数を表示します。 Date and time that the transaction was received. - 処理を受信した日時。 + トランザクションを受信した日時。 Type of transaction. - 処理の種類。 + トランザクションの種類。 Destination address of transaction. - 処理の宛先アドレス。 + トランザクションの宛先アドレス。 Amount removed from or added to balance. - 残高に追加または削除された総額。 + 残高に追加または取り除かれた金額。 @@ -2474,7 +2504,7 @@ This label turns red, if the priority is smaller than "medium". Received with - 送り主 + 受信元 @@ -2504,27 +2534,27 @@ This label turns red, if the priority is smaller than "medium". Min amount - 最小の額 + 最小金額 Copy address - アドレスをコピーする + アドレスをコピー Copy label - ラベルをコピーする + ラベルをコピー Copy amount - 総額のコピー + 金額のコピー Copy transaction ID - 処理IDをコピー + トランザクションIDをコピー @@ -2534,17 +2564,17 @@ This label turns red, if the priority is smaller than "medium". Show transaction details - 処理の詳細を表示 + トランザクションの詳細を表示 Export Transaction Data - 処理のデータを書き出す + トランザクションデータを書き出す Comma separated file (*.csv) - テキスト CSV (*.csv) + CSVファイル (*.csv) @@ -2569,12 +2599,12 @@ This label turns red, if the priority is smaller than "medium". Address - Helbidea + アドレス Amount - 総額 + 金額 @@ -2584,12 +2614,12 @@ This label turns red, if the priority is smaller than "medium". Error exporting - エラーを書き出す + エクスポートエラー Could not write to file %1. - ファイルを書き込めなかった。%1 + ファイル%1に書き込みできません。 @@ -2607,7 +2637,7 @@ This label turns red, if the priority is smaller than "medium". Sending... - 通信中... + 送信中... @@ -2615,7 +2645,7 @@ This label turns red, if the priority is smaller than "medium". bitblocks version - ブラックコインバージョン + bitblocksバージョン @@ -2655,7 +2685,7 @@ This label turns red, if the priority is smaller than "medium". Specify wallet file (within data directory) - ウォレットのファイルを指定 (データ・ディレクトリの中に) + ウォレット ファイルを指定 (データ・ディレクトリの中に) @@ -2670,7 +2700,7 @@ This label turns red, if the priority is smaller than "medium". Set database disk log size in megabytes (default: 100) - メガバイトでのデータベースのログザイズの大きさの設定(デファルト:100) + データベースのログザイズの大きさのメガバイトで設定(デファルト:100) @@ -2690,17 +2720,17 @@ This label turns red, if the priority is smaller than "medium". Specify your own public address - あなた自身のパブリックなアドレスを指定 + あなた自身のパブリック アドレスを指定 Bind to given address. Use [host]:port notation for IPv6 - アドレスに結ぶ。IPv6のばい、[host]:port 表記法を使ってください。 + 指定されたアドレスにバインドします。 IPv6用に[host]:port記法を使用する Stake your coins to support network and gain reward (default: 1) - 褒奨金をもらうためと、ブラックコインネットワークをサッポートするために、コインを賭ける(デファルト:1) + 褒奨金をもらうためと、bitblocksネットワークをサッポートするために、コインを賭ける(デファルト:1) @@ -2715,7 +2745,7 @@ This label turns red, if the priority is smaller than "medium". An error occurred while setting up the RPC port %u for listening on IPv4: %s - IPv4 でリスンする RPC ポート %u の設定中にエラーが発生しました: %s + IPv4 で接続する RPC ポート %u の設定中にエラーが発生しました: %s @@ -2765,7 +2795,7 @@ This label turns red, if the priority is smaller than "medium". Run in the background as a daemon and accept commands - デーモンとしてバックグランドで実行しコマンドを許可 + デーモンとしてバックグランドで実行しコマンドを受け入れる @@ -2780,7 +2810,7 @@ This label turns red, if the priority is smaller than "medium". An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s - IPv6 でリスンする RPC ポート %u の設定中にエラーが発生したので IPv4 に切り替えます: %s + IPv6 で接続する RPC ポート %u の設定中にエラーが発生したので IPv4 に切り替えます: %s @@ -2800,22 +2830,22 @@ This label turns red, if the priority is smaller than "medium". Warning: Please check that your computer's date and time are correct! If your clock is wrong bitblocks will not work properly. -  警告:コンピュータの日付と時間を調べてください。時間ずらしかったばい、ブラックコイン QTは正しく行動しない。 +  警告:コンピュータの日付と時間を調べてください。時間ずらしかったばい、bitblocks QTは正しく行動しない。 Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect. - 警告: wallet.dat の読み込みエラー! すべてのキーは正しく読み取れますが、処理のデータやアドレス帳のエントリが失われたか、正しくない可能性があります。 + 警告: wallet.datファイルの読み込みエラー! すべてのキーは正しく読み取れますが、トランザクションのデータやアドレス帳のエントリが失われたか、正しくない可能性があります。 Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup. - 警告: wallet.dat のデータはの汚染で、でデータを復旧しました! オリジナルの wallet.dat は wallet.{timestamp}.bak として %s に保存されました; もしもあなたの残高や処理が正しくないばい、バックアップから復元してください。 + 警告: wallet.datファイルが破損したのでデータを復旧しました! オリジナルの wallet.datファイルは wallet.{timestamp}.bakファイルとして %s に保存されました; もしもあなたの残高やトランザクションが正しくない場合バックアップから復元してください。 Attempt to recover private keys from a corrupt wallet.dat - 壊れた wallet.dat から秘密鍵を復旧することを試す + 壊れた wallet.datファイルから秘密鍵を復旧することを試す @@ -2830,12 +2860,12 @@ This label turns red, if the priority is smaller than "medium". Discover own IP address (default: 1 when listening and no -externalip) - 自分の IP アドレスを発見 (初期値: リスン中と -externalip を使用していない場合は1) + 自分のIPアドレスを発見 (初期値: 接続中と -externalip オプションを使用していない場合は1) Failed to listen on any port. Use -listen=0 if you want this. - ポートのリスンに失敗しました。必要であれば -listen=0 を使用してください。 + ポートの接続に失敗しました。必要であれば -listen=0 を使用してください。 @@ -2845,17 +2875,17 @@ This label turns red, if the priority is smaller than "medium". Sync checkpoints policy (default: strict) - 同期チェックポイント方針(デファルト:厳しい) + 同期チェックポイント方針(デファルト:strict) Invalid -tor address: '%s' - 無効なTORアドレス: '%s' + 無効なTorアドレス: '%s' Invalid amount for -reservebalance=<amount> - -reservebalance=<amount>の額は無効です + -reservebalance=<amount>の金額は無効です @@ -2885,27 +2915,27 @@ This label turns red, if the priority is smaller than "medium". Prepend debug output with timestamp - デバッグのアウトプットはタイムスタンプで先頭に追加する + デバッグ出力の先頭にタイムスタンプを追加する SSL options: (see the Bitcoin Wiki for SSL setup instructions) - SSL オプション: (SSLのセットアップ手順は Bitcoin Wiki をご覧下さい) + SSL オプション: (SSLのセットアップ手順は Bitcoin Wiki を参照) Select the version of socks proxy to use (4-5, default: 5) - SOCKSプロクシーのバージョンを選択する (4-5、 デファルト: 5) + 使用するSOCKSプロキシのバージョンを選択 (4-5、 デファルト: 5) Send trace/debug info to console instead of debug.log file - トレース/デバッグ情報を debug.log ファイルの代わりにコンソールへ送る + トレース/デバッグ情報を debug.logファイルの代わりにコンソールへ送信 Send trace/debug info to debugger - デバッガへ追跡とデバッグ情報を送る。 + トレース/デバッグ情報をデバッガーへ送信 @@ -2925,29 +2955,29 @@ This label turns red, if the priority is smaller than "medium". Specify connection timeout in milliseconds (default: 5000) - 接続のタイムアウトをミリセコンドで指定 (初期値: 5000) + 接続タイムアウトをミリ秒で指定 (初期値: 5000) Unable to sign checkpoint, wrong checkpointkey? - チェックポイントを署名できません。checkpointkeyは違いますか。 + チェックポイントを署名できません。checkpointkeyは違いますか? Use UPnP to map the listening port (default: 0) - リスン ポートの割当に UPnP を使用 (初期値: 0) + UPnPを使用して接続ポートをマップする(デファルト: 0) Use UPnP to map the listening port (default: 1 when listening) - リスン ポートの割当に UPnP を使用 (初期値: リスン中は1) + UPnPを使用して接続ポートをマップする(デファルト: 接続中は1) Use proxy to reach tor hidden services (default: same as -proxy) - プロクシーでTORヒドゥンサービス(TOR Hidden Services)を接続する(デファルト:-proxyと同じ) + Torの隠されたサービスにアクセスするためにプロキシを使用する(デファルト:-proxyと同じ) @@ -2977,7 +3007,7 @@ This label turns red, if the priority is smaller than "medium". wallet.dat corrupt, salvage failed - wallet.dat が壊れ、復旧に失敗しました + wallet.datファイルが壊れています。復旧に失敗しました @@ -3006,7 +3036,7 @@ rpcpassword=%s ユーザ名とパスワードは同じであってはなりません。 ファイルは存在しないばいは、所有者が読み取り可能な専用のファイルを作成してください。 問題のことを知らせるために、alertnotifyの設定を有効にしたほうがいいです。 -例:alertnotify=echo %%s | mail -s "ブラックコイン警告" admin@foo.com +例:alertnotify=echo %%s | mail -s "bitblocks警告" admin@foo.com @@ -3042,7 +3072,7 @@ rpcpassword=%s Execute command when a wallet transaction changes (%s in cmd is replaced by TxID) - ウォレットの処理を変更する際にコマンドを実行 (cmd の %s は TxID に置換される) + ウォレットのトランザクションを変更する際にコマンドを実行 (cmd の %s は TxID に置換される) @@ -3057,7 +3087,7 @@ rpcpassword=%s Execute command when a relevant alert is received (%s in cmd is replaced by message) - 関連した警告をもらったら、コマンドを実行する (cmdの中で%sにメッセージを交換される) + 関連した警告を受信した際にコマンドを実行する (cmdの中で%sにメッセージを交換される) @@ -3067,12 +3097,12 @@ rpcpassword=%s Set key pool size to <n> (default: 100) - key pool のサイズを <n> (初期値: 100) にセット + key pool のサイズを <n> (初期値: 100) に設定 Rescan the block chain for missing wallet transactions - 失ったウォレットの処理のブロック チェーンを再スキャン + ウォレットのトランザクション欠落のためブロックチェーンを再スキャン @@ -3087,7 +3117,7 @@ rpcpassword=%s Imports blocks from external blk000?.dat file - 外部 blk000?.dat ファイルからブロックを読み込む。 + 外部 blk000?.datファイルからブロックを読み込む。 @@ -3112,7 +3142,7 @@ rpcpassword=%s Error: Wallet unlocked for staking only, unable to create transaction. - エラー:アンロックされたウォレットは賭けるためだけで、処理を作られない。 + エラー:アンロックされたウォレットはStakeするためだけで、トランザクションを作成できない。 @@ -3122,7 +3152,7 @@ rpcpassword=%s This help message - このヘルプ メッセージ + このヘルプメッセージ @@ -3132,12 +3162,12 @@ rpcpassword=%s Cannot obtain a lock on data directory %s. bitblocks is probably already running. - %sディレクトリにをロックオンできない。ブラックコインQTは、もう発行してるでしょう。 + %sディレクトリにをロックオンできない。bitblocksQTは、もう発行してるでしょう。 bitblocks - ブラックコイン + bitblocks @@ -3147,37 +3177,37 @@ rpcpassword=%s Connect through socks proxy - SOCKSプロキシで接続する + SOCKSプロキシ経由で接続する Allow DNS lookups for -addnode, -seednode and -connect - -addnode, -seednode と -connect で DNS ルックアップを許可する + -addnode, -seednode と -connect でDNSルックアップを許可する Loading addresses... - アドレスを読み込んでいます... + アドレスを読み込み中... Error loading blkindex.dat - blkindex.dat 読み込みエラー + blkindex.datファイルの読み込みエラー Error loading wallet.dat: Wallet corrupted - wallet.dat 読み込みエラー: ウォレットが壊れました + wallet.datファイルの読み込みエラー: ウォレットが破損しました。 Error loading wallet.dat: Wallet requires newer version of bitblocks - wallet.dat 読み込みエラー:  ブラックコインQTの最新バージョンが必要です + wallet.dat 読み込みエラー:  bitblocksQTの最新バージョンが必要です Wallet needed to be rewritten: restart bitblocks to complete - ウォレットのデータをリライトしなければならい:ブラックコインQTをリスタートしてください + ウォレットのデータをリライトしなければならい:bitblocksQTをリスタートしてください @@ -3212,7 +3242,7 @@ rpcpassword=%s Invalid amount for -paytxfee=<amount>: '%s' - -paytxfee=<amount> の額 '%s' が無効です + -paytxfee=<amount> の金額 '%s' が無効です @@ -3222,12 +3252,12 @@ rpcpassword=%s Sending... - 通信中... + 送信中... Invalid amount - 無効な総額 + 無効な金額 @@ -3237,17 +3267,17 @@ rpcpassword=%s Loading block index... - ブロック インデックスを読み込んでいます... + ブロック インデックスを読み込み中... Add a node to connect to and attempt to keep the connection open - 接続するノードを追加し接続を持続するように試します + 接続を維持したままノードを追加する Unable to bind to %s on this computer. bitblocks is probably already running. - このコンピューターで%sに結ぶことができなかった。ブラックコインQTは、もう発行してるでしょう。 + このコンピューターで%sに結ぶことができなかった。bitblocksQTは、もう発行してるでしょう。 @@ -3262,7 +3292,7 @@ rpcpassword=%s Loading wallet... - ウォレットを読み込んでいます... + ウォレットを読み込み中... @@ -3304,9 +3334,9 @@ rpcpassword=%s You must set rpcpassword=<password> in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions. - rpcpassword=<password> を設定ファイルでセットしてください: + rpcpassword=<password> を設定ファイルで設定してください: %s -ファイルが無い場合は、オーナーだけが読み取れる権限でファイルを作成してください。 +ファイルが存在しない場合は、オーナーだけが読み取れる権限でファイルを作成してください。 - \ No newline at end of file + diff --git a/src/qt/macdockiconhandler.mm b/src/qt/macdockiconhandler.mm index c456b45..1d10b61 100644 --- a/src/qt/macdockiconhandler.mm +++ b/src/qt/macdockiconhandler.mm @@ -2,7 +2,7 @@ #include #include -#include +#include #include #undef slots @@ -85,26 +85,26 @@ - (void)handleDockClickEvent:(NSAppleEventDescriptor*)event withReplyEvent:(NSAp NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSImage *image = nil; if (icon.isNull()) - image = [[NSImage imageNamed:@"NSApplicationIcon"] retain]; + image = [[NSImage imagenamed:@"NSApplicationIcon"] retain]; else { // generate NSImage from QIcon and use this as dock icon. QSize size = icon.actualSize(QSize(128, 128)); QPixmap pixmap = icon.pixmap(size); - // write temp file DRM (could also be done through QIODevice [memory]) - QTemporaryFile notificationIconFile; - if (!pixmap.isNull() && notificationIconFile.open()) { - QImageWriter writer(¬ificationIconFile, "PNG"); + // Write image into a R/W buffer from raw pixmap, then save the image. + QBuffer notificationBuffer; + if (!pixmap.isNull() && notificationBuffer.open(QIODevice::ReadWrite)) { + QImageWriter writer(¬ificationBuffer, "PNG"); if (writer.write(pixmap.toImage())) { - const char *cString = notificationIconFile.fileName().toUtf8().data(); - NSString *macString = [NSString stringWithCString:cString encoding:NSUTF8StringEncoding]; - image = [[NSImage alloc] initWithContentsOfFile:macString]; + NSData* macImgData = [NSData dataWithBytes:notificationBuffer.buffer().data() + length:notificationBuffer.buffer().size()]; + image = [[NSImage alloc] initWithData:macImgData]; } } if(!image) { // if testnet image could not be created, load std. app icon - image = [[NSImage imageNamed:@"NSApplicationIcon"] retain]; + image = [[NSImage imagenamed:@"NSApplicationIcon"] retain]; } } diff --git a/src/qt/macnotificationhandler.h b/src/qt/macnotificationhandler.h new file mode 100644 index 0000000..d4749b3 --- /dev/null +++ b/src/qt/macnotificationhandler.h @@ -0,0 +1,30 @@ +// Copyright (c) 2011-2014 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_QT_MACNOTIFICATIONHANDLER_H +#define BITCOIN_QT_MACNOTIFICATIONHANDLER_H + +#include + +/** Macintosh-specific notification handler (supports UserNotificationCenter and Growl). + */ +class MacNotificationHandler : public QObject +{ + Q_OBJECT + +public: + /** shows a 10.8+ UserNotification in the UserNotificationCenter + */ + void showNotification(const QString &title, const QString &text); + + /** executes AppleScript */ + void sendAppleScript(const QString &script); + + /** check if OS can handle UserNotifications */ + bool hasUserNotificationCenterSupport(void); + static MacNotificationHandler *instance(); +}; + + +#endif // BITCOIN_QT_MACNOTIFICATIONHANDLER_H diff --git a/src/qt/macnotificationhandler.mm b/src/qt/macnotificationhandler.mm new file mode 100644 index 0000000..dd3f622 --- /dev/null +++ b/src/qt/macnotificationhandler.mm @@ -0,0 +1,91 @@ +// Copyright (c) 2011-2013 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#include "macnotificationhandler.h" + +#undef slots +#import +#include + +// Add an obj-c category (extension) to return the expected bundle identifier +@implementation NSBundle(returnCorrectIdentifier) +- (NSString *)__bundleIdentifier +{ + if (self == [NSBundle mainBundle]) { + return @"org.bitcoinfoundation.Bitcoin-Qt"; + } else { + return [self __bundleIdentifier]; + } +} +@end + +void MacNotificationHandler::showNotification(const QString &title, const QString &text) +{ + // check if users OS has support for NSUserNotification + if(this->hasUserNotificationCenterSupport()) { + // okay, seems like 10.8+ + QByteArray utf8 = title.toUtf8(); + char* cString = (char *)utf8.constData(); + NSString *titleMac = [[NSString alloc] initWithUTF8String:cString]; + + utf8 = text.toUtf8(); + cString = (char *)utf8.constData(); + NSString *textMac = [[NSString alloc] initWithUTF8String:cString]; + + // do everything weak linked (because we will keep <10.8 compatibility) + id userNotification = [[NSClassFromString(@"NSUserNotification") alloc] init]; + [userNotification performSelector:@selector(setTitle:) withObject:titleMac]; + [userNotification performSelector:@selector(setInformativeText:) withObject:textMac]; + + id notificationCenterInstance = [NSClassFromString(@"NSUserNotificationCenter") performSelector:@selector(defaultUserNotificationCenter)]; + [notificationCenterInstance performSelector:@selector(deliverNotification:) withObject:userNotification]; + + [titleMac release]; + [textMac release]; + [userNotification release]; + } +} + +// sendAppleScript just take a QString and executes it as apple script +void MacNotificationHandler::sendAppleScript(const QString &script) +{ + QByteArray utf8 = script.toUtf8(); + char* cString = (char *)utf8.constData(); + NSString *scriptApple = [[NSString alloc] initWithUTF8String:cString]; + + NSAppleScript *as = [[NSAppleScript alloc] initWithSource:scriptApple]; + NSDictionary *err = nil; + [as executeAndReturnError:&err]; + [as release]; + [scriptApple release]; +} + +bool MacNotificationHandler::hasUserNotificationCenterSupport(void) +{ + Class possibleClass = NSClassFromString(@"NSUserNotificationCenter"); + + // check if users OS has support for NSUserNotification + if(possibleClass!=nil) { + return true; + } + return false; +} + + +MacNotificationHandler *MacNotificationHandler::instance() +{ + static MacNotificationHandler *s_instance = NULL; + if (!s_instance) { + s_instance = new MacNotificationHandler(); + + Class aPossibleClass = objc_getClass("NSBundle"); + if (aPossibleClass) { + // change NSBundle -bundleIdentifier method to return a correct bundle identifier + // a bundle identifier is required to use OSXs User Notification Center + method_exchangeImplementations(class_getInstanceMethod(aPossibleClass, @selector(bundleIdentifier)), + class_getInstanceMethod(aPossibleClass, @selector(__bundleIdentifier))); + } + } + return s_instance; +} diff --git a/src/qt/notificator.cpp b/src/qt/notificator.cpp index 33e28cc..374a815 100644 --- a/src/qt/notificator.cpp +++ b/src/qt/notificator.cpp @@ -50,25 +50,25 @@ Notificator::Notificator(const QString &programName, QSystemTrayIcon *trayicon, #endif #ifdef Q_OS_MAC // check if users OS has support for NSUserNotification - if(MacNotificationHandler::instance()->hasUserNotificationCenterSupport()) { - mode = UserNotificationCenter; - } - else { - // Check if Growl is installed (based on Qt's tray icon implementation) - CFURLRef cfurl; - OSStatus status = LSGetApplicationForInfo(kLSUnknownType, kLSUnknownCreator, CFSTR("growlTicket"), kLSRolesAll, 0, &cfurl); - if (status != kLSApplicationNotFoundErr) { - CFBundleRef bundle = CFBundleCreate(0, cfurl); - if (CFStringCompare(CFBundleGetIdentifier(bundle), CFSTR("com.Growl.GrowlHelperApp"), kCFCompareCaseInsensitive | kCFCompareBackwards) == kCFCompareEqualTo) { - if (CFStringHasSuffix(CFURLGetString(cfurl), CFSTR("/Growl.app/"))) - mode = Growl13; - else - mode = Growl12; - } - CFRelease(cfurl); - CFRelease(bundle); + if( MacNotificationHandler::instance()->hasUserNotificationCenterSupport()) { + mode = UserNotificationCenter; + } + else { + // Check if Growl is installed (based on Qt's tray icon implementation) + CFURLRef cfurl; + OSStatus status = LSGetApplicationForInfo(kLSUnknownType, kLSUnknownCreator, CFSTR("growlTicket"), kLSRolesAll, 0, &cfurl); + if (status != kLSApplicationNotFoundErr) { + CFBundleRef bundle = CFBundleCreate(0, cfurl); + if (CFStringCompare(CFBundleGetIdentifier(bundle), CFSTR("com.Growl.GrowlHelperApp"), kCFCompareCaseInsensitive | kCFCompareBackwards) == kCFCompareEqualTo) { + if (CFStringHasSuffix(CFURLGetString(cfurl), CFSTR("/Growl.app/"))) + mode = Growl13; + else + mode = Growl12; } + CFRelease(cfurl); + CFRelease(bundle); } + } #endif } @@ -284,6 +284,7 @@ void Notificator::notifyMacUserNotificationCenter(Class cls, const QString &titl // icon is not supported by the user notification center yet. OSX will use the app icon. MacNotificationHandler::instance()->showNotification(title, text); } + #endif void Notificator::notify(Class cls, const QString &title, const QString &text, const QIcon &icon, int millisTimeout) diff --git a/src/qt/notificator.h b/src/qt/notificator.h index bd4657b..944535c 100644 --- a/src/qt/notificator.h +++ b/src/qt/notificator.h @@ -1,16 +1,11 @@ -#ifndef BITCOIN_QT_NOTIFICATOR_H -#define BITCOIN_QT_NOTIFICATOR_H +#ifndef NOTIFICATOR_H +#define NOTIFICATOR_H -#if defined(HAVE_CONFIG_H) -#include "bitcoin-config.h" -#endif - -#include #include +#include QT_BEGIN_NAMESPACE class QSystemTrayIcon; - #ifdef USE_DBUS class QDBusInterface; #endif @@ -24,7 +19,7 @@ class Notificator: public QObject /** Create a new notificator. @note Ownership of trayIcon is not transferred to this object. */ - Notificator(const QString &programName, QSystemTrayIcon *trayIcon, QWidget *parent); + Notificator(const QString &programName=QString(), QSystemTrayIcon *trayIcon=0, QWidget *parent=0); ~Notificator(); // Message class @@ -51,12 +46,12 @@ public slots: private: QWidget *parent; enum Mode { - None, /**< Ignore informational notifications, and show a modal pop-up dialog for Critical notifications. */ - Freedesktop, /**< Use DBus org.freedesktop.Notifications */ - QSystemTray, /**< Use QSystemTray::showMessage */ - Growl12, /**< Use the Growl 1.2 notification system (Mac only) */ - Growl13, /**< Use the Growl 1.3 notification system (Mac only) */ - UserNotificationCenter /**< Use the 10.8+ User Notification Center (Mac only) */ + None, + Freedesktop, /**< Use DBus org.freedesktop.Notifications */ + QSystemTray, /**< Use QSystemTray::showMessage */ + Growl12, /**< Use the Growl 1.2 notification system (Mac only) */ + Growl13, /**< Use the Growl 1.3 notification system (Mac only) */ + UserNotificationCenter /**< Use the Growl 1.3 notification system (Mac only) */ }; QString programName; Mode mode; @@ -73,4 +68,4 @@ public slots: #endif }; -#endif // BITCOIN_NOTIFICATOR_H +#endif // NOTIFICATOR_H diff --git a/src/qt/res/icons/bitblocks.icns b/src/qt/res/icons/bitblocks.icns new file mode 100644 index 0000000..1f752ee Binary files /dev/null and b/src/qt/res/icons/bitblocks.icns differ diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index e514f91..99f7fa9 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -121,7 +121,7 @@ Object blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool fPri result.push_back(Pair("flags", strprintf("%s%s", blockindex->IsProofOfStake()? "proof-of-stake" : "proof-of-work", blockindex->GeneratedStakeModifier()? " stake-modifier": ""))); result.push_back(Pair("proofhash", blockindex->hashProof.GetHex())); result.push_back(Pair("entropybit", (int)blockindex->GetStakeEntropyBit())); - result.push_back(Pair("modifier", strprintf("%016"PRIx64, blockindex->nStakeModifier))); + result.push_back(Pair("modifier", strprintf("%016" PRIx64, blockindex->nStakeModifier))); result.push_back(Pair("modifierchecksum", strprintf("%08x", blockindex->nStakeModifierChecksum))); Array txinfo; BOOST_FOREACH (const CTransaction& tx, block.vtx) diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp index ed378cf..eb1351a 100644 --- a/src/rpcnet.cpp +++ b/src/rpcnet.cpp @@ -52,7 +52,7 @@ Value getpeerinfo(const Array& params, bool fHelp) Object obj; obj.push_back(Pair("addr", stats.addrName)); - obj.push_back(Pair("services", strprintf("%08"PRIx64, stats.nServices))); + obj.push_back(Pair("services", strprintf("%08" PRIx64, stats.nServices))); obj.push_back(Pair("lastsend", (int64_t)stats.nLastSend)); obj.push_back(Pair("lastrecv", (int64_t)stats.nLastRecv)); obj.push_back(Pair("conntime", (int64_t)stats.nTimeConnected)); diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index a255ce9..23bca91 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -787,7 +787,7 @@ Value addmultisigaddress(const Array& params, bool fHelp) if ((int)keys.size() < nRequired) throw runtime_error( strprintf("not enough keys supplied " - "(got %"PRIszu" keys, but need at least %d to redeem)", keys.size(), nRequired)); + "(got %" PRIszu" keys, but need at least %d to redeem)", keys.size(), nRequired)); std::vector pubkeys; pubkeys.resize(keys.size()); for (unsigned int i = 0; i < keys.size(); i++) diff --git a/src/txdb-leveldb.cpp b/src/txdb-leveldb.cpp index b960888..fd6305d 100644 --- a/src/txdb-leveldb.cpp +++ b/src/txdb-leveldb.cpp @@ -406,7 +406,7 @@ bool CTxDB::LoadBlockIndex() // NovaCoin: calculate stake modifier checksum pindex->nStakeModifierChecksum = GetStakeModifierChecksum(pindex); if (!CheckStakeModifierCheckpoints(pindex->nHeight, pindex->nStakeModifierChecksum)) - return error("CTxDB::LoadBlockIndex() : Failed stake modifier checkpoint height=%d, modifier=0x%016"PRIx64, pindex->nHeight, pindex->nStakeModifier); + return error("CTxDB::LoadBlockIndex() : Failed stake modifier checkpoint height=%d, modifier=0x%016" PRIx64, pindex->nHeight, pindex->nStakeModifier); } // Load hashBestChain pointer to end of best chain diff --git a/src/util.cpp b/src/util.cpp index 9679041..4200f3c 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -366,7 +366,7 @@ string FormatMoney(int64_t n, bool fPlus) int64_t n_abs = (n > 0 ? n : -n); int64_t quotient = n_abs/COIN; int64_t remainder = n_abs%COIN; - string str = strprintf("%"PRId64".%08"PRId64, quotient, remainder); + string str = strprintf("%" PRId64".%08" PRId64, quotient, remainder); // Right-trim excess zeros before the decimal point: int nTrim = 0; @@ -1183,7 +1183,7 @@ void AddTimeData(const CNetAddr& ip, int64_t nTime) // Add data vTimeOffsets.input(nOffsetSample); - printf("Added time data, samples %d, offset %+"PRId64" (%+"PRId64" minutes)\n", vTimeOffsets.size(), nOffsetSample, nOffsetSample/60); + printf("Added time data, samples %d, offset %+" PRId64" (%+" PRId64" minutes)\n", vTimeOffsets.size(), nOffsetSample, nOffsetSample/60); if (vTimeOffsets.size() >= 5 && vTimeOffsets.size() % 2 == 1) { int64_t nMedian = vTimeOffsets.median(); @@ -1218,10 +1218,10 @@ void AddTimeData(const CNetAddr& ip, int64_t nTime) } if (fDebug) { BOOST_FOREACH(int64_t n, vSorted) - printf("%+"PRId64" ", n); + printf("%+" PRId64" ", n); printf("| "); } - printf("nTimeOffset = %+"PRId64" (%+"PRId64" minutes)\n", nTimeOffset, nTimeOffset/60); + printf("nTimeOffset = %+" PRId64" (%+" PRId64" minutes)\n", nTimeOffset, nTimeOffset/60); } } diff --git a/src/util.h b/src/util.h index de5d60f..243632b 100644 --- a/src/util.h +++ b/src/util.h @@ -248,7 +248,7 @@ void runCommand(std::string strCommand); inline std::string i64tostr(int64_t n) { - return strprintf("%"PRId64, n); + return strprintf("%" PRId64, n); } inline std::string itostr(int n) diff --git a/src/wallet.cpp b/src/wallet.cpp index 4cd180a..244e94c 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -126,7 +126,7 @@ bool CWallet::LoadCScript(const CScript& redeemScript) if (redeemScript.size() > MAX_SCRIPT_ELEMENT_SIZE) { std::string strAddr = CBitcoinAddress(redeemScript.GetID()).ToString(); - printf("%s: Warning: This wallet contains a redeemScript of size %"PRIszu" which exceeds maximum size %i thus can never be redeemed. Do not use address %s.\n", + printf("%s: Warning: This wallet contains a redeemScript of size %" PRIszu" which exceeds maximum size %i thus can never be redeemed. Do not use address %s.\n", __func__, redeemScript.size(), MAX_SCRIPT_ELEMENT_SIZE, strAddr.c_str()); return true; } @@ -895,7 +895,7 @@ void CWallet::ReacceptWalletTransactions() // Update fSpent if a tx got spent somewhere else by a copy of wallet.dat if (txindex.vSpent.size() != wtx.vout.size()) { - printf("ERROR: ReacceptWalletTransactions() : txindex.vSpent.size() %"PRIszu" != wtx.vout.size() %"PRIszu"\n", txindex.vSpent.size(), wtx.vout.size()); + printf("ERROR: ReacceptWalletTransactions() : txindex.vSpent.size() %" PRIszu" != wtx.vout.size() %" PRIszu"\n", txindex.vSpent.size(), wtx.vout.size()); continue; } for (unsigned int i = 0; i < txindex.vSpent.size(); i++) @@ -1946,12 +1946,12 @@ void CWallet::PrintWallet(const CBlock& block) if (block.IsProofOfWork() && mapWallet.count(block.vtx[0].GetHash())) { CWalletTx& wtx = mapWallet[block.vtx[0].GetHash()]; - printf(" mine: %d %d %"PRId64"", wtx.GetDepthInMainChain(), wtx.GetBlocksToMaturity(), wtx.GetCredit()); + printf(" mine: %d %d %" PRId64"", wtx.GetDepthInMainChain(), wtx.GetBlocksToMaturity(), wtx.GetCredit()); } if (block.IsProofOfStake() && mapWallet.count(block.vtx[1].GetHash())) { CWalletTx& wtx = mapWallet[block.vtx[1].GetHash()]; - printf(" stake: %d %d %"PRId64"", wtx.GetDepthInMainChain(), wtx.GetBlocksToMaturity(), wtx.GetCredit()); + printf(" stake: %d %d %" PRId64"", wtx.GetDepthInMainChain(), wtx.GetBlocksToMaturity(), wtx.GetCredit()); } } @@ -2014,7 +2014,7 @@ bool CWallet::NewKeyPool() walletdb.WritePool(nIndex, CKeyPool(GenerateNewKey())); setKeyPool.insert(nIndex); } - printf("CWallet::NewKeyPool wrote %"PRId64" new keys\n", nKeys); + printf("CWallet::NewKeyPool wrote %" PRId64" new keys\n", nKeys); } return true; } @@ -2044,7 +2044,7 @@ bool CWallet::TopUpKeyPool(unsigned int nSize) if (!walletdb.WritePool(nEnd, CKeyPool(GenerateNewKey()))) throw runtime_error("TopUpKeyPool() : writing generated key failed"); setKeyPool.insert(nEnd); - printf("keypool added key %"PRId64", size=%"PRIszu"\n", nEnd, setKeyPool.size()); + printf("keypool added key %" PRId64", size=%" PRIszu"\n", nEnd, setKeyPool.size()); } } return true; @@ -2074,7 +2074,7 @@ void CWallet::ReserveKeyFromKeyPool(int64_t& nIndex, CKeyPool& keypool) throw runtime_error("ReserveKeyFromKeyPool() : unknown key in key pool"); assert(keypool.vchPubKey.IsValid()); if (fDebug && GetBoolArg("-printkeypool")) - printf("keypool reserve %"PRId64"\n", nIndex); + printf("keypool reserve %" PRId64"\n", nIndex); } } @@ -2102,7 +2102,7 @@ void CWallet::KeepKey(int64_t nIndex) walletdb.ErasePool(nIndex); } if(fDebug) - printf("keypool keep %"PRId64"\n", nIndex); + printf("keypool keep %" PRId64"\n", nIndex); } void CWallet::ReturnKey(int64_t nIndex) @@ -2113,7 +2113,7 @@ void CWallet::ReturnKey(int64_t nIndex) setKeyPool.insert(nIndex); } if(fDebug) - printf("keypool return %"PRId64"\n", nIndex); + printf("keypool return %" PRId64"\n", nIndex); } bool CWallet::GetKeyFromPool(CPubKey& result, bool fAllowReuse) diff --git a/src/walletdb.cpp b/src/walletdb.cpp index 44292b3..1f985f8 100644 --- a/src/walletdb.cpp +++ b/src/walletdb.cpp @@ -254,7 +254,7 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue, //// debug print //printf("LoadWallet %s\n", wtx.GetHash().ToString().c_str()); - //printf(" %12"PRId64" %s %s %s\n", + //printf(" %12" PRId64" %s %s %s\n", // wtx.vout[0].nValue, // DateTimeStrFormat("%x %H:%M:%S", wtx.GetBlockTime()).c_str(), // wtx.hashBlock.ToString().substr(0,20).c_str(), @@ -584,7 +584,7 @@ void ThreadFlushWalletDB(void* parg) bitdb.CheckpointLSN(strFile); bitdb.mapFileUseCount.erase(mi++); - printf("Flushed wallet.dat %"PRId64"ms\n", GetTimeMillis() - nStart); + printf("Flushed wallet.dat %" PRId64"ms\n", GetTimeMillis() - nStart); } } } @@ -645,7 +645,7 @@ bool CWalletDB::Recover(CDBEnv& dbenv, std::string filename, bool fOnlyKeys) // Set -rescan so any missing transactions will be // found. int64_t now = GetTime(); - std::string newFilename = strprintf("wallet.%"PRId64".bak", now); + std::string newFilename = strprintf("wallet.%" PRId64".bak", now); int result = dbenv.dbenv.dbrename(NULL, filename.c_str(), NULL, newFilename.c_str(), DB_AUTO_COMMIT); @@ -664,7 +664,7 @@ bool CWalletDB::Recover(CDBEnv& dbenv, std::string filename, bool fOnlyKeys) printf("Salvage(aggressive) found no records in %s.\n", newFilename.c_str()); return false; } - printf("Salvage(aggressive) found %"PRIszu" records\n", salvagedData.size()); + printf("Salvage(aggressive) found %" PRIszu" records\n", salvagedData.size()); bool fSuccess = allOK; Db* pdbCopy = new Db(&dbenv.dbenv, 0);