mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-16 18:39:18 +00:00
Merge branch '0.5.x' into 0.6.0.x
Conflicts: bitcoin-qt.pro doc/README doc/README_windows.txt share/setup.nsi src/serialize.h
This commit is contained in:
commit
8ba4282c3f
@ -1404,8 +1404,8 @@ Value listsinceblock(const Array& params, bool fHelp)
|
||||
{
|
||||
if (fHelp)
|
||||
throw runtime_error(
|
||||
"listsinceblock [blockid] [target-confirmations]\n"
|
||||
"Get all transactions in blocks since block [blockid], or all transactions if omitted");
|
||||
"listsinceblock [blockhash] [target-confirmations]\n"
|
||||
"Get all transactions in blocks since block [blockhash], or all transactions if omitted");
|
||||
|
||||
CBlockIndex *pindex = NULL;
|
||||
int target_confirms = 1;
|
||||
@ -1442,7 +1442,6 @@ Value listsinceblock(const Array& params, bool fHelp)
|
||||
|
||||
if (target_confirms == 1)
|
||||
{
|
||||
printf("oops!\n");
|
||||
lastblock = hashBestChain;
|
||||
}
|
||||
else
|
||||
|
||||
@ -955,9 +955,10 @@ public:
|
||||
fileout << FLATDATA(pchMessageStart) << nSize;
|
||||
|
||||
// Write block
|
||||
nBlockPosRet = ftell(fileout);
|
||||
if (nBlockPosRet == -1)
|
||||
long fileOutPos = ftell(fileout);
|
||||
if (fileOutPos < 0)
|
||||
return error("CBlock::WriteToDisk() : ftell failed");
|
||||
nBlockPosRet = fileOutPos;
|
||||
fileout << *this;
|
||||
|
||||
// Flush stdio buffers and commit to disk before returning
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user