mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
version 0.3.1 rc1
This commit is contained in:
parent
8bd66202c3
commit
9d2174b6f5
8 changed files with 30 additions and 9 deletions
2
db.cpp
2
db.cpp
|
@ -592,6 +592,8 @@ bool CWalletDB::LoadWallet()
|
||||||
else if (strType == "version")
|
else if (strType == "version")
|
||||||
{
|
{
|
||||||
ssValue >> nFileVersion;
|
ssValue >> nFileVersion;
|
||||||
|
if (nFileVersion == 10300)
|
||||||
|
nFileVersion = 300;
|
||||||
}
|
}
|
||||||
else if (strType == "setting")
|
else if (strType == "setting")
|
||||||
{
|
{
|
||||||
|
|
4
irc.cpp
4
irc.cpp
|
@ -158,6 +158,10 @@ bool Wait(int nSeconds)
|
||||||
|
|
||||||
void ThreadIRCSeed(void* parg)
|
void ThreadIRCSeed(void* parg)
|
||||||
{
|
{
|
||||||
|
if (mapArgs.count("-connect"))
|
||||||
|
return;
|
||||||
|
if (mapArgs.count("-noirc"))
|
||||||
|
return;
|
||||||
printf("ThreadIRCSeed started\n");
|
printf("ThreadIRCSeed started\n");
|
||||||
int nErrorWait = 10;
|
int nErrorWait = 10;
|
||||||
int nRetryWait = 10;
|
int nRetryWait = 10;
|
||||||
|
|
7
main.cpp
7
main.cpp
|
@ -2544,13 +2544,13 @@ void BlockSHA256(const void* pin, unsigned int nBlocks, void* pout)
|
||||||
void BitcoinMiner()
|
void BitcoinMiner()
|
||||||
{
|
{
|
||||||
printf("BitcoinMiner started\n");
|
printf("BitcoinMiner started\n");
|
||||||
|
SetThreadPriority(THREAD_PRIORITY_LOWEST);
|
||||||
|
|
||||||
CKey key;
|
CKey key;
|
||||||
key.MakeNewKey();
|
key.MakeNewKey();
|
||||||
CBigNum bnExtraNonce = 0;
|
CBigNum bnExtraNonce = 0;
|
||||||
while (fGenerateBitcoins)
|
while (fGenerateBitcoins)
|
||||||
{
|
{
|
||||||
SetThreadPriority(THREAD_PRIORITY_LOWEST);
|
|
||||||
Sleep(50);
|
Sleep(50);
|
||||||
if (fShutdown)
|
if (fShutdown)
|
||||||
return;
|
return;
|
||||||
|
@ -2610,6 +2610,9 @@ void BitcoinMiner()
|
||||||
CTransaction& tx = (*mi).second;
|
CTransaction& tx = (*mi).second;
|
||||||
if (tx.IsCoinBase() || !tx.IsFinal())
|
if (tx.IsCoinBase() || !tx.IsFinal())
|
||||||
continue;
|
continue;
|
||||||
|
unsigned int nTxSize = ::GetSerializeSize(tx, SER_NETWORK);
|
||||||
|
if (nBlockSize + nTxSize >= MAX_BLOCK_SIZE - 10000)
|
||||||
|
continue;
|
||||||
|
|
||||||
// Transaction fee based on block size
|
// Transaction fee based on block size
|
||||||
int64 nMinFee = tx.GetMinFee(nBlockSize);
|
int64 nMinFee = tx.GetMinFee(nBlockSize);
|
||||||
|
@ -2620,7 +2623,7 @@ void BitcoinMiner()
|
||||||
swap(mapTestPool, mapTestPoolTmp);
|
swap(mapTestPool, mapTestPoolTmp);
|
||||||
|
|
||||||
pblock->vtx.push_back(tx);
|
pblock->vtx.push_back(tx);
|
||||||
nBlockSize += ::GetSerializeSize(tx, SER_NETWORK);
|
nBlockSize += nTxSize;
|
||||||
vfAlreadyAdded[n] = true;
|
vfAlreadyAdded[n] = true;
|
||||||
fFoundSomething = true;
|
fFoundSomething = true;
|
||||||
}
|
}
|
||||||
|
|
1
main.h
1
main.h
|
@ -15,6 +15,7 @@ class CWalletTx;
|
||||||
class CKeyItem;
|
class CKeyItem;
|
||||||
|
|
||||||
static const unsigned int MAX_SIZE = 0x02000000;
|
static const unsigned int MAX_SIZE = 0x02000000;
|
||||||
|
static const unsigned int MAX_BLOCK_SIZE = 1000000;
|
||||||
static const int64 COIN = 100000000;
|
static const int64 COIN = 100000000;
|
||||||
static const int64 CENT = 1000000;
|
static const int64 CENT = 1000000;
|
||||||
static const int COINBASE_MATURITY = 100;
|
static const int COINBASE_MATURITY = 100;
|
||||||
|
|
|
@ -23,8 +23,8 @@ LIBS= \
|
||||||
-Wl,-Bstatic \
|
-Wl,-Bstatic \
|
||||||
-l boost_system -l boost_filesystem \
|
-l boost_system -l boost_filesystem \
|
||||||
-l db_cxx \
|
-l db_cxx \
|
||||||
-Wl,-Bdynamic \
|
|
||||||
-l crypto \
|
-l crypto \
|
||||||
|
-Wl,-Bdynamic \
|
||||||
-l gthread-2.0
|
-l gthread-2.0
|
||||||
|
|
||||||
WXDEFS=-D__WXGTK__ -DNOPCH
|
WXDEFS=-D__WXGTK__ -DNOPCH
|
||||||
|
|
|
@ -20,7 +20,7 @@ class CDataStream;
|
||||||
class CAutoFile;
|
class CAutoFile;
|
||||||
|
|
||||||
static const int VERSION = 301;
|
static const int VERSION = 301;
|
||||||
static const char* pszSubVer = ".0";
|
static const char* pszSubVer = "";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ RequestExecutionLevel highest
|
||||||
|
|
||||||
# General Symbol Definitions
|
# General Symbol Definitions
|
||||||
!define REGKEY "SOFTWARE\$(^Name)"
|
!define REGKEY "SOFTWARE\$(^Name)"
|
||||||
!define VERSION 0.3.0
|
!define VERSION 0.3.1
|
||||||
!define COMPANY "Bitcoin project"
|
!define COMPANY "Bitcoin project"
|
||||||
!define URL http://www.bitcoin.org/
|
!define URL http://www.bitcoin.org/
|
||||||
|
|
||||||
|
@ -42,12 +42,12 @@ Var StartMenuGroup
|
||||||
!insertmacro MUI_LANGUAGE English
|
!insertmacro MUI_LANGUAGE English
|
||||||
|
|
||||||
# Installer attributes
|
# Installer attributes
|
||||||
OutFile bitcoin-0.3.0-win32-setup.exe
|
OutFile bitcoin-0.3.1-win32-setup.exe
|
||||||
InstallDir $PROGRAMFILES\Bitcoin
|
InstallDir $PROGRAMFILES\Bitcoin
|
||||||
CRCCheck on
|
CRCCheck on
|
||||||
XPStyle on
|
XPStyle on
|
||||||
ShowInstDetails show
|
ShowInstDetails show
|
||||||
VIProductVersion 0.3.0.0
|
VIProductVersion 0.3.1.0
|
||||||
VIAddVersionKey ProductName Bitcoin
|
VIAddVersionKey ProductName Bitcoin
|
||||||
VIAddVersionKey ProductVersion "${VERSION}"
|
VIAddVersionKey ProductVersion "${VERSION}"
|
||||||
VIAddVersionKey CompanyName "${COMPANY}"
|
VIAddVersionKey CompanyName "${COMPANY}"
|
||||||
|
|
15
ui.cpp
15
ui.cpp
|
@ -375,13 +375,12 @@ void CMainFrame::OnIconize(wxIconizeEvent& event)
|
||||||
// to get rid of the deprecated warning. Just ignore it.
|
// to get rid of the deprecated warning. Just ignore it.
|
||||||
if (!event.Iconized())
|
if (!event.Iconized())
|
||||||
fClosedToTray = false;
|
fClosedToTray = false;
|
||||||
//#ifdef __WXMSW__
|
|
||||||
// The tray icon sometimes disappears on ubuntu karmic
|
// The tray icon sometimes disappears on ubuntu karmic
|
||||||
// Hiding the taskbar button doesn't work cleanly on ubuntu lucid
|
// Hiding the taskbar button doesn't work cleanly on ubuntu lucid
|
||||||
|
// Reports of CPU peg on 64-bit linux
|
||||||
if (fMinimizeToTray && event.Iconized())
|
if (fMinimizeToTray && event.Iconized())
|
||||||
fClosedToTray = true;
|
fClosedToTray = true;
|
||||||
Show(!fClosedToTray);
|
Show(!fClosedToTray);
|
||||||
//#endif
|
|
||||||
ptaskbaricon->Show(fMinimizeToTray || fClosedToTray);
|
ptaskbaricon->Show(fMinimizeToTray || fClosedToTray);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1446,6 +1445,14 @@ COptionsDialog::COptionsDialog(wxWindow* parent) : COptionsDialogBase(parent)
|
||||||
SelectPage(0);
|
SelectPage(0);
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
m_checkBoxStartOnSystemStartup->SetLabel(_("&Start Bitcoin on window system startup"));
|
m_checkBoxStartOnSystemStartup->SetLabel(_("&Start Bitcoin on window system startup"));
|
||||||
|
if (!mapArgs.count("-minimizetotray"))
|
||||||
|
{
|
||||||
|
// Minimize to tray is just too buggy on Linux
|
||||||
|
fMinimizeToTray = false;
|
||||||
|
m_checkBoxMinimizeToTray->SetValue(false);
|
||||||
|
m_checkBoxMinimizeToTray->Enable(false);
|
||||||
|
m_checkBoxMinimizeOnClose->SetLabel(_("&Minimize on close"));
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef __WXMAC_OSX__
|
#ifdef __WXMAC_OSX__
|
||||||
m_checkBoxStartOnSystemStartup->Enable(false); // not implemented yet
|
m_checkBoxStartOnSystemStartup->Enable(false); // not implemented yet
|
||||||
|
@ -2536,6 +2543,10 @@ void CreateMainWindow()
|
||||||
pframeMain = new CMainFrame(NULL);
|
pframeMain = new CMainFrame(NULL);
|
||||||
if (mapArgs.count("-min"))
|
if (mapArgs.count("-min"))
|
||||||
pframeMain->Iconize(true);
|
pframeMain->Iconize(true);
|
||||||
|
#ifdef __WXGTK__
|
||||||
|
if (!mapArgs.count("-minimizetotray"))
|
||||||
|
fMinimizeToTray = false;
|
||||||
|
#endif
|
||||||
pframeMain->Show(true); // have to show first to get taskbar button to hide
|
pframeMain->Show(true); // have to show first to get taskbar button to hide
|
||||||
if (fMinimizeToTray && pframeMain->IsIconized())
|
if (fMinimizeToTray && pframeMain->IsIconized())
|
||||||
fClosedToTray = true;
|
fClosedToTray = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue