-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
143 changed files
with
57,252 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2009-2011 Bitcoin Developers | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,16 @@ | ||
# bitcoinL | ||
An altcoin fork from bitcoin v0.2.7 | ||
Bitcoin integration/staging tree | ||
|
||
Development process | ||
=================== | ||
|
||
Developers work in their own trees, then submit pull requests when they think their feature or bug fix is ready. | ||
|
||
If it is a simple/trivial/non-controversial change, then one of the bitcoin development team members simply pulls it. | ||
|
||
If it is a more complicated or potentially controversial change, then the patch submitter will be asked to start a discussion (if they haven't already) on the development forums: http://www.bitcoin.org/smf/index.php?board=6.0 | ||
The patch will be accepted if there is broad consensus that it is a good thing. Developers should expect to rework and resubmit patches if they don't match the project's coding conventions (see coding.txt) or are controversial. | ||
|
||
The master branch is regularly built and tested (by who? need people willing to be quality assurance testers), and periodically pushed to the subversion repo to become the official, stable, released bitcoin. | ||
|
||
|
||
Feature branches are created when there are major new features being worked on by several people. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDisplayName</key> | ||
<string>Bitcoin</string> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>English</string> | ||
<key>CFBundleExecutable</key> | ||
<string>bitcoin</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>org.bitcoin.bitcoin</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>Bitcoin</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>0.3.24</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>324</string> | ||
<key>LSMinimumSystemVersion</key> | ||
<string>10.5</string> | ||
<key>CFBundleIconFile</key> | ||
<string>BitcoinAppIcon.icns</string> | ||
<key>LSMultipleInstancesProhibited</key> | ||
<true/> | ||
</dict> | ||
</plist> |
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
--- | ||
name: "bitcoin" | ||
suites: | ||
- "lucid" | ||
architectures: | ||
- "i386" | ||
packages: | ||
- "mingw32" | ||
- "git-core" | ||
- "unzip" | ||
- "nsis" | ||
reference_datetime: "2011-01-30 00:00:00" | ||
remotes: | ||
- "url": "https://github.com/bitcoin/bitcoin.git" | ||
"dir": "bitcoin" | ||
files: | ||
- "wxWidgets-2.9.1.tar.bz2" | ||
- "boost_1_43_0.tar.bz2" | ||
- "openssl-1.0.0d.tar.gz" | ||
- "db-4.7.25.NC.tar.gz" | ||
- "upnpc-exe-win32-20110215.zip" | ||
- "miniupnpc-1.5.20110215.tar.gz" | ||
- "WSPiApi.h" | ||
script: | | ||
# | ||
tar xjf wxWidgets-2.9.1.tar.bz2 | ||
cd wxWidgets-2.9.1 | ||
./configure --host=i586-mingw32msvc --build=i686-linux --disable-shared --enable-monolithic --without-libpng --disable-svg | ||
perl -i -p -e "s/__TIME__/\"$REFERENCE_TIME\"/;s/__DATE__/\"$REFERENCE_DATE\"/" include/wx/chartype.h | ||
make $MAKEOPTS | ||
cd .. | ||
# | ||
tar xzf openssl-1.0.0d.tar.gz | ||
cd openssl-1.0.0d | ||
./Configure --cross-compile-prefix=i586-mingw32msvc- mingw | ||
make | ||
cd .. | ||
# | ||
tar xzf db-4.7.25.NC.tar.gz | ||
cd db-4.7.25.NC/build_unix | ||
../dist/configure --enable-mingw --enable-cxx --host=i586-mingw32msvc CFLAGS="-I/usr/i586-mingw32msvc/include" | ||
make $MAKEOPTS | ||
cd ../.. | ||
# | ||
tar xjf boost_1_43_0.tar.bz2 | ||
cd boost_1_43_0 | ||
echo "using gcc : 4.4 : i586-mingw32msvc-g++ | ||
: | ||
<rc>i586-mingw32msvc-windres | ||
<archiver>i586-mingw32msvc-ar | ||
;" > user-config.jam | ||
./bootstrap.sh --without-icu | ||
./bjam toolset=gcc target-os=windows threadapi=win32 threading=multi --user-config=user-config.jam --without-mpi --without-python -sNO_BZIP2=1 -sNO_ZLIB=1 --layout=tagged --build-type=complete $MAKEOPTS stage | ||
cd .. | ||
# | ||
mkdir upnpc-exe-win32-20110215 | ||
cd upnpc-exe-win32-20110215 | ||
unzip ../upnpc-exe-win32-20110215.zip | ||
mkdir miniupnpc | ||
cd miniupnpc | ||
tar xzf ../../miniupnpc-1.5.20110215.tar.gz | ||
mv ./miniupnpc-1.5.20110215/* ./ | ||
cd ../.. | ||
# | ||
cp WSPiApi.h $HOME/build | ||
# | ||
cd bitcoin | ||
mkdir -p $OUTDIR/src | ||
cp -a . $OUTDIR/src | ||
rm -rf $OUTDIR/src/.git | ||
cp -a $OUTDIR/src/locale $OUTDIR | ||
cp $OUTDIR/src/doc/README_windows.txt $OUTDIR/readme.txt | ||
cp $OUTDIR/src/COPYING $OUTDIR/license.txt | ||
cd src | ||
sed 's/$(DEBUGFLAGS)//' < makefile.linux-mingw > makefile.linux-mingw.2 && mv makefile.linux-mingw.2 makefile.linux-mingw | ||
sed 's|//#include <WSPiApi.h>|#include <WSPiApi.h>|' < net.cpp > net.cpp.2 && mv net.cpp.2 net.cpp | ||
make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$HOME/build bitcoin.exe USE_UPNP=1 | ||
make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$HOME/build bitcoind.exe USE_UPNP=0 | ||
i586-mingw32msvc-strip bitcoin.exe | ||
i586-mingw32msvc-strip bitcoind.exe | ||
makensis ../share/setup.nsi | ||
cp bitcoin.exe ../share/bitcoin-*-win32-setup.exe $OUTDIR/ | ||
mkdir $OUTDIR/daemon | ||
cp bitcoind.exe $OUTDIR/daemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
name: "bitcoin" | ||
suites: | ||
- "lucid" | ||
architectures: | ||
- "i386" | ||
- "amd64" | ||
packages: | ||
- "libdb4.7++-dev" | ||
- "libxxf86vm-dev" | ||
- "libgtk2.0-dev" | ||
- "libboost-all-dev" | ||
- "libssl-dev" | ||
- "git-core" | ||
reference_datetime: "2011-01-30 00:00:00" | ||
remotes: | ||
- "url": "https://github.com/bitcoin/bitcoin.git" | ||
"dir": "bitcoin" | ||
files: | ||
- "wxWidgets-2.9.1.tar.bz2" | ||
- "miniupnpc-1.5.tar.gz" | ||
- "toplevel.h.diff" | ||
- "toplevel.cpp.diff" | ||
script: | | ||
INSTDIR="$HOME/install" | ||
export LIBRARY_PATH="$INSTDIR/lib" | ||
# | ||
tar xzf miniupnpc-1.5.tar.gz | ||
cd miniupnpc-1.5 | ||
INSTALLPREFIX=$INSTDIR make $MAKEOPTS install | ||
cd .. | ||
# | ||
tar xjf wxWidgets-2.9.1.tar.bz2 | ||
cd wxWidgets-2.9.1 | ||
cd include/wx/gtk | ||
patch < ../../../../toplevel.h.diff | ||
cd ../../../src/gtk | ||
patch < ../../../toplevel.cpp.diff | ||
cd ../.. | ||
./configure --prefix=$INSTDIR --enable-monolithic --disable-shared | ||
perl -i -p -e "s/__TIME__/\"$REFERENCE_TIME\"/;s/__DATE__/\"$REFERENCE_DATE\"/" include/wx/chartype.h | ||
make $MAKEOPTS install | ||
cd .. | ||
# | ||
cd bitcoin | ||
mkdir -p $OUTDIR/src | ||
cp -a . $OUTDIR/src | ||
rm -rf $OUTDIR/src/.git | ||
mv $OUTDIR/src/locale $OUTDIR | ||
cp $OUTDIR/src/doc/README $OUTDIR | ||
cp $OUTDIR/src/COPYING $OUTDIR | ||
cd src | ||
sed 's/$(DEBUGFLAGS)//' < makefile.unix > makefile.unix.2 && mv makefile.unix.2 makefile.unix | ||
PATH=$INSTDIR/bin:$PATH make -f makefile.unix CXX="g++ -I$INSTDIR/include -L$INSTDIR/lib" $MAKEOPTS bitcoin USE_UPNP=1 | ||
PATH=$INSTDIR/bin:$PATH make -f makefile.unix CXX="g++ -I$INSTDIR/include -L$INSTDIR/lib" $MAKEOPTS bitcoind USE_UPNP=0 | ||
mkdir -p $OUTDIR/bin/$GBUILD_BITS | ||
install -s bitcoin bitcoind $OUTDIR/bin/$GBUILD_BITS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This folder contains two patches which are applied to wxWidgets | ||
2.9.1 before building the wxWidgets which is used for release | ||
versions of bitcoin. They make the GUI show up on newer OSs | ||
with new libgtks, such as Ubuntu 11.04. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
--- /wxWidgets/trunk/src/gtk/toplevel.cpp (revision 67326) | ||
+++ /wxWidgets/trunk/src/gtk/toplevel.cpp (revision 67496) | ||
@@ -72,4 +72,8 @@ | ||
// send any activate events at all | ||
static int g_sendActivateEvent = -1; | ||
+ | ||
+// Whether _NET_REQUEST_FRAME_EXTENTS support is working | ||
+// 0 == not tested yet, 1 == working, 2 == broken | ||
+static int gs_requestFrameExtentsStatus; | ||
|
||
//----------------------------------------------------------------------------- | ||
@@ -432,4 +436,12 @@ | ||
if (event->state == GDK_PROPERTY_NEW_VALUE && event->atom == property) | ||
{ | ||
+ if (win->m_netFrameExtentsTimerId) | ||
+ { | ||
+ // WM support for _NET_REQUEST_FRAME_EXTENTS is working | ||
+ gs_requestFrameExtentsStatus = 1; | ||
+ g_source_remove(win->m_netFrameExtentsTimerId); | ||
+ win->m_netFrameExtentsTimerId = 0; | ||
+ } | ||
+ | ||
wxSize decorSize = win->m_decorSize; | ||
int left, right, top, bottom; | ||
@@ -439,4 +451,22 @@ | ||
win->GTKUpdateDecorSize(decorSize); | ||
} | ||
+ return false; | ||
+} | ||
+} | ||
+ | ||
+extern "C" { | ||
+static gboolean request_frame_extents_timeout(void* data) | ||
+{ | ||
+ // WM support for _NET_REQUEST_FRAME_EXTENTS is broken | ||
+ gs_requestFrameExtentsStatus = 2; | ||
+ gdk_threads_enter(); | ||
+ wxTopLevelWindowGTK* win = static_cast<wxTopLevelWindowGTK*>(data); | ||
+ win->m_netFrameExtentsTimerId = 0; | ||
+ wxSize decorSize = win->m_decorSize; | ||
+ int left, right, top, bottom; | ||
+ if (wxGetFrameExtents(gtk_widget_get_window(win->m_widget), &left, &right, &top, &bottom)) | ||
+ decorSize.Set(left + right, top + bottom); | ||
+ win->GTKUpdateDecorSize(decorSize); | ||
+ gdk_threads_leave(); | ||
return false; | ||
} | ||
@@ -459,4 +489,5 @@ | ||
m_deferShowAllowed = true; | ||
m_updateDecorSize = true; | ||
+ m_netFrameExtentsTimerId = 0; | ||
|
||
m_urgency_hint = -2; | ||
@@ -811,5 +842,6 @@ | ||
if (deferShow) | ||
{ | ||
- deferShow = m_deferShowAllowed && !GTK_WIDGET_REALIZED(m_widget); | ||
+ deferShow = gs_requestFrameExtentsStatus != 2 && | ||
+ m_deferShowAllowed && !gtk_widget_get_realized(m_widget); | ||
if (deferShow) | ||
{ | ||
@@ -829,11 +861,4 @@ | ||
// GetSize()/SetSize() because it makes window bigger between each | ||
// restore and save. | ||
- m_updateDecorSize = deferShow; | ||
- } | ||
- if (deferShow) | ||
- { | ||
- // Fluxbox support for _NET_REQUEST_FRAME_EXTENTS is broken | ||
- const char* name = gdk_x11_screen_get_window_manager_name(screen); | ||
- deferShow = strcmp(name, "Fluxbox") != 0; | ||
m_updateDecorSize = deferShow; | ||
} | ||
@@ -875,4 +900,12 @@ | ||
(XEvent*)&xevent); | ||
|
||
+ if (gs_requestFrameExtentsStatus == 0) | ||
+ { | ||
+ // if WM does not respond to request within 1 second, | ||
+ // we assume support for _NET_REQUEST_FRAME_EXTENTS is not working | ||
+ m_netFrameExtentsTimerId = | ||
+ g_timeout_add(1000, request_frame_extents_timeout, this); | ||
+ } | ||
+ | ||
// defer calling gtk_widget_show() | ||
m_isShown = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- /wxWidgets/trunk/include/wx/gtk/toplevel.h (revision 65373) | ||
+++ /wxWidgets/trunk/include/wx/gtk/toplevel.h (revision 67496) | ||
@@ -114,4 +114,6 @@ | ||
// wxUSER_ATTENTION_ERROR difference, -2 for no hint, -1 for ERROR hint, rest for GtkTimeout handle. | ||
int m_urgency_hint; | ||
+ // timer for detecting WM with broken _NET_REQUEST_FRAME_EXTENTS handling | ||
+ unsigned m_netFrameExtentsTimerId; | ||
|
||
// return the size of the window without WM decorations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Bitcoin 0.3.24 BETA | ||
|
||
Copyright (c) 2009-2011 Bitcoin Developers | ||
Distributed under the MIT/X11 software license, see the accompanying | ||
file license.txt or http://www.opensource.org/licenses/mit-license.php. | ||
This product includes software developed by the OpenSSL Project for use in | ||
the OpenSSL Toolkit (http://www.openssl.org/). This product includes | ||
cryptographic software written by Eric Young (eay@cryptsoft.com). | ||
|
||
|
||
Intro | ||
----- | ||
Bitcoin is a free open source peer-to-peer electronic cash system that is | ||
completely decentralized, without the need for a central server or trusted | ||
parties. Users hold the crypto keys to their own money and transact directly | ||
with each other, with the help of a P2P network to check for double-spending. | ||
|
||
|
||
Setup | ||
----- | ||
Unpack the files into a directory and run: | ||
bin/32/bitcoin (GUI, 32-bit) | ||
bin/32/bitcoind (headless, 32-bit) | ||
bin/64/bitcoin (GUI, 64-bit) | ||
bin/64/bitcoind (headless, 64-bit) | ||
|
||
See the documentation at the bitcoin wiki: | ||
https://en.bitcoin.it/wiki/Main_Page | ||
|
||
... for help and more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Bitcoin 0.3.24 BETA | ||
|
||
Copyright (c) 2009-2011 Bitcoin Developers | ||
Distributed under the MIT/X11 software license, see the accompanying | ||
file license.txt or http://www.opensource.org/licenses/mit-license.php. | ||
This product includes software developed by the OpenSSL Project for use in | ||
the OpenSSL Toolkit (http://www.openssl.org/). This product includes | ||
cryptographic software written by Eric Young (eay@cryptsoft.com). | ||
|
||
|
||
Intro | ||
----- | ||
Bitcoin is a free open source peer-to-peer electronic cash system that is | ||
completely decentralized, without the need for a central server or trusted | ||
parties. Users hold the crypto keys to their own money and transact directly | ||
with each other, with the help of a P2P network to check for double-spending. | ||
|
||
|
||
Setup | ||
----- | ||
Unpack the files into a directory and run bitcoin.exe. | ||
|
||
If you have Microsoft Security Essentials, you need to add bitcoin.exe to its | ||
"Excluded processes" list. Microsoft Security Essentials->Settings tab, | ||
select Excluded processes, press Add, select bitcoin.exe, OK, Save changes. | ||
|
||
The software automatically finds other nodes to connect to. You can | ||
enable Universal Plug and Play using a menu entry or set your firewall | ||
to forward port 8333 (TCP) to your computer so you can receive | ||
incoming connections. Bitcoin work without incoming connections, | ||
but allowing incoming connections helps the Bitcoin network. | ||
|
||
See the bitcoin wiki at: https://en.bitcoin.it/wiki/Main_Page | ||
for more help and information. |
Oops, something went wrong.