├── src ├── config │ └── .empty ├── secp256k1 │ ├── obj │ │ └── .gitignore │ ├── autogen.sh │ ├── TODO │ ├── libsecp256k1.pc.in │ ├── .gitignore │ ├── src │ │ ├── java │ │ │ ├── org_bitcoin_NativeSecp256k1.h │ │ │ └── org_bitcoin_NativeSecp256k1.c │ │ ├── num_gmp.h │ │ ├── num_impl.h │ │ ├── scalar_8x32.h │ │ ├── scalar_4x64.h │ │ └── testrand.h │ └── COPYING ├── obj │ └── .gitignore ├── obj-test │ └── .gitignore ├── test │ ├── data │ │ ├── blanktx.hex │ │ ├── txcreate2.hex │ │ ├── alertTests.raw │ │ ├── txcreatesign.hex │ │ ├── README.md │ │ ├── txcreate1.hex │ │ └── base58_encode_decode.json │ ├── buildenv.py.in │ ├── Makefile │ ├── bitcoin-util-test.py │ ├── sanity_tests.cpp │ ├── test_bitcoin.h │ ├── base64_tests.cpp │ ├── base32_tests.cpp │ ├── timedata_tests.cpp │ └── README.md ├── qt │ ├── res │ │ ├── icons │ │ │ ├── add.png │ │ │ ├── eye.png │ │ │ ├── key.png │ │ │ ├── about.png │ │ │ ├── edit.png │ │ │ ├── info.png │ │ │ ├── open.png │ │ │ ├── print.png │ │ │ ├── quit.png │ │ │ ├── send.png │ │ │ ├── about_qt.png │ │ │ ├── bitcoin.icns │ │ │ ├── bitcoin.ico │ │ │ ├── bitcoin.png │ │ │ ├── clock1.png │ │ │ ├── clock2.png │ │ │ ├── clock3.png │ │ │ ├── clock4.png │ │ │ ├── clock5.png │ │ │ ├── connect0.png │ │ │ ├── connect1.png │ │ │ ├── connect2.png │ │ │ ├── connect3.png │ │ │ ├── connect4.png │ │ │ ├── editcopy.png │ │ │ ├── export.png │ │ │ ├── eye_plus.png │ │ │ ├── filesave.png │ │ │ ├── history.png │ │ │ ├── overview.png │ │ │ ├── receive.png │ │ │ ├── remove.png │ │ │ ├── synced.png │ │ │ ├── tx_inout.png │ │ │ ├── tx_input.png │ │ │ ├── tx_mined.png │ │ │ ├── verify.png │ │ │ ├── warning.png │ │ │ ├── configure.png │ │ │ ├── editpaste.png │ │ │ ├── eye_minus.png │ │ │ ├── lock_open.png │ │ │ ├── tx_output.png │ │ │ ├── address-book.png │ │ │ ├── debugwindow.png │ │ │ ├── lock_closed.png │ │ │ ├── paper_wallet.png │ │ │ ├── transaction0.png │ │ │ ├── transaction2.png │ │ │ ├── wallet_bgcoin.png │ │ │ └── transaction_conflicted.png │ │ ├── spinner.png │ │ ├── movies │ │ │ ├── spinner-000.png │ │ │ ├── spinner-001.png │ │ │ ├── spinner-002.png │ │ │ ├── spinner-003.png │ │ │ ├── spinner-004.png │ │ │ ├── spinner-005.png │ │ │ ├── spinner-006.png │ │ │ ├── spinner-007.png │ │ │ ├── spinner-008.png │ │ │ ├── spinner-009.png │ │ │ ├── spinner-010.png │ │ │ ├── spinner-011.png │ │ │ ├── spinner-012.png │ │ │ ├── spinner-013.png │ │ │ ├── spinner-014.png │ │ │ ├── spinner-015.png │ │ │ ├── spinner-016.png │ │ │ ├── spinner-017.png │ │ │ ├── spinner-018.png │ │ │ ├── spinner-019.png │ │ │ ├── spinner-020.png │ │ │ ├── spinner-021.png │ │ │ ├── spinner-022.png │ │ │ ├── spinner-023.png │ │ │ ├── spinner-024.png │ │ │ ├── spinner-025.png │ │ │ ├── spinner-026.png │ │ │ ├── spinner-027.png │ │ │ ├── spinner-028.png │ │ │ ├── spinner-029.png │ │ │ ├── spinner-030.png │ │ │ ├── spinner-031.png │ │ │ ├── spinner-032.png │ │ │ ├── spinner-033.png │ │ │ ├── spinner-034.png │ │ │ ├── spinner-035.png │ │ │ └── makespinner.sh │ │ ├── fonts │ │ │ ├── ComicNeue-Bold.ttf │ │ │ ├── ComicNeue-Light.ttf │ │ │ ├── ComicNeue-Regular.ttf │ │ │ ├── ComicNeue-Bold-Oblique.ttf │ │ │ ├── ComicNeue-Light-Oblique.ttf │ │ │ └── ComicNeue-Regular-Oblique.ttf │ │ └── src │ │ │ ├── tx_in.svg │ │ │ ├── tx_inout.svg │ │ │ ├── clock_2.svg │ │ │ ├── clock_1.svg │ │ │ ├── clock_3.svg │ │ │ ├── clock_0.svg │ │ │ ├── mine.svg │ │ │ ├── transaction0.svg │ │ │ └── verify.svg │ ├── test │ │ ├── Makefile │ │ ├── uritests.h │ │ ├── paymentservertests.h │ │ └── test_main.cpp │ ├── Makefile │ ├── verticallabel.h │ ├── coincontroltreewidget.h │ ├── transactiondescdialog.cpp │ ├── openuridialog.h │ ├── transactiondescdialog.h │ ├── transactiondesc.h │ ├── qvaluecombobox.cpp │ ├── verticallabel.cpp │ ├── macnotificationhandler.h │ ├── winshutdownmonitor.h │ ├── bitcoinaddressvalidator.h │ ├── qvaluecombobox.h │ ├── macdockiconhandler.h │ ├── qvalidatedlineedit.h │ ├── networkstyle.h │ ├── coincontroltreewidget.cpp │ ├── trafficgraphwidget.h │ ├── csvmodelwriter.h │ └── paymentrequestplus.h ├── leveldb │ ├── .gitignore │ ├── AUTHORS │ ├── util │ │ ├── filter_policy.cc │ │ ├── hash.h │ │ ├── options.cc │ │ ├── histogram.h │ │ └── mutexlock.h │ ├── port │ │ ├── README │ │ ├── port.h │ │ └── win │ │ │ └── stdint.h │ ├── NEWS │ ├── TODO │ ├── helpers │ │ └── memenv │ │ │ └── memenv.h │ ├── db │ │ ├── db_iter.h │ │ ├── log_format.h │ │ └── builder.h │ ├── table │ │ ├── merger.h │ │ ├── block.h │ │ └── two_level_iterator.h │ ├── include │ │ └── leveldb │ │ │ └── dumpfile.h │ └── WINDOWS.md ├── json │ ├── json_spirit_value.cpp │ ├── json_spirit.h │ └── LICENSE.txt ├── noui.h ├── compat │ ├── sanity.h │ ├── strnlen.cpp │ └── glibc_compat.cpp ├── support │ ├── cleanse.cpp │ └── cleanse.h ├── rpcclient.h ├── eccryptoverify.h ├── utiltime.h ├── utilmoneystr.h ├── primitives │ └── pureheader.cpp ├── crypto │ ├── sha1.h │ ├── sha256.h │ ├── sha512.h │ ├── ripemd160.h │ ├── hmac_sha256.h │ ├── hmac_sha512.h │ ├── hmac_sha256.cpp │ └── hmac_sha512.cpp ├── amount.cpp ├── consensus │ └── consensus.h ├── script │ └── sigcache.h ├── wallet │ └── wallet_ismine.h ├── init.h ├── dogecoin.h ├── miner.h ├── core_io.h ├── pow.h └── ecwrapper.h ├── contrib ├── debian │ ├── compat │ ├── patches │ │ ├── series │ │ └── README │ ├── source │ │ └── format │ ├── dogecoind.examples │ ├── dogecoind.bash-completion │ ├── dogecoind.install │ ├── dogecoind.manpages │ ├── gbp.conf │ ├── dogecoind.lintian-overrides │ ├── dogecoin-qt.lintian-overrides │ ├── dogecoin-qt.protocol │ ├── watch │ ├── dogecoin-qt.install │ ├── dogecoin-qt.desktop │ ├── README.md │ └── rules ├── verify-commits │ ├── trusted-git-root │ ├── trusted-keys │ ├── gpg.sh │ ├── pre-push-hook.sh │ └── verify-commits.sh ├── macdeploy │ ├── DS_Store │ ├── background.png │ ├── background.psd │ ├── background.tiff │ ├── Base.lproj │ │ └── InfoPlist.strings │ ├── background@2x.png │ ├── README.md │ └── fancy.plist ├── testgen │ └── README.md ├── test-patches │ ├── README.md │ └── temp-revert-2.patch ├── init │ ├── README.md │ ├── dogecoind.service │ └── dogecoind.openrcconf ├── spendfrom │ └── setup.py ├── bitrpc │ └── README.md ├── seeds │ └── README.md ├── qos │ └── README.md ├── qt_translations.py ├── gitian-downloader │ ├── win32-download-config │ └── linux-download-config ├── linearize │ ├── example-linearize.cfg │ └── README.md ├── bitcoin-qt.pro └── gitian-descriptors │ └── gitian-osx-signer.yml ├── qa ├── rpc-tests │ ├── .gitignore │ ├── test_framework │ │ └── __init__.py │ ├── send.sh │ └── reindex.py └── pull-tester │ ├── install-deps.sh │ ├── run-bitcoin-cli │ └── tests-config.sh.in ├── .gitattributes ├── doc ├── release-notes │ ├── bitcoin │ │ ├── release-notes-0.6.1.md │ │ ├── release-notes-0.8.3.md │ │ ├── release-notes-0.8.1.md │ │ └── release-notes-0.6.3.md │ ├── RELEASE_NOTES_1.8.2.md │ └── RELEASE_NOTES_1.8.3.md ├── bitcoin_logo_doxygen.png ├── gitian-building │ ├── create_vm_page1.png │ ├── create_vm_memsize.png │ ├── network_settings.png │ ├── create_vm_hard_drive.png │ ├── select_startup_disk.png │ ├── port_forwarding_rules.png │ ├── debian_install_14_finish.png │ ├── debian_install_1_boot_menu.png │ ├── create_vm_file_location_size.png │ ├── create_vm_hard_drive_file_type.png │ ├── debian_install_12_choose_disk.png │ ├── debian_install_20_install_grub.png │ ├── debian_install_6_domain_name.png │ ├── debian_install_9_user_password.png │ ├── debian_install_15_write_changes.png │ ├── debian_install_18_proxy_settings.png │ ├── debian_install_3_select_location.png │ ├── debian_install_8_set_up_username.png │ ├── debian_install_10_configure_clock.png │ ├── debian_install_11_partition_disks.png │ ├── debian_install_13_partition_scheme.png │ ├── debian_install_16_choose_a_mirror.png │ ├── debian_install_17_choose_a_mirror2.png │ ├── debian_install_2_select_a_language.png │ ├── debian_install_4_configure_keyboard.png │ ├── create_vm_storage_physical_hard_drive.png │ ├── debian_install_19_software_selection.png │ ├── debian_install_21_finish_installation.png │ ├── debian_install_7_set_up_user_fullname.png │ ├── debian_install_5_configure_the_network.png │ └── debian_install_6a_set_up_root_password.png ├── unit-tests.md ├── README_windows.txt └── files.md ├── share ├── pixmaps │ ├── check.ico │ ├── send16.bmp │ ├── send20.bmp │ ├── bitcoin.ico │ ├── favicon.ico │ ├── bitcoin-bc.ico │ ├── bitcoin128.png │ ├── bitcoin16.png │ ├── bitcoin256.png │ ├── bitcoin32.png │ ├── bitcoin64.png │ ├── nsis-header.bmp │ ├── nsis-wizard.bmp │ ├── send16mask.bmp │ ├── send20mask.bmp │ ├── addressbook16.bmp │ ├── addressbook20.bmp │ ├── addressbook16mask.bmp │ ├── addressbook20mask.bmp │ └── send16masknoshadow.bmp ├── qt │ ├── img │ │ ├── reload.png │ │ └── reload.xcf │ ├── make_windows_icon.sh │ └── make_spinner.py ├── seeds │ └── nodes_test.txt └── ui.rc ├── depends ├── .gitignore ├── builders │ ├── linux.mk │ ├── default.mk │ └── darwin.mk ├── hosts │ ├── mingw32.mk │ ├── darwin.mk │ ├── linux.mk │ └── default.mk ├── patches │ ├── qt46 │ │ └── stlfix.patch │ └── qt │ │ ├── qt5-tablet-osx.patch │ │ └── mac-qmake.conf └── packages │ ├── packages.mk │ ├── xproto.mk │ ├── xextproto.mk │ ├── expat.mk │ ├── xtrans.mk │ ├── native_ccache.mk │ ├── qrencode.mk │ ├── libXext.mk │ ├── fontconfig.mk │ ├── freetype.mk │ ├── libXau.mk │ ├── native_libdmg-hfsplus.mk │ ├── native_protobuf.mk │ ├── libX11.mk │ ├── libICE.mk │ ├── libSM.mk │ ├── xcb_proto.mk │ ├── native_cdrkit.mk │ ├── native_comparisontool.mk │ ├── dbus.mk │ ├── protobuf.mk │ ├── bdb.mk │ ├── libxcb.mk │ └── miniupnpc.mk ├── INSTALL ├── .tx └── config ├── autogen.sh ├── libbitcoinconsensus.pc.in └── COPYING /src/config/.empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /contrib/debian/compat: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /src/secp256k1/obj/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /contrib/debian/patches/series: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /qa/rpc-tests/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | cache 3 | -------------------------------------------------------------------------------- /qa/rpc-tests/test_framework/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/obj/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /contrib/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /src/obj-test/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | src/clientversion.cpp export-subst 2 | -------------------------------------------------------------------------------- /src/test/data/blanktx.hex: -------------------------------------------------------------------------------- 1 | 01000000000000000000 2 | -------------------------------------------------------------------------------- /contrib/verify-commits/trusted-git-root: -------------------------------------------------------------------------------- 1 | 0000000000000000 2 | -------------------------------------------------------------------------------- /contrib/debian/dogecoind.examples: -------------------------------------------------------------------------------- 1 | debian/examples/dogecoin.conf 2 | -------------------------------------------------------------------------------- /src/test/buildenv.py.in: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | exeext="@EXEEXT@" 3 | -------------------------------------------------------------------------------- /doc/release-notes/bitcoin/release-notes-0.6.1.md: -------------------------------------------------------------------------------- 1 | Never released 2 | 3 | -------------------------------------------------------------------------------- /src/test/data/txcreate2.hex: -------------------------------------------------------------------------------- 1 | 01000000000100000000000000000000000000 2 | -------------------------------------------------------------------------------- /src/secp256k1/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | autoreconf -if --warnings=all 4 | -------------------------------------------------------------------------------- /contrib/debian/dogecoind.bash-completion: -------------------------------------------------------------------------------- 1 | contrib/dogecoind.bash-completion dogecoind 2 | -------------------------------------------------------------------------------- /share/pixmaps/check.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/check.ico -------------------------------------------------------------------------------- /share/pixmaps/send16.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/send16.bmp -------------------------------------------------------------------------------- /share/pixmaps/send20.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/send20.bmp -------------------------------------------------------------------------------- /share/qt/img/reload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/qt/img/reload.png -------------------------------------------------------------------------------- /share/qt/img/reload.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/qt/img/reload.xcf -------------------------------------------------------------------------------- /src/qt/res/icons/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/add.png -------------------------------------------------------------------------------- /src/qt/res/icons/eye.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/eye.png -------------------------------------------------------------------------------- /src/qt/res/icons/key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/key.png -------------------------------------------------------------------------------- /src/qt/res/spinner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/spinner.png -------------------------------------------------------------------------------- /contrib/debian/dogecoind.install: -------------------------------------------------------------------------------- 1 | usr/local/bin/dogecoind usr/bin 2 | usr/local/bin/dogecoin-cli usr/bin 3 | -------------------------------------------------------------------------------- /contrib/macdeploy/DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/contrib/macdeploy/DS_Store -------------------------------------------------------------------------------- /share/pixmaps/bitcoin.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/bitcoin.ico -------------------------------------------------------------------------------- /share/pixmaps/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/favicon.ico -------------------------------------------------------------------------------- /src/qt/res/icons/about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/about.png -------------------------------------------------------------------------------- /src/qt/res/icons/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/edit.png -------------------------------------------------------------------------------- /src/qt/res/icons/info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/info.png -------------------------------------------------------------------------------- /src/qt/res/icons/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/open.png -------------------------------------------------------------------------------- /src/qt/res/icons/print.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/print.png -------------------------------------------------------------------------------- /src/qt/res/icons/quit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/quit.png -------------------------------------------------------------------------------- /src/qt/res/icons/send.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/send.png -------------------------------------------------------------------------------- /doc/bitcoin_logo_doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/bitcoin_logo_doxygen.png -------------------------------------------------------------------------------- /share/pixmaps/bitcoin-bc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/bitcoin-bc.ico -------------------------------------------------------------------------------- /share/pixmaps/bitcoin128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/bitcoin128.png -------------------------------------------------------------------------------- /share/pixmaps/bitcoin16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/bitcoin16.png -------------------------------------------------------------------------------- /share/pixmaps/bitcoin256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/bitcoin256.png -------------------------------------------------------------------------------- /share/pixmaps/bitcoin32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/bitcoin32.png -------------------------------------------------------------------------------- /share/pixmaps/bitcoin64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/bitcoin64.png -------------------------------------------------------------------------------- /share/pixmaps/nsis-header.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/nsis-header.bmp -------------------------------------------------------------------------------- /share/pixmaps/nsis-wizard.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/nsis-wizard.bmp -------------------------------------------------------------------------------- /share/pixmaps/send16mask.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/send16mask.bmp -------------------------------------------------------------------------------- /share/pixmaps/send20mask.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/send20mask.bmp -------------------------------------------------------------------------------- /src/qt/res/icons/about_qt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/about_qt.png -------------------------------------------------------------------------------- /src/qt/res/icons/bitcoin.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/bitcoin.icns -------------------------------------------------------------------------------- /src/qt/res/icons/bitcoin.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/bitcoin.ico -------------------------------------------------------------------------------- /src/qt/res/icons/bitcoin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/bitcoin.png -------------------------------------------------------------------------------- /src/qt/res/icons/clock1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/clock1.png -------------------------------------------------------------------------------- /src/qt/res/icons/clock2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/clock2.png -------------------------------------------------------------------------------- /src/qt/res/icons/clock3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/clock3.png -------------------------------------------------------------------------------- /src/qt/res/icons/clock4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/clock4.png -------------------------------------------------------------------------------- /src/qt/res/icons/clock5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/clock5.png -------------------------------------------------------------------------------- /src/qt/res/icons/connect0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/connect0.png -------------------------------------------------------------------------------- /src/qt/res/icons/connect1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/connect1.png -------------------------------------------------------------------------------- /src/qt/res/icons/connect2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/connect2.png -------------------------------------------------------------------------------- /src/qt/res/icons/connect3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/connect3.png -------------------------------------------------------------------------------- /src/qt/res/icons/connect4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/connect4.png -------------------------------------------------------------------------------- /src/qt/res/icons/editcopy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/editcopy.png -------------------------------------------------------------------------------- /src/qt/res/icons/export.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/export.png -------------------------------------------------------------------------------- /src/qt/res/icons/eye_plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/eye_plus.png -------------------------------------------------------------------------------- /src/qt/res/icons/filesave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/filesave.png -------------------------------------------------------------------------------- /src/qt/res/icons/history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/history.png -------------------------------------------------------------------------------- /src/qt/res/icons/overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/overview.png -------------------------------------------------------------------------------- /src/qt/res/icons/receive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/receive.png -------------------------------------------------------------------------------- /src/qt/res/icons/remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/remove.png -------------------------------------------------------------------------------- /src/qt/res/icons/synced.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/synced.png -------------------------------------------------------------------------------- /src/qt/res/icons/tx_inout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/tx_inout.png -------------------------------------------------------------------------------- /src/qt/res/icons/tx_input.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/tx_input.png -------------------------------------------------------------------------------- /src/qt/res/icons/tx_mined.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/tx_mined.png -------------------------------------------------------------------------------- /src/qt/res/icons/verify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/verify.png -------------------------------------------------------------------------------- /src/qt/res/icons/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/warning.png -------------------------------------------------------------------------------- /src/test/data/alertTests.raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/test/data/alertTests.raw -------------------------------------------------------------------------------- /share/pixmaps/addressbook16.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/addressbook16.bmp -------------------------------------------------------------------------------- /share/pixmaps/addressbook20.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/addressbook20.bmp -------------------------------------------------------------------------------- /src/qt/res/icons/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/configure.png -------------------------------------------------------------------------------- /src/qt/res/icons/editpaste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/editpaste.png -------------------------------------------------------------------------------- /src/qt/res/icons/eye_minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/eye_minus.png -------------------------------------------------------------------------------- /src/qt/res/icons/lock_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/lock_open.png -------------------------------------------------------------------------------- /src/qt/res/icons/tx_output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/tx_output.png -------------------------------------------------------------------------------- /contrib/macdeploy/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/contrib/macdeploy/background.png -------------------------------------------------------------------------------- /contrib/macdeploy/background.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/contrib/macdeploy/background.psd -------------------------------------------------------------------------------- /contrib/macdeploy/background.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/contrib/macdeploy/background.tiff -------------------------------------------------------------------------------- /src/qt/res/icons/address-book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/address-book.png -------------------------------------------------------------------------------- /src/qt/res/icons/debugwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/debugwindow.png -------------------------------------------------------------------------------- /src/qt/res/icons/lock_closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/lock_closed.png -------------------------------------------------------------------------------- /src/qt/res/icons/paper_wallet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/paper_wallet.png -------------------------------------------------------------------------------- /src/qt/res/icons/transaction0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/transaction0.png -------------------------------------------------------------------------------- /src/qt/res/icons/transaction2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/transaction2.png -------------------------------------------------------------------------------- /src/qt/res/icons/wallet_bgcoin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/wallet_bgcoin.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-000.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-000.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-001.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-002.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-003.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-004.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-005.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-005.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-006.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-006.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-007.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-007.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-008.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-008.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-009.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-009.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-010.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-010.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-011.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-011.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-012.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-012.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-013.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-013.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-014.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-014.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-015.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-015.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-016.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-016.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-017.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-017.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-018.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-018.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-019.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-019.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-020.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-020.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-021.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-021.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-022.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-022.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-023.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-023.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-024.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-025.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-025.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-026.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-026.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-027.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-027.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-028.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-028.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-029.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-029.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-030.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-030.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-031.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-031.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-032.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-032.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-033.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-033.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-034.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-034.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-035.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/movies/spinner-035.png -------------------------------------------------------------------------------- /contrib/macdeploy/Base.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | { CFBundleDisplayName = "Dogecoin Core"; CFBundleName = "Dogecoin Core"; } 2 | -------------------------------------------------------------------------------- /contrib/macdeploy/background@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/contrib/macdeploy/background@2x.png -------------------------------------------------------------------------------- /share/pixmaps/addressbook16mask.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/addressbook16mask.bmp -------------------------------------------------------------------------------- /share/pixmaps/addressbook20mask.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/addressbook20mask.bmp -------------------------------------------------------------------------------- /share/pixmaps/send16masknoshadow.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/share/pixmaps/send16masknoshadow.bmp -------------------------------------------------------------------------------- /src/qt/res/fonts/ComicNeue-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/fonts/ComicNeue-Bold.ttf -------------------------------------------------------------------------------- /src/qt/res/fonts/ComicNeue-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/fonts/ComicNeue-Light.ttf -------------------------------------------------------------------------------- /depends/.gitignore: -------------------------------------------------------------------------------- 1 | SDKs/ 2 | work/ 3 | built/ 4 | sources/ 5 | config.site 6 | x86_64* 7 | i686* 8 | mips* 9 | arm* 10 | -------------------------------------------------------------------------------- /doc/gitian-building/create_vm_page1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/create_vm_page1.png -------------------------------------------------------------------------------- /src/qt/res/fonts/ComicNeue-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/fonts/ComicNeue-Regular.ttf -------------------------------------------------------------------------------- /contrib/debian/dogecoind.manpages: -------------------------------------------------------------------------------- 1 | debian/manpages/dogecoind.1 2 | debian/manpages/dogecoin.conf.5 3 | debian/manpages/dogecoin-cli.1 4 | -------------------------------------------------------------------------------- /doc/gitian-building/create_vm_memsize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/create_vm_memsize.png -------------------------------------------------------------------------------- /doc/gitian-building/network_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/network_settings.png -------------------------------------------------------------------------------- /doc/gitian-building/create_vm_hard_drive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/create_vm_hard_drive.png -------------------------------------------------------------------------------- /doc/gitian-building/select_startup_disk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/select_startup_disk.png -------------------------------------------------------------------------------- /src/qt/res/fonts/ComicNeue-Bold-Oblique.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/fonts/ComicNeue-Bold-Oblique.ttf -------------------------------------------------------------------------------- /src/qt/res/fonts/ComicNeue-Light-Oblique.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/fonts/ComicNeue-Light-Oblique.ttf -------------------------------------------------------------------------------- /src/qt/res/icons/transaction_conflicted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/icons/transaction_conflicted.png -------------------------------------------------------------------------------- /contrib/debian/gbp.conf: -------------------------------------------------------------------------------- 1 | # Configuration file for git-buildpackage and friends 2 | 3 | [DEFAULT] 4 | pristine-tar = True 5 | sign-tags = True 6 | -------------------------------------------------------------------------------- /doc/gitian-building/port_forwarding_rules.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/port_forwarding_rules.png -------------------------------------------------------------------------------- /share/seeds/nodes_test.txt: -------------------------------------------------------------------------------- 1 | # List of fixed seed nodes for testnet 2 | 3 | # Onion nodes 4 | thfsmmn2jbitcoin.onion 5 | it2pj4f7657g3rhi.onion 6 | -------------------------------------------------------------------------------- /src/qt/res/fonts/ComicNeue-Regular-Oblique.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/src/qt/res/fonts/ComicNeue-Regular-Oblique.ttf -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_14_finish.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_14_finish.png -------------------------------------------------------------------------------- /contrib/debian/dogecoind.lintian-overrides: -------------------------------------------------------------------------------- 1 | # Linked code is Expat - only Debian packaging is GPL-2+ 2 | dogecoind: possible-gpl-code-linked-with-openssl 3 | -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_1_boot_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_1_boot_menu.png -------------------------------------------------------------------------------- /src/test/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | $(MAKE) -C .. bitcoin_test 3 | clean: 4 | $(MAKE) -C .. bitcoin_test_clean 5 | check: 6 | $(MAKE) -C .. bitcoin_test_check 7 | -------------------------------------------------------------------------------- /contrib/debian/dogecoin-qt.lintian-overrides: -------------------------------------------------------------------------------- 1 | # Linked code is Expat - only Debian packaging is GPL-2+ 2 | dogecoin-qt: possible-gpl-code-linked-with-openssl 3 | -------------------------------------------------------------------------------- /doc/gitian-building/create_vm_file_location_size.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/create_vm_file_location_size.png -------------------------------------------------------------------------------- /doc/gitian-building/create_vm_hard_drive_file_type.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/create_vm_hard_drive_file_type.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_12_choose_disk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_12_choose_disk.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_20_install_grub.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_20_install_grub.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_6_domain_name.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_6_domain_name.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_9_user_password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_9_user_password.png -------------------------------------------------------------------------------- /depends/builders/linux.mk: -------------------------------------------------------------------------------- 1 | build_linux_SHA256SUM = sha256sum 2 | build_linux_DOWNLOAD = wget --timeout=$(DOWNLOAD_CONNECT_TIMEOUT) --tries=$(DOWNLOAD_RETRIES) -nv -O 3 | -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_15_write_changes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_15_write_changes.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_18_proxy_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_18_proxy_settings.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_3_select_location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_3_select_location.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_8_set_up_username.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_8_set_up_username.png -------------------------------------------------------------------------------- /contrib/verify-commits/trusted-keys: -------------------------------------------------------------------------------- 1 | 1DDC450B45DB5ADCCF5DDA7F8E4217C6D47D946D 2 | 90DC2AC256201AD9377E15049142E5F7E533CE3B 3 | 6E9C3630F63C1541054C9503B1C60A65E5E64D7B 4 | -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_10_configure_clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_10_configure_clock.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_11_partition_disks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_11_partition_disks.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_13_partition_scheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_13_partition_scheme.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_16_choose_a_mirror.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_16_choose_a_mirror.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_17_choose_a_mirror2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_17_choose_a_mirror2.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_2_select_a_language.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_2_select_a_language.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_4_configure_keyboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_4_configure_keyboard.png -------------------------------------------------------------------------------- /contrib/debian/patches/README: -------------------------------------------------------------------------------- 1 | 0xxx: Grabbed from upstream development. 2 | 1xxx: Possibly relevant for upstream adoption. 3 | 2xxx: Only relevant for official Debian release. 4 | -------------------------------------------------------------------------------- /doc/gitian-building/create_vm_storage_physical_hard_drive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/create_vm_storage_physical_hard_drive.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_19_software_selection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_19_software_selection.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_21_finish_installation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_21_finish_installation.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_7_set_up_user_fullname.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_7_set_up_user_fullname.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_5_configure_the_network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_5_configure_the_network.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_6a_set_up_root_password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donpdonp/dogecoin/master/doc/gitian-building/debian_install_6a_set_up_root_password.png -------------------------------------------------------------------------------- /src/qt/test/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | $(MAKE) -C ../../ test_bitcoin_qt 3 | clean: 4 | $(MAKE) -C ../../ test_bitcoin_qt_clean 5 | check: 6 | $(MAKE) -C ../../ test_bitcoin_qt_check 7 | -------------------------------------------------------------------------------- /INSTALL: -------------------------------------------------------------------------------- 1 | Building Bitcoin 2 | 3 | See doc/build-*.md for instructions on building bitcoind, 4 | the intended-for-services, no-graphical-interface, reference 5 | implementation of Bitcoin. -------------------------------------------------------------------------------- /src/secp256k1/TODO: -------------------------------------------------------------------------------- 1 | * Unit tests for fieldelem/groupelem, including ones intended to 2 | trigger fieldelem's boundary cases. 3 | * Complete constant-time operations for signing/keygen 4 | -------------------------------------------------------------------------------- /src/leveldb/.gitignore: -------------------------------------------------------------------------------- 1 | build_config.mk 2 | *.a 3 | *.o 4 | *.dylib* 5 | *.so 6 | *.so.* 7 | *_test 8 | db_bench 9 | leveldbutil 10 | Release 11 | Debug 12 | Benchmark 13 | vs2010.* 14 | -------------------------------------------------------------------------------- /src/test/data/txcreatesign.hex: -------------------------------------------------------------------------------- 1 | 01000000018594c5bdcaec8f06b78b596f31cd292a294fd031e24eec716f43dac91ea7494d0000000000ffffffff01a0860100000000001976a9145834479edbbe0539b31ffd3a8f8ebadc2165ed0188ac00000000 2 | -------------------------------------------------------------------------------- /.tx/config: -------------------------------------------------------------------------------- 1 | [main] 2 | host = https://www.transifex.com 3 | 4 | [bitcoin.qt-translation-011x] 5 | file_filter = src/qt/locale/bitcoin_.ts 6 | source_file = src/qt/locale/bitcoin_en.ts 7 | source_lang = en 8 | -------------------------------------------------------------------------------- /src/qt/res/movies/makespinner.sh: -------------------------------------------------------------------------------- 1 | for i in {1..35} 2 | do 3 | value=$(printf "%03d" $i) 4 | angle=$(($i * 10)) 5 | convert spinner-000.png -background "rgba(0,0,0,0.0)" -distort SRT $angle spinner-$value.png 6 | done 7 | -------------------------------------------------------------------------------- /contrib/debian/dogecoin-qt.protocol: -------------------------------------------------------------------------------- 1 | [Protocol] 2 | exec=dogecoin-qt '%u' 3 | protocol=dogecoin 4 | input=none 5 | output=none 6 | helper=true 7 | listing= 8 | reading=false 9 | writing=false 10 | makedir=false 11 | deleting=false 12 | -------------------------------------------------------------------------------- /src/json/json_spirit_value.cpp: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2007 John W Wilkinson 2 | 3 | This source code can be used for any purpose as long as 4 | this comment is retained. */ 5 | 6 | // json spirit version 2.00 7 | 8 | #include "json_spirit_value.h" 9 | -------------------------------------------------------------------------------- /autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | srcdir="$(dirname $0)" 4 | cd "$srcdir" 5 | if [ -z ${LIBTOOLIZE} ] && GLIBTOOLIZE="`which glibtoolize 2>/dev/null`"; then 6 | LIBTOOLIZE="${GLIBTOOLIZE}" 7 | export LIBTOOLIZE 8 | fi 9 | autoreconf --install --force --warnings=all 10 | -------------------------------------------------------------------------------- /src/qt/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: FORCE 2 | all: FORCE 3 | $(MAKE) -C .. bitcoin_qt test_bitcoin_qt 4 | clean: FORCE 5 | $(MAKE) -C .. bitcoin_qt_clean test_bitcoin_qt_clean 6 | check: FORCE 7 | $(MAKE) -C .. test_bitcoin_qt_check 8 | bitcoin-qt bitcoin-qt.exe: FORCE 9 | $(MAKE) -C .. bitcoin_qt 10 | -------------------------------------------------------------------------------- /contrib/debian/watch: -------------------------------------------------------------------------------- 1 | # Run the "uscan" command to check for upstream updates and more. 2 | version=3 3 | # use qa.debian.org redirector; see man uscan 4 | opts=uversionmangle=s/(\d)(alpha|beta|rc)/$1~$2/,dversionmangle=s/~dfsg\d*// \ 5 | http://githubredir.debian.net/github/dogecoin/dogecoin v(.*).tar.gz 6 | -------------------------------------------------------------------------------- /contrib/testgen/README.md: -------------------------------------------------------------------------------- 1 | ### TestGen ### 2 | 3 | Utilities to generate test vectors for the data-driven Bitcoin tests. 4 | 5 | Usage: 6 | 7 | gen_base58_test_vectors.py valid 50 > ../../src/test/data/base58_keys_valid.json 8 | gen_base58_test_vectors.py invalid 50 > ../../src/test/data/base58_keys_invalid.json -------------------------------------------------------------------------------- /contrib/debian/dogecoin-qt.install: -------------------------------------------------------------------------------- 1 | usr/local/bin/dogecoin-qt usr/bin 2 | share/pixmaps/bitcoin32.xpm usr/share/pixmaps 3 | share/pixmaps/bitcoin16.xpm usr/share/pixmaps 4 | share/pixmaps/bitcoin128.png usr/share/pixmaps 5 | debian/dogecoin-qt.desktop usr/share/applications 6 | debian/dogecoin-qt.protocol usr/share/kde4/services/ 7 | -------------------------------------------------------------------------------- /contrib/test-patches/README.md: -------------------------------------------------------------------------------- 1 | ### Test Patches ### 2 | 3 | These patches are applied when the automated pull-tester 4 | tests each pull and when master is tested using jenkins. 5 | You can find more information about the tests run at 6 | [http://jenkins.bluematt.me/pull-tester/files/ 7 | ](http://jenkins.bluematt.me/pull-tester/files/) -------------------------------------------------------------------------------- /depends/hosts/mingw32.mk: -------------------------------------------------------------------------------- 1 | mingw32_CFLAGS=-pipe 2 | mingw32_CXXFLAGS=$(mingw32_CFLAGS) 3 | 4 | mingw32_release_CFLAGS=-O2 5 | mingw32_release_CXXFLAGS=$(mingw32_release_CFLAGS) 6 | 7 | mingw32_debug_CFLAGS=-O1 8 | mingw32_debug_CXXFLAGS=$(mingw32_debug_CFLAGS) 9 | 10 | mingw32_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC 11 | -------------------------------------------------------------------------------- /src/noui.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_NOUI_H 6 | #define BITCOIN_NOUI_H 7 | 8 | extern void noui_connect(); 9 | 10 | #endif // BITCOIN_NOUI_H 11 | -------------------------------------------------------------------------------- /contrib/init/README.md: -------------------------------------------------------------------------------- 1 | Sample configuration files for: 2 | 3 | SystemD: dogecoind.service 4 | Upstart: dogecoind.conf 5 | OpenRC: dogecoind.openrc 6 | dogecoind.openrcconf 7 | CentOS: dogecoind.init 8 | 9 | have been made available to assist packagers in creating node packages here. 10 | 11 | See doc/init.md for more information. 12 | -------------------------------------------------------------------------------- /qa/pull-tester/install-deps.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # installs test dependencies 4 | 5 | wget https://pypi.python.org/packages/source/l/ltc_scrypt/ltc_scrypt-1.0.tar.gz 6 | #echo "7d019c3c98f16eb466a272e518ffb014 ltc_scrypt-1.0.tar.gz" | md5sum -c 7 | tar zxf ltc_scrypt-1.0.tar.gz 8 | pushd ltc_scrypt-1.0 9 | python setup.py install --user 10 | popd 11 | -------------------------------------------------------------------------------- /contrib/spendfrom/setup.py: -------------------------------------------------------------------------------- 1 | from distutils.core import setup 2 | setup(name='btcspendfrom', 3 | version='1.0', 4 | description='Command-line utility for bitcoin "coin control"', 5 | author='Gavin Andresen', 6 | author_email='gavin@bitcoinfoundation.org', 7 | requires=['jsonrpc'], 8 | scripts=['spendfrom.py'], 9 | ) 10 | -------------------------------------------------------------------------------- /src/leveldb/AUTHORS: -------------------------------------------------------------------------------- 1 | # Names should be added to this file like so: 2 | # Name or Organization 3 | 4 | Google Inc. 5 | 6 | # Initial version authors: 7 | Jeffrey Dean 8 | Sanjay Ghemawat 9 | 10 | # Partial list of contributors: 11 | Kevin Regan 12 | Johan Bilien 13 | -------------------------------------------------------------------------------- /libbitcoinconsensus.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: Bitcoin Core consensus library 7 | Description: Library for the Bitcoin consensus protocol. 8 | Version: @PACKAGE_VERSION@ 9 | Libs: -L${libdir} -lbitcoinconsensus 10 | Cflags: -I${includedir} 11 | Requires.private: libcrypto 12 | -------------------------------------------------------------------------------- /src/test/data/README.md: -------------------------------------------------------------------------------- 1 | Description 2 | ------------ 3 | 4 | This directory contains data-driven tests for various aspects of Bitcoin. 5 | 6 | License 7 | -------- 8 | 9 | The data files in this directory are distributed under the MIT software 10 | license, see the accompanying file COPYING or 11 | http://www.opensource.org/licenses/mit-license.php. 12 | 13 | -------------------------------------------------------------------------------- /contrib/bitrpc/README.md: -------------------------------------------------------------------------------- 1 | ### BitRPC 2 | Allows for sending of all standard Bitcoin commands via RPC rather than as command line args. 3 | 4 | ### Looking for Wallet Tools? 5 | BitRPC.py is able to do the exact same thing as `walletchangepass.py` and `walletunlock.py`. Their respective commands in BitRPC.py are: 6 | 7 | bitrpc.py walletpassphrasechange 8 | bitrpc.py walletpassphrase -------------------------------------------------------------------------------- /contrib/seeds/README.md: -------------------------------------------------------------------------------- 1 | ### Seeds ### 2 | 3 | Utility to generate the seeds.txt list that is compiled into the client 4 | (see [src/chainparamsseeds.h](/src/chainparamsseeds.h) and [share/seeds](/share/seeds)). 5 | 6 | The 512 seeds compiled into the 0.10 release were created from sipa's DNS seed data, like this: 7 | 8 | curl -s http://bitcoin.sipa.be/seeds.txt | makeseeds.py 9 | -------------------------------------------------------------------------------- /src/leveldb/util/filter_policy.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #include "leveldb/filter_policy.h" 6 | 7 | namespace leveldb { 8 | 9 | FilterPolicy::~FilterPolicy() { } 10 | 11 | } // namespace leveldb 12 | -------------------------------------------------------------------------------- /src/secp256k1/libsecp256k1.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libsecp256k1 7 | Description: Optimized C library for EC operations on curve secp256k1 8 | URL: https://github.com/bitcoin/secp256k1 9 | Version: @PACKAGE_VERSION@ 10 | Cflags: -I${includedir} 11 | Libs.private: @SECP_LIBS@ 12 | Libs: -L${libdir} -lsecp256k1 13 | 14 | -------------------------------------------------------------------------------- /share/qt/make_windows_icon.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # create multiresolution windows icon 3 | ICON_SRC=../../src/qt/res/icons/bitcoin.png 4 | ICON_DST=../../src/qt/res/icons/bitcoin.ico 5 | convert ${ICON_SRC} -resize 16x16 bitcoin-16.png 6 | convert ${ICON_SRC} -resize 32x32 bitcoin-32.png 7 | convert ${ICON_SRC} -resize 48x48 bitcoin-48.png 8 | convert bitcoin-16.png bitcoin-32.png bitcoin-48.png ${ICON_DST} 9 | 10 | -------------------------------------------------------------------------------- /src/compat/sanity.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_COMPAT_SANITY_H 6 | #define BITCOIN_COMPAT_SANITY_H 7 | 8 | bool glibc_sanity_test(); 9 | bool glibcxx_sanity_test(); 10 | 11 | #endif // BITCOIN_COMPAT_SANITY_H 12 | -------------------------------------------------------------------------------- /src/test/data/txcreate1.hex: -------------------------------------------------------------------------------- 1 | 01000000031f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff7cca453133921c50d5025878f7f738d1df891fd359763331935784cf6b9c82bf1200000000fffffffffccd319e04a996c96cfc0bf4c07539aa90bd0b1a700ef72fae535d6504f9a6220100000000ffffffff0280a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac0084d717000000001976a914f2d4db28cad6502226ee484ae24505c2885cb12d88ac00000000 2 | -------------------------------------------------------------------------------- /contrib/debian/dogecoin-qt.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Encoding=UTF-8 3 | Name=Dogecoin 4 | Comment=Dogecoin P2P Cryptocurrency 5 | Comment[fr]=Dogecoin, monnaie virtuelle cryptographique pair à pair 6 | Comment[tr]=Dogecoin, eşten eşe kriptografik sanal para birimi 7 | Exec=dogecoin-qt %u 8 | Terminal=false 9 | Type=Application 10 | Icon=dogecoin128 11 | MimeType=x-scheme-handler/dogecoin; 12 | Categories=Office;Finance; 13 | -------------------------------------------------------------------------------- /src/test/bitcoin-util-test.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | # Copyright 2014 BitPay, Inc. 3 | # Distributed under the MIT software license, see the accompanying 4 | # file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | import os 7 | import bctest 8 | import buildenv 9 | 10 | if __name__ == '__main__': 11 | bctest.bctester(os.environ["srcdir"] + "/test/data", 12 | "bitcoin-util-test.json",buildenv) 13 | 14 | -------------------------------------------------------------------------------- /depends/patches/qt46/stlfix.patch: -------------------------------------------------------------------------------- 1 | --- old/config.tests/unix/stl/stltest.cpp 2011-06-23 03:45:23.000000000 -0400 2 | +++ new/config.tests/unix/stl/stltest.cpp 2014-08-28 00:54:04.154837604 -0400 3 | @@ -49,6 +49,7 @@ 4 | #include 5 | #include 6 | #include 7 | +#include 8 | 9 | // something mean to see if the compiler and C++ standard lib are good enough 10 | template 11 | -------------------------------------------------------------------------------- /src/support/cleanse.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2015 The Bitcoin Core developers 3 | // Distributed under the MIT software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | #include "cleanse.h" 7 | 8 | #include 9 | 10 | void memory_cleanse(void *ptr, size_t len) 11 | { 12 | OPENSSL_cleanse(ptr, len); 13 | } 14 | -------------------------------------------------------------------------------- /src/leveldb/port/README: -------------------------------------------------------------------------------- 1 | This directory contains interfaces and implementations that isolate the 2 | rest of the package from platform details. 3 | 4 | Code in the rest of the package includes "port.h" from this directory. 5 | "port.h" in turn includes a platform specific "port_.h" file 6 | that provides the platform specific implementation. 7 | 8 | See port_posix.h for an example of what must be provided in a platform 9 | specific header file. 10 | 11 | -------------------------------------------------------------------------------- /contrib/qos/README.md: -------------------------------------------------------------------------------- 1 | ### Qos ### 2 | 3 | This is a Linux bash script that will set up tc to limit the outgoing bandwidth for connections to the Dogecoin network. It limits outbound TCP traffic with a source or destination port of 22556, but not if the destination IP is within a LAN (defined as 192.168.x.x). 4 | 5 | This means one can have an always-on dogecoind instance running, and another local dogecoind/dogecoin-qt instance which connects to this node and receives blocks from it. 6 | -------------------------------------------------------------------------------- /src/support/cleanse.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2015 The Bitcoin Core developers 3 | // Distributed under the MIT software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | #ifndef BITCOIN_SUPPORT_CLEANSE_H 7 | #define BITCOIN_SUPPORT_CLEANSE_H 8 | 9 | #include 10 | 11 | void memory_cleanse(void *ptr, size_t len); 12 | 13 | #endif // BITCOIN_SUPPORT_CLEANSE_H 14 | -------------------------------------------------------------------------------- /contrib/verify-commits/gpg.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | INPUT=$(/dev/null); do 6 | case "$LINE" in "[GNUPG:] VALIDSIG"*) 7 | while read KEY; do 8 | case "$LINE" in "[GNUPG:] VALIDSIG $KEY "*) VALID=true;; esac 9 | done < ./contrib/verify-commits/trusted-keys 10 | esac 11 | done 12 | if ! $VALID; then 13 | exit 1 14 | fi 15 | echo "$INPUT" | gpg --trust-model always "$@" 2>/dev/null 16 | -------------------------------------------------------------------------------- /src/json/json_spirit.h: -------------------------------------------------------------------------------- 1 | #ifndef JSON_SPIRIT 2 | #define JSON_SPIRIT 3 | 4 | // Copyright John W. Wilkinson 2007 - 2009. 5 | // Distributed under the MIT License, see accompanying file LICENSE.txt 6 | 7 | // json spirit version 4.03 8 | 9 | #if defined(_MSC_VER) && (_MSC_VER >= 1020) 10 | # pragma once 11 | #endif 12 | 13 | #include "json_spirit_value.h" 14 | #include "json_spirit_reader.h" 15 | #include "json_spirit_writer.h" 16 | #include "json_spirit_utils.h" 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /src/qt/verticallabel.h: -------------------------------------------------------------------------------- 1 | #ifndef VERTICALLABEL_H 2 | #define VERTICALLABEL_H 3 | 4 | #include 5 | 6 | class VerticalLabel : public QLabel 7 | { 8 | Q_OBJECT 9 | 10 | public: 11 | explicit VerticalLabel(QWidget *parent = 0); 12 | explicit VerticalLabel(const QString& text, QWidget *parent = 0); 13 | ~VerticalLabel(); 14 | 15 | protected: 16 | void paintEvent(QPaintEvent*); 17 | QSize sizeHint() const; 18 | QSize minimumSizeHint() const; 19 | }; 20 | 21 | #endif // VERTICALLABEL_H 22 | -------------------------------------------------------------------------------- /qa/pull-tester/run-bitcoin-cli: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # This is a thin wrapper around bitcoin-cli that strips the Windows-style EOLs 4 | # from the output if present. It is necessary when using bitcoin-cli.exe on 5 | # Linux since shells will interpret the line-endings as part of the result. 6 | 7 | CURDIR=$(cd $(dirname "$0"); pwd) 8 | # Get BUILDDIR and REAL_BITCOIND 9 | 10 | # Grab the value of $REAL_BITCOINCLI which may be bitcoin-cli.exe. 11 | . "${CURDIR}/tests-config.sh" 12 | 13 | "${REAL_BITCOINCLI}" "$@" | sed 's/\r//' 14 | -------------------------------------------------------------------------------- /src/qt/test/uritests.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_QT_TEST_URITESTS_H 6 | #define BITCOIN_QT_TEST_URITESTS_H 7 | 8 | #include 9 | #include 10 | 11 | class URITests : public QObject 12 | { 13 | Q_OBJECT 14 | 15 | private slots: 16 | void uriTests(); 17 | }; 18 | 19 | #endif // BITCOIN_QT_TEST_URITESTS_H 20 | -------------------------------------------------------------------------------- /src/test/data/base58_encode_decode.json: -------------------------------------------------------------------------------- 1 | [ 2 | ["", ""], 3 | ["61", "2g"], 4 | ["626262", "a3gV"], 5 | ["636363", "aPEr"], 6 | ["73696d706c792061206c6f6e6720737472696e67", "2cFupjhnEsSn59qHXstmK2ffpLv2"], 7 | ["00eb15231dfceb60925886b67d065299925915aeb172c06647", "1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L"], 8 | ["516b6fcd0f", "ABnLTmg"], 9 | ["bf4f89001e670274dd", "3SEo3LWLoPntC"], 10 | ["572e4794", "3EFU7m"], 11 | ["ecac89cad93923c02321", "EJDM8drfXA6uyA"], 12 | ["10c8511e", "Rt5zm"], 13 | ["00000000000000000000", "1111111111"] 14 | ] 15 | -------------------------------------------------------------------------------- /contrib/verify-commits/pre-push-hook.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if ! [[ "$2" =~ [git@]?[www.]?github.com[:|/]dogecoin/dogecoin[.git]? ]]; then 3 | exit 0 4 | fi 5 | 6 | while read LINE; do 7 | set -- A $LINE 8 | if [ "$4" != "refs/heads/master" ]; then 9 | continue 10 | fi 11 | if ! ./contrib/verify-commits/verify-commits.sh $3 > /dev/null 2>&1; then 12 | echo "ERROR: A commit is not signed, can't push" 13 | ./contrib/verify-commits/verify-commits.sh 14 | exit 1 15 | fi 16 | done < /dev/stdin 17 | -------------------------------------------------------------------------------- /depends/packages/packages.mk: -------------------------------------------------------------------------------- 1 | packages:=boost openssl 2 | native_packages := native_ccache 3 | 4 | qt_native_packages = native_protobuf 5 | qt_packages = qrencode protobuf 6 | 7 | qt_linux_packages= qt expat dbus libxcb xcb_proto libXau xproto freetype fontconfig libX11 xextproto libXext xtrans 8 | qt_darwin_packages=qt 9 | qt_mingw32_packages=qt 10 | 11 | 12 | wallet_packages=bdb 13 | 14 | upnp_packages=miniupnpc 15 | 16 | ifneq ($(build_os),darwin) 17 | darwin_native_packages=native_cctools native_cdrkit native_libdmg-hfsplus 18 | endif 19 | -------------------------------------------------------------------------------- /contrib/macdeploy/README.md: -------------------------------------------------------------------------------- 1 | ### MacDeploy ### 2 | 3 | For Snow Leopard (which uses [Python 2.6](http://www.python.org/download/releases/2.6/)), you will need the param_parser package: 4 | 5 | sudo easy_install argparse 6 | 7 | This script should not be run manually, instead, after building as usual: 8 | 9 | make deploy 10 | 11 | During the process, the disk image window will pop up briefly where the fancy 12 | settings are applied. This is normal, please do not interfere. 13 | 14 | When finished, it will produce `Bitcoin-Core.dmg`. 15 | 16 | -------------------------------------------------------------------------------- /src/leveldb/NEWS: -------------------------------------------------------------------------------- 1 | Release 1.2 2011-05-16 2 | ---------------------- 3 | 4 | Fixes for larger databases (tested up to one billion 100-byte entries, 5 | i.e., ~100GB). 6 | 7 | (1) Place hard limit on number of level-0 files. This fixes errors 8 | of the form "too many open files". 9 | 10 | (2) Fixed memtable management. Before the fix, a heavy write burst 11 | could cause unbounded memory usage. 12 | 13 | A fix for a logging bug where the reader would incorrectly complain 14 | about corruption. 15 | 16 | Allow public access to WriteBatch contents so that users can easily 17 | wrap a DB. 18 | -------------------------------------------------------------------------------- /contrib/init/dogecoind.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Dogecoin's distributed currency daemon 3 | After=network.target 4 | 5 | [Service] 6 | User=dogecoin 7 | Group=dogecoin 8 | 9 | Type=forking 10 | PIDFile=/var/lib/dogecoind/dogecoind.pid 11 | ExecStart=/usr/bin/dogecoind -daemon -pid=/var/lib/dogecoind/dogecoind.pid \ 12 | -conf=/etc/dogecoin/dogecoin.conf -datadir=/var/lib/dogecoind -disablewallet 13 | 14 | Restart=always 15 | PrivateTmp=true 16 | TimeoutStopSec=60s 17 | TimeoutStartSec=2s 18 | StartLimitInterval=120s 19 | StartLimitBurst=5 20 | 21 | [Install] 22 | WantedBy=multi-user.target 23 | -------------------------------------------------------------------------------- /src/leveldb/TODO: -------------------------------------------------------------------------------- 1 | ss 2 | - Stats 3 | 4 | db 5 | - Maybe implement DB::BulkDeleteForRange(start_key, end_key) 6 | that would blow away files whose ranges are entirely contained 7 | within [start_key..end_key]? For Chrome, deletion of obsolete 8 | object stores, etc. can be done in the background anyway, so 9 | probably not that important. 10 | - There have been requests for MultiGet. 11 | 12 | After a range is completely deleted, what gets rid of the 13 | corresponding files if we do no future changes to that range. Make 14 | the conditions for triggering compactions fire in more situations? 15 | -------------------------------------------------------------------------------- /src/secp256k1/.gitignore: -------------------------------------------------------------------------------- 1 | bench_inv 2 | bench_sign 3 | bench_verify 4 | bench_recover 5 | bench_internal 6 | tests 7 | *.exe 8 | *.so 9 | *.a 10 | !.gitignore 11 | 12 | Makefile 13 | configure 14 | .libs/ 15 | Makefile.in 16 | aclocal.m4 17 | autom4te.cache/ 18 | config.log 19 | config.status 20 | *.tar.gz 21 | *.la 22 | libtool 23 | .deps/ 24 | .dirstamp 25 | build-aux/ 26 | *.lo 27 | *.o 28 | *~ 29 | src/libsecp256k1-config.h 30 | src/libsecp256k1-config.h.in 31 | m4/libtool.m4 32 | m4/ltoptions.m4 33 | m4/ltsugar.m4 34 | m4/ltversion.m4 35 | m4/lt~obsolete.m4 36 | src/stamp-h1 37 | libsecp256k1.pc 38 | -------------------------------------------------------------------------------- /src/compat/strnlen.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #if defined(HAVE_CONFIG_H) 6 | #include "config/bitcoin-config.h" 7 | #endif 8 | 9 | #include 10 | 11 | #if HAVE_DECL_STRNLEN == 0 12 | size_t strnlen( const char *start, size_t max_len) 13 | { 14 | const char *end = (const char *)memchr(start, '\0', max_len); 15 | 16 | return end ? (size_t)(end - start) : max_len; 17 | } 18 | #endif // HAVE_DECL_STRNLEN 19 | -------------------------------------------------------------------------------- /src/leveldb/util/hash.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | // 5 | // Simple hash function used for internal data structures 6 | 7 | #ifndef STORAGE_LEVELDB_UTIL_HASH_H_ 8 | #define STORAGE_LEVELDB_UTIL_HASH_H_ 9 | 10 | #include 11 | #include 12 | 13 | namespace leveldb { 14 | 15 | extern uint32_t Hash(const char* data, size_t n, uint32_t seed); 16 | 17 | } 18 | 19 | #endif // STORAGE_LEVELDB_UTIL_HASH_H_ 20 | -------------------------------------------------------------------------------- /src/rpcclient.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2014 The Bitcoin Core developers 3 | // Distributed under the MIT software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | #ifndef BITCOIN_RPCCLIENT_H 7 | #define BITCOIN_RPCCLIENT_H 8 | 9 | #include "json/json_spirit_reader_template.h" 10 | #include "json/json_spirit_utils.h" 11 | #include "json/json_spirit_writer_template.h" 12 | 13 | json_spirit::Array RPCConvertValues(const std::string& strMethod, const std::vector& strParams); 14 | 15 | #endif // BITCOIN_RPCCLIENT_H 16 | -------------------------------------------------------------------------------- /qa/pull-tester/tests-config.sh.in: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright (c) 2013-2014 The Bitcoin Core developers 3 | # Distributed under the MIT software license, see the accompanying 4 | # file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | BUILDDIR="@abs_top_builddir@" 7 | EXEEXT="@EXEEXT@" 8 | 9 | # These will turn into comments if they were disabled when configuring. 10 | @ENABLE_WALLET_TRUE@ENABLE_WALLET=1 11 | @BUILD_BITCOIN_UTILS_TRUE@ENABLE_UTILS=1 12 | @BUILD_BITCOIND_TRUE@ENABLE_BITCOIND=1 13 | 14 | REAL_BITCOIND="$BUILDDIR/src/dogecoind${EXEEXT}" 15 | REAL_BITCOINCLI="$BUILDDIR/src/dogecoin-cli${EXEEXT}" 16 | 17 | -------------------------------------------------------------------------------- /depends/packages/xproto.mk: -------------------------------------------------------------------------------- 1 | package=xproto 2 | $(package)_version=7.0.26 3 | $(package)_download_path=http://xorg.freedesktop.org/releases/individual/proto 4 | $(package)_file_name=$(package)-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=636162c1759805a5a0114a369dffdeccb8af8c859ef6e1445f26a4e6e046514f 6 | 7 | define $(package)_set_vars 8 | $(package)_config_opts=--disable-shared 9 | endef 10 | 11 | define $(package)_config_cmds 12 | $($(package)_autoconf) 13 | endef 14 | 15 | define $(package)_build_cmds 16 | $(MAKE) 17 | endef 18 | 19 | define $(package)_stage_cmds 20 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 21 | endef 22 | -------------------------------------------------------------------------------- /depends/packages/xextproto.mk: -------------------------------------------------------------------------------- 1 | package=xextproto 2 | $(package)_version=7.3.0 3 | $(package)_download_path=http://xorg.freedesktop.org/releases/individual/proto 4 | $(package)_file_name=$(package)-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=f3f4b23ac8db9c3a9e0d8edb591713f3d70ef9c3b175970dd8823dfc92aa5bb0 6 | 7 | define $(package)_set_vars 8 | $(package)_config_opts=--disable-shared 9 | endef 10 | 11 | define $(package)_config_cmds 12 | $($(package)_autoconf) 13 | endef 14 | 15 | define $(package)_build_cmds 16 | $(MAKE) 17 | endef 18 | 19 | define $(package)_stage_cmds 20 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 21 | endef 22 | -------------------------------------------------------------------------------- /src/eccryptoverify.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2014 The Bitcoin Core developers 3 | // Distributed under the MIT software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | #ifndef BITCOIN_ECCRYPTOVERIFY_H 7 | #define BITCOIN_ECCRYPTOVERIFY_H 8 | 9 | #include 10 | #include 11 | 12 | class uint256; 13 | 14 | namespace eccrypto { 15 | 16 | bool Check(const unsigned char *vch); 17 | bool CheckSignatureElement(const unsigned char *vch, int len, bool half); 18 | 19 | } // eccrypto namespace 20 | 21 | #endif // BITCOIN_ECCRYPTOVERIFY_H 22 | -------------------------------------------------------------------------------- /depends/packages/expat.mk: -------------------------------------------------------------------------------- 1 | package=expat 2 | $(package)_version=2.1.0 3 | $(package)_download_path=http://sourceforge.net/projects/expat/files/expat/$($(package)_version) 4 | $(package)_file_name=$(package)-$($(package)_version).tar.gz 5 | $(package)_sha256_hash=823705472f816df21c8f6aa026dd162b280806838bb55b3432b0fb1fcca7eb86 6 | 7 | define $(package)_set_vars 8 | $(package)_config_opts=--disable-static 9 | endef 10 | 11 | define $(package)_config_cmds 12 | $($(package)_autoconf) 13 | endef 14 | 15 | define $(package)_build_cmds 16 | $(MAKE) 17 | endef 18 | 19 | define $(package)_stage_cmds 20 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 21 | endef 22 | -------------------------------------------------------------------------------- /src/secp256k1/src/java/org_bitcoin_NativeSecp256k1.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include 3 | /* Header for class org_bitcoin_NativeSecp256k1 */ 4 | 5 | #ifndef _Included_org_bitcoin_NativeSecp256k1 6 | #define _Included_org_bitcoin_NativeSecp256k1 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | /* 11 | * Class: org_bitcoin_NativeSecp256k1 12 | * Method: secp256k1_ecdsa_verify 13 | * Signature: (Ljava/nio/ByteBuffer;)I 14 | */ 15 | JNIEXPORT jint JNICALL Java_org_bitcoin_NativeSecp256k1_secp256k1_1ecdsa_1verify 16 | (JNIEnv *, jclass, jobject); 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | #endif 22 | -------------------------------------------------------------------------------- /src/utiltime.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2014 The Bitcoin Core developers 3 | // Distributed under the MIT software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | #ifndef BITCOIN_UTILTIME_H 7 | #define BITCOIN_UTILTIME_H 8 | 9 | #include 10 | #include 11 | 12 | int64_t GetTime(); 13 | int64_t GetTimeMillis(); 14 | int64_t GetTimeMicros(); 15 | void SetMockTime(int64_t nMockTimeIn); 16 | void MilliSleep(int64_t n); 17 | 18 | std::string DateTimeStrFormat(const char* pszFormat, int64_t nTime); 19 | 20 | #endif // BITCOIN_UTILTIME_H 21 | -------------------------------------------------------------------------------- /src/qt/coincontroltreewidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2013 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_QT_COINCONTROLTREEWIDGET_H 6 | #define BITCOIN_QT_COINCONTROLTREEWIDGET_H 7 | 8 | #include 9 | #include 10 | 11 | class CoinControlTreeWidget : public QTreeWidget 12 | { 13 | Q_OBJECT 14 | 15 | public: 16 | explicit CoinControlTreeWidget(QWidget *parent = 0); 17 | 18 | protected: 19 | virtual void keyPressEvent(QKeyEvent *event); 20 | }; 21 | 22 | #endif // BITCOIN_QT_COINCONTROLTREEWIDGET_H 23 | -------------------------------------------------------------------------------- /depends/hosts/darwin.mk: -------------------------------------------------------------------------------- 1 | OSX_MIN_VERSION=10.7 2 | OSX_SDK_VERSION=10.9 3 | OSX_SDK=$(SDK_PATH)/MacOSX$(OSX_SDK_VERSION).sdk 4 | LD64_VERSION=241.9 5 | darwin_CC=clang -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION) 6 | darwin_CXX=clang++ -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION) 7 | 8 | darwin_CFLAGS=-pipe 9 | darwin_CXXFLAGS=$(darwin_CFLAGS) 10 | 11 | darwin_release_CFLAGS=-O2 12 | darwin_release_CXXFLAGS=$(darwin_release_CFLAGS) 13 | 14 | darwin_debug_CFLAGS=-O1 15 | darwin_debug_CXXFLAGS=$(darwin_debug_CFLAGS) 16 | 17 | darwin_native_toolchain=native_cctools 18 | -------------------------------------------------------------------------------- /depends/packages/xtrans.mk: -------------------------------------------------------------------------------- 1 | package=xtrans 2 | $(package)_version=1.3.4 3 | $(package)_download_path=http://xorg.freedesktop.org/releases/individual/lib/ 4 | $(package)_file_name=$(package)-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=054d4ee3efd52508c753e9f7bc655ef185a29bd2850dd9e2fc2ccc33544f583a 6 | $(package)_dependencies= 7 | 8 | define $(package)_set_vars 9 | $(package)_config_opts_linux=--with-pic --disable-static 10 | endef 11 | 12 | define $(package)_config_cmds 13 | $($(package)_autoconf) 14 | endef 15 | 16 | define $(package)_build_cmds 17 | $(MAKE) 18 | endef 19 | 20 | define $(package)_stage_cmds 21 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 22 | endef 23 | -------------------------------------------------------------------------------- /depends/packages/native_ccache.mk: -------------------------------------------------------------------------------- 1 | package=native_ccache 2 | $(package)_version=3.1.9 3 | $(package)_download_path=http://samba.org/ftp/ccache 4 | $(package)_file_name=ccache-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=04d3e2e438ac8d4cc4b110b68cdd61bd59226c6588739a4a386869467f5ced7c 6 | 7 | define $(package)_set_vars 8 | $(package)_config_opts= 9 | endef 10 | 11 | define $(package)_config_cmds 12 | $($(package)_autoconf) 13 | endef 14 | 15 | define $(package)_build_cmds 16 | $(MAKE) 17 | endef 18 | 19 | define $(package)_stage_cmds 20 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 21 | endef 22 | 23 | define $(package)_postprocess_cmds 24 | rm -rf lib include 25 | endef 26 | -------------------------------------------------------------------------------- /doc/release-notes/bitcoin/release-notes-0.8.3.md: -------------------------------------------------------------------------------- 1 | Bitcoin-Qt version 0.8.3 is now available from: 2 | http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.8.3/ 3 | 4 | This is a maintenance release to fix a denial-of-service attack that 5 | can cause nodes to crash. 6 | 7 | Please report bugs using the issue tracker at github: 8 | https://github.com/bitcoin/bitcoin/issues 9 | 10 | 0.8.3 Release notes 11 | 12 | Truncate over-size messages to prevent a memory exhaustion attack. 13 | 14 | Fix a regression that causes excessive re-writing of the 'peers.dat' file. 15 | 16 | 17 | Thanks to Peter Todd for responsibly disclosing the vulnerability 18 | ( CVE-2013-4627 ) and creating a fix. 19 | -------------------------------------------------------------------------------- /depends/packages/qrencode.mk: -------------------------------------------------------------------------------- 1 | package=qrencode 2 | $(package)_version=3.4.3 3 | $(package)_download_path=https://fukuchi.org/works/qrencode/ 4 | $(package)_file_name=qrencode-$(qrencode_version).tar.bz2 5 | $(package)_sha256_hash=dfd71487513c871bad485806bfd1fdb304dedc84d2b01a8fb8e0940b50597a98 6 | 7 | define $(package)_set_vars 8 | $(package)_config_opts=--disable-shared -without-tools --disable-sdltest 9 | $(package)_config_opts_linux=--with-pic 10 | endef 11 | 12 | define $(package)_config_cmds 13 | $($(package)_autoconf) 14 | endef 15 | 16 | define $(package)_build_cmds 17 | $(MAKE) 18 | endef 19 | 20 | define $(package)_stage_cmds 21 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 22 | endef 23 | -------------------------------------------------------------------------------- /src/secp256k1/src/num_gmp.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2013, 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_NUM_REPR_ 8 | #define _SECP256K1_NUM_REPR_ 9 | 10 | #include 11 | 12 | #define NUM_LIMBS ((256+GMP_NUMB_BITS-1)/GMP_NUMB_BITS) 13 | 14 | typedef struct { 15 | mp_limb_t data[2*NUM_LIMBS]; 16 | int neg; 17 | int limbs; 18 | } secp256k1_num_t; 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /depends/packages/libXext.mk: -------------------------------------------------------------------------------- 1 | package=libXext 2 | $(package)_version=1.3.2 3 | $(package)_download_path=http://xorg.freedesktop.org/releases/individual/lib/ 4 | $(package)_file_name=$(package)-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=f829075bc646cdc085fa25d98d5885d83b1759ceb355933127c257e8e50432e0 6 | $(package)_dependencies=xproto xextproto libX11 libXau 7 | 8 | define $(package)_set_vars 9 | $(package)_config_opts=--disable-static 10 | endef 11 | 12 | define $(package)_config_cmds 13 | $($(package)_autoconf) 14 | endef 15 | 16 | define $(package)_build_cmds 17 | $(MAKE) 18 | endef 19 | 20 | define $(package)_stage_cmds 21 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 22 | endef 23 | -------------------------------------------------------------------------------- /src/utilmoneystr.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2014 The Bitcoin Core developers 3 | // Distributed under the MIT software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | /** 7 | * Money parsing/formatting utilities. 8 | */ 9 | #ifndef BITCOIN_UTILMONEYSTR_H 10 | #define BITCOIN_UTILMONEYSTR_H 11 | 12 | #include 13 | #include 14 | 15 | #include "amount.h" 16 | 17 | std::string FormatMoney(const CAmount& n, bool fPlus=false); 18 | bool ParseMoney(const std::string& str, CAmount& nRet); 19 | bool ParseMoney(const char* pszIn, CAmount& nRet); 20 | 21 | #endif // BITCOIN_UTILMONEYSTR_H 22 | -------------------------------------------------------------------------------- /depends/packages/fontconfig.mk: -------------------------------------------------------------------------------- 1 | package=fontconfig 2 | $(package)_version=2.11.1 3 | $(package)_download_path=http://www.freedesktop.org/software/fontconfig/release/ 4 | $(package)_file_name=$(package)-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=dc62447533bca844463a3c3fd4083b57c90f18a70506e7a9f4936b5a1e516a99 6 | $(package)_dependencies=freetype expat 7 | 8 | define $(package)_set_vars 9 | $(package)_config_opts=--disable-docs --disable-static 10 | endef 11 | 12 | define $(package)_config_cmds 13 | $($(package)_autoconf) 14 | endef 15 | 16 | define $(package)_build_cmds 17 | $(MAKE) 18 | endef 19 | 20 | define $(package)_stage_cmds 21 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 22 | endef 23 | -------------------------------------------------------------------------------- /depends/packages/freetype.mk: -------------------------------------------------------------------------------- 1 | package=freetype 2 | $(package)_version=2.5.3 3 | $(package)_download_path=http://downloads.sourceforge.net/$(package) 4 | $(package)_file_name=$(package)-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=c0848b29d52ef3ca27ad92e08351f023c5e24ce8cea7d8fe69fc96358e65f75e 6 | 7 | define $(package)_set_vars 8 | $(package)_config_opts=--without-zlib --without-png --disable-static 9 | $(package)_config_opts_linux=--with-pic 10 | endef 11 | 12 | define $(package)_config_cmds 13 | $($(package)_autoconf) 14 | endef 15 | 16 | define $(package)_build_cmds 17 | $(MAKE) 18 | endef 19 | 20 | define $(package)_stage_cmds 21 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 22 | endef 23 | -------------------------------------------------------------------------------- /src/primitives/pureheader.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2014 The Bitcoin developers 3 | // Distributed under the MIT/X11 software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | #include "primitives/pureheader.h" 7 | 8 | #include "chainparams.h" 9 | #include "crypto/scrypt.h" 10 | #include "hash.h" 11 | #include "utilstrencodings.h" 12 | 13 | uint256 CPureBlockHeader::GetHash() const 14 | { 15 | return SerializeHash(*this); 16 | } 17 | 18 | uint256 CPureBlockHeader::GetPoWHash() const 19 | { 20 | uint256 thash; 21 | scrypt_1024_1_1_256(BEGIN(nVersion), BEGIN(thash)); 22 | return thash; 23 | } 24 | -------------------------------------------------------------------------------- /contrib/debian/README.md: -------------------------------------------------------------------------------- 1 | 2 | Debian 3 | ==================== 4 | This directory contains files used to package dogecoind/dogecoin-qt 5 | for Debian-based Linux systems. If you compile dogecoind/dogecoin-qt yourself, there are some useful files here. 6 | 7 | ## dogecoin: URI support ## 8 | 9 | 10 | dogecoin-qt.desktop (Gnome / Open Desktop) 11 | To install: 12 | 13 | sudo desktop-file-install dogecoin-qt.desktop 14 | sudo update-desktop-database 15 | 16 | If you build yourself, you will either need to modify the paths in 17 | the .desktop file or copy or symlink your dogecoin-qt binary to `/usr/bin` 18 | and the `../../share/pixmaps/bitcoin128.png` to `/usr/share/pixmaps` 19 | 20 | dogecoin-qt.protocol (KDE) 21 | 22 | -------------------------------------------------------------------------------- /contrib/qt_translations.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Helpful little script that spits out a comma-separated list of 4 | # language codes for Qt icons that should be included 5 | # in binary bitcoin distributions 6 | 7 | import glob 8 | import os 9 | import re 10 | import sys 11 | 12 | if len(sys.argv) != 3: 13 | sys.exit("Usage: %s $QTDIR/translations $BITCOINDIR/src/qt/locale"%sys.argv[0]) 14 | 15 | d1 = sys.argv[1] 16 | d2 = sys.argv[2] 17 | 18 | l1 = set([ re.search(r'qt_(.*).qm', f).group(1) for f in glob.glob(os.path.join(d1, 'qt_*.qm')) ]) 19 | l2 = set([ re.search(r'bitcoin_(.*).qm', f).group(1) for f in glob.glob(os.path.join(d2, 'bitcoin_*.qm')) ]) 20 | 21 | print ",".join(sorted(l1.intersection(l2))) 22 | 23 | -------------------------------------------------------------------------------- /depends/packages/libXau.mk: -------------------------------------------------------------------------------- 1 | package=libXau 2 | $(package)_version=1.0.8 3 | $(package)_download_path=http://xorg.freedesktop.org/releases/individual/lib/ 4 | $(package)_file_name=$(package)-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=fdd477320aeb5cdd67272838722d6b7d544887dfe7de46e1e7cc0c27c2bea4f2 6 | $(package)_dependencies=xproto 7 | 8 | define $(package)_set_vars 9 | $(package)_config_opts=--disable-shared 10 | $(package)_config_opts_linux=--with-pic 11 | endef 12 | 13 | define $(package)_config_cmds 14 | $($(package)_autoconf) 15 | endef 16 | 17 | define $(package)_build_cmds 18 | $(MAKE) 19 | endef 20 | 21 | define $(package)_stage_cmds 22 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 23 | endef 24 | -------------------------------------------------------------------------------- /depends/packages/native_libdmg-hfsplus.mk: -------------------------------------------------------------------------------- 1 | package=native_libdmg-hfsplus 2 | $(package)_version=0.1 3 | $(package)_download_path=https://github.com/theuni/libdmg-hfsplus/archive 4 | $(package)_file_name=libdmg-hfsplus-v$($(package)_version).tar.gz 5 | $(package)_sha256_hash=6569a02eb31c2827080d7d59001869ea14484c281efab0ae7f2b86af5c3120b3 6 | $(package)_build_subdir=build 7 | 8 | define $(package)_preprocess_cmds 9 | mkdir build 10 | endef 11 | 12 | define $(package)_config_cmds 13 | cmake -DCMAKE_INSTALL_PREFIX:PATH=$(build_prefix)/bin .. 14 | endef 15 | 16 | define $(package)_build_cmds 17 | $(MAKE) -C dmg 18 | endef 19 | 20 | define $(package)_stage_cmds 21 | $(MAKE) DESTDIR=$($(package)_staging_dir) -C dmg install 22 | endef 23 | -------------------------------------------------------------------------------- /depends/packages/native_protobuf.mk: -------------------------------------------------------------------------------- 1 | package=native_protobuf 2 | $(package)_version=2.5.0 3 | $(package)_download_path=https://protobuf.googlecode.com/files 4 | $(package)_file_name=protobuf-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb677 6 | 7 | define $(package)_set_vars 8 | $(package)_config_opts=--disable-shared 9 | endef 10 | 11 | define $(package)_config_cmds 12 | $($(package)_autoconf) 13 | endef 14 | 15 | define $(package)_build_cmds 16 | $(MAKE) -C src protoc 17 | endef 18 | 19 | define $(package)_stage_cmds 20 | $(MAKE) -C src DESTDIR=$($(package)_staging_dir) install-strip 21 | endef 22 | 23 | define $(package)_postprocess_cmds 24 | rm -rf lib include 25 | endef 26 | -------------------------------------------------------------------------------- /src/test/sanity_tests.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2013 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #include "compat/sanity.h" 6 | #include "key.h" 7 | #include "test/test_bitcoin.h" 8 | 9 | #include 10 | 11 | BOOST_FIXTURE_TEST_SUITE(sanity_tests, BasicTestingSetup) 12 | 13 | BOOST_AUTO_TEST_CASE(basic_sanity) 14 | { 15 | BOOST_CHECK_MESSAGE(glibc_sanity_test() == true, "libc sanity test"); 16 | BOOST_CHECK_MESSAGE(glibcxx_sanity_test() == true, "stdlib sanity test"); 17 | BOOST_CHECK_MESSAGE(ECC_InitSanityCheck() == true, "openssl ECC test"); 18 | } 19 | 20 | BOOST_AUTO_TEST_SUITE_END() 21 | -------------------------------------------------------------------------------- /depends/patches/qt/qt5-tablet-osx.patch: -------------------------------------------------------------------------------- 1 | --- old/qtbase/src/widgets/kernel/qwidgetwindow.cpp 2014-09-05 20:45:18.717570370 -0400 2 | +++ new/qtbase/src/widgets/kernel/qwidgetwindow.cpp 2014-09-05 20:52:38.653576561 -0400 3 | @@ -57,7 +57,7 @@ 4 | Q_WIDGETS_EXPORT extern bool qt_tab_all_widgets(); 5 | 6 | QWidget *qt_button_down = 0; // widget got last button-down 7 | -static QWidget *qt_tablet_target = 0; 8 | +static QPointer qt_tablet_target = 0; 9 | 10 | // popup control 11 | QWidget *qt_popup_down = 0; // popup that contains the pressed widget 12 | @@ -96,8 +96,6 @@ 13 | 14 | QWidgetWindow::~QWidgetWindow() 15 | { 16 | - if (m_widget == qt_tablet_target) 17 | - qt_tablet_target = 0; 18 | } 19 | 20 | #ifndef QT_NO_ACCESSIBILITY 21 | -------------------------------------------------------------------------------- /depends/packages/libX11.mk: -------------------------------------------------------------------------------- 1 | package=libX11 2 | $(package)_version=1.6.2 3 | $(package)_download_path=http://xorg.freedesktop.org/releases/individual/lib/ 4 | $(package)_file_name=$(package)-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=2aa027e837231d2eeea90f3a4afe19948a6eb4c8b2bec0241eba7dbc8106bd16 6 | $(package)_dependencies=libxcb xtrans xextproto xproto 7 | 8 | define $(package)_set_vars 9 | $(package)_config_opts=--disable-xkb --disable-static 10 | $(package)_config_opts_linux=--with-pic 11 | endef 12 | 13 | define $(package)_config_cmds 14 | $($(package)_autoconf) 15 | endef 16 | 17 | define $(package)_build_cmds 18 | $(MAKE) 19 | endef 20 | 21 | define $(package)_stage_cmds 22 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 23 | endef 24 | -------------------------------------------------------------------------------- /share/ui.rc: -------------------------------------------------------------------------------- 1 | bitcoin ICON "pixmaps/bitcoin.ico" 2 | 3 | #include "wx/msw/wx.rc" 4 | 5 | check ICON "pixmaps/check.ico" 6 | send16 BITMAP "pixmaps/send16.bmp" 7 | send16mask BITMAP "pixmaps/send16mask.bmp" 8 | send16masknoshadow BITMAP "pixmaps/send16masknoshadow.bmp" 9 | send20 BITMAP "pixmaps/send20.bmp" 10 | send20mask BITMAP "pixmaps/send20mask.bmp" 11 | addressbook16 BITMAP "pixmaps/addressbook16.bmp" 12 | addressbook16mask BITMAP "pixmaps/addressbook16mask.bmp" 13 | addressbook20 BITMAP "pixmaps/addressbook20.bmp" 14 | addressbook20mask BITMAP "pixmaps/addressbook20mask.bmp" 15 | favicon ICON "pixmaps/favicon.ico" 16 | -------------------------------------------------------------------------------- /doc/unit-tests.md: -------------------------------------------------------------------------------- 1 | Compiling/running unit tests 2 | ------------------------------------ 3 | 4 | Unit tests will be automatically compiled if dependencies were met in configure 5 | and tests weren't explicitly disabled. 6 | 7 | After configuring, they can be run with 'make check'. 8 | 9 | To run the dogecoind tests manually, launch src/test/test_dogecoin . 10 | 11 | To add more dogecoind tests, add `BOOST_AUTO_TEST_CASE` functions to the existing 12 | .cpp files in the test/ directory or add new .cpp files that 13 | implement new BOOST_AUTO_TEST_SUITE sections. 14 | 15 | To run the dogecoin-qt tests manually, launch src/qt/test/test_dogecoin-qt 16 | 17 | To add more dogecoin-qt tests, add them to the `src/qt/test/` directory and 18 | the `src/qt/test/test_main.cpp` file. 19 | -------------------------------------------------------------------------------- /src/crypto/sha1.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_CRYPTO_SHA1_H 6 | #define BITCOIN_CRYPTO_SHA1_H 7 | 8 | #include 9 | #include 10 | 11 | /** A hasher class for SHA1. */ 12 | class CSHA1 13 | { 14 | private: 15 | uint32_t s[5]; 16 | unsigned char buf[64]; 17 | size_t bytes; 18 | 19 | public: 20 | static const size_t OUTPUT_SIZE = 20; 21 | 22 | CSHA1(); 23 | CSHA1& Write(const unsigned char* data, size_t len); 24 | void Finalize(unsigned char hash[OUTPUT_SIZE]); 25 | CSHA1& Reset(); 26 | }; 27 | 28 | #endif // BITCOIN_CRYPTO_SHA1_H 29 | -------------------------------------------------------------------------------- /depends/packages/libICE.mk: -------------------------------------------------------------------------------- 1 | package=libICE 2 | $(package)_version=1.0.9 3 | $(package)_download_path=http://xorg.freedesktop.org/releases/individual/lib/ 4 | $(package)_file_name=$(package)-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=8f7032f2c1c64352b5423f6b48a8ebdc339cc63064af34d66a6c9aa79759e202 6 | $(package)_dependencies=xtrans xproto 7 | 8 | define $(package)_set_vars 9 | $(package)_config_opts=--disable-static --disable-docs --disable-specs --without-xsltproc 10 | $(package)_config_opts_linux=--with-pic 11 | endef 12 | 13 | define $(package)_config_cmds 14 | $($(package)_autoconf) 15 | endef 16 | 17 | define $(package)_build_cmds 18 | $(MAKE) 19 | endef 20 | 21 | define $(package)_stage_cmds 22 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 23 | endef 24 | -------------------------------------------------------------------------------- /src/crypto/sha256.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_CRYPTO_SHA256_H 6 | #define BITCOIN_CRYPTO_SHA256_H 7 | 8 | #include 9 | #include 10 | 11 | /** A hasher class for SHA-256. */ 12 | class CSHA256 13 | { 14 | private: 15 | uint32_t s[8]; 16 | unsigned char buf[64]; 17 | size_t bytes; 18 | 19 | public: 20 | static const size_t OUTPUT_SIZE = 32; 21 | 22 | CSHA256(); 23 | CSHA256& Write(const unsigned char* data, size_t len); 24 | void Finalize(unsigned char hash[OUTPUT_SIZE]); 25 | CSHA256& Reset(); 26 | }; 27 | 28 | #endif // BITCOIN_CRYPTO_SHA256_H 29 | -------------------------------------------------------------------------------- /src/secp256k1/src/num_impl.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2013, 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_NUM_IMPL_H_ 8 | #define _SECP256K1_NUM_IMPL_H_ 9 | 10 | #if defined HAVE_CONFIG_H 11 | #include "libsecp256k1-config.h" 12 | #endif 13 | 14 | #include "num.h" 15 | 16 | #if defined(USE_NUM_GMP) 17 | #include "num_gmp_impl.h" 18 | #elif defined(USE_NUM_NONE) 19 | /* Nothing. */ 20 | #else 21 | #error "Please select num implementation" 22 | #endif 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /depends/packages/libSM.mk: -------------------------------------------------------------------------------- 1 | package=libSM 2 | $(package)_version=1.2.2 3 | $(package)_download_path=http://xorg.freedesktop.org/releases/individual/lib/ 4 | $(package)_file_name=$(package)-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=0baca8c9f5d934450a70896c4ad38d06475521255ca63b717a6510fdb6e287bd 6 | $(package)_dependencies=xtrans xproto libICE 7 | 8 | define $(package)_set_vars 9 | $(package)_config_opts=--without-libuuid --without-xsltproc --disable-docs --disable-static 10 | $(package)_config_opts_linux=--with-pic 11 | endef 12 | 13 | define $(package)_config_cmds 14 | $($(package)_autoconf) 15 | endef 16 | 17 | define $(package)_build_cmds 18 | $(MAKE) 19 | endef 20 | 21 | define $(package)_stage_cmds 22 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 23 | endef 24 | -------------------------------------------------------------------------------- /src/crypto/sha512.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_CRYPTO_SHA512_H 6 | #define BITCOIN_CRYPTO_SHA512_H 7 | 8 | #include 9 | #include 10 | 11 | /** A hasher class for SHA-512. */ 12 | class CSHA512 13 | { 14 | private: 15 | uint64_t s[8]; 16 | unsigned char buf[128]; 17 | size_t bytes; 18 | 19 | public: 20 | static const size_t OUTPUT_SIZE = 64; 21 | 22 | CSHA512(); 23 | CSHA512& Write(const unsigned char* data, size_t len); 24 | void Finalize(unsigned char hash[OUTPUT_SIZE]); 25 | CSHA512& Reset(); 26 | }; 27 | 28 | #endif // BITCOIN_CRYPTO_SHA512_H 29 | -------------------------------------------------------------------------------- /src/secp256k1/src/scalar_8x32.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_SCALAR_REPR_ 8 | #define _SECP256K1_SCALAR_REPR_ 9 | 10 | #include 11 | 12 | /** A scalar modulo the group order of the secp256k1 curve. */ 13 | typedef struct { 14 | uint32_t d[8]; 15 | } secp256k1_scalar_t; 16 | 17 | #define SECP256K1_SCALAR_CONST(d7, d6, d5, d4, d3, d2, d1, d0) {{(d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7)}} 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /depends/packages/xcb_proto.mk: -------------------------------------------------------------------------------- 1 | package=xcb_proto 2 | $(package)_version=1.10 3 | $(package)_download_path=http://xcb.freedesktop.org/dist 4 | $(package)_file_name=xcb-proto-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=7ef40ddd855b750bc597d2a435da21e55e502a0fefa85b274f2c922800baaf05 6 | 7 | define $(package)_set_vars 8 | $(package)_config_opts=--disable-shared 9 | $(package)_config_opts_linux=--with-pic 10 | endef 11 | 12 | define $(package)_config_cmds 13 | $($(package)_autoconf) 14 | endef 15 | 16 | define $(package)_build_cmds 17 | $(MAKE) 18 | endef 19 | 20 | define $(package)_stage_cmds 21 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 22 | endef 23 | 24 | define $(package)_postprocess_cmds 25 | find -name "*.pyc" -delete && \ 26 | find -name "*.pyo" -delete 27 | endef 28 | -------------------------------------------------------------------------------- /src/leveldb/helpers/memenv/memenv.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_ 6 | #define STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_ 7 | 8 | namespace leveldb { 9 | 10 | class Env; 11 | 12 | // Returns a new environment that stores its data in memory and delegates 13 | // all non-file-storage tasks to base_env. The caller must delete the result 14 | // when it is no longer needed. 15 | // *base_env must remain live while the result is in use. 16 | Env* NewMemEnv(Env* base_env); 17 | 18 | } // namespace leveldb 19 | 20 | #endif // STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_ 21 | -------------------------------------------------------------------------------- /src/qt/transactiondescdialog.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2013 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #include "transactiondescdialog.h" 6 | #include "ui_transactiondescdialog.h" 7 | 8 | #include "transactiontablemodel.h" 9 | 10 | #include 11 | 12 | TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) : 13 | QDialog(parent), 14 | ui(new Ui::TransactionDescDialog) 15 | { 16 | ui->setupUi(this); 17 | QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString(); 18 | ui->detailText->setHtml(desc); 19 | } 20 | 21 | TransactionDescDialog::~TransactionDescDialog() 22 | { 23 | delete ui; 24 | } 25 | -------------------------------------------------------------------------------- /src/crypto/ripemd160.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_CRYPTO_RIPEMD160_H 6 | #define BITCOIN_CRYPTO_RIPEMD160_H 7 | 8 | #include 9 | #include 10 | 11 | /** A hasher class for RIPEMD-160. */ 12 | class CRIPEMD160 13 | { 14 | private: 15 | uint32_t s[5]; 16 | unsigned char buf[64]; 17 | size_t bytes; 18 | 19 | public: 20 | static const size_t OUTPUT_SIZE = 20; 21 | 22 | CRIPEMD160(); 23 | CRIPEMD160& Write(const unsigned char* data, size_t len); 24 | void Finalize(unsigned char hash[OUTPUT_SIZE]); 25 | CRIPEMD160& Reset(); 26 | }; 27 | 28 | #endif // BITCOIN_CRYPTO_RIPEMD160_H 29 | -------------------------------------------------------------------------------- /src/qt/openuridialog.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2013 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_QT_OPENURIDIALOG_H 6 | #define BITCOIN_QT_OPENURIDIALOG_H 7 | 8 | #include 9 | 10 | namespace Ui { 11 | class OpenURIDialog; 12 | } 13 | 14 | class OpenURIDialog : public QDialog 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | explicit OpenURIDialog(QWidget *parent); 20 | ~OpenURIDialog(); 21 | 22 | QString getURI(); 23 | 24 | protected slots: 25 | void accept(); 26 | 27 | private slots: 28 | void on_selectFileButton_clicked(); 29 | 30 | private: 31 | Ui::OpenURIDialog *ui; 32 | }; 33 | 34 | #endif // BITCOIN_QT_OPENURIDIALOG_H 35 | -------------------------------------------------------------------------------- /contrib/gitian-downloader/win32-download-config: -------------------------------------------------------------------------------- 1 | --- 2 | name: dogecoin 3 | urls: 4 | - http://dogecoin.com/dogecoin-latest-win32-gitian.zip 5 | rss: 6 | - url: 7 | xpath: //item/link/text() 8 | pattern: dogecoin-\d+.\d+.\d+-win32-gitian.zip 9 | signers: 10 | 90DC2AC256201AD9377E15049142E5F7E533CE3B: 11 | weight: 40 12 | name: rnicoll 13 | key: rnicoll 14 | 1DDC450B45DB5ADCCF5DDA7F8E4217C6D47D946D: 15 | weight: 40 16 | name: langerhans 17 | key: langerhans 18 | 6E9C3630F63C1541054C9503B1C60A65E5E64D7B: 19 | weight: 20 20 | name: "Patrick Lodder" 21 | key: patricklodder-key 22 | B8273C8A55820B19C2152407279566AD6D852A36: 23 | weight: 20 24 | name: stapler117 25 | key: stapler117 26 | BEC5406F9FE5B07FD93964073AF52B1CB90A06E5: 27 | weight: 20 28 | name: whit 29 | key: whit 30 | -------------------------------------------------------------------------------- /src/test/test_bitcoin.h: -------------------------------------------------------------------------------- 1 | #ifndef BITCOIN_TEST_TEST_BITCOIN_H 2 | #define BITCOIN_TEST_TEST_BITCOIN_H 3 | 4 | #include "txdb.h" 5 | 6 | #include 7 | #include 8 | 9 | /** Basic testing setup. 10 | * This just configures logging and chain parameters. 11 | */ 12 | struct BasicTestingSetup { 13 | BasicTestingSetup(); 14 | ~BasicTestingSetup(); 15 | }; 16 | 17 | /** Testing setup that configures a complete environment. 18 | * Included are data directory, coins database, script check threads 19 | * and wallet (if enabled) setup. 20 | */ 21 | struct TestingSetup: public BasicTestingSetup { 22 | CCoinsViewDB *pcoinsdbview; 23 | boost::filesystem::path pathTemp; 24 | boost::thread_group threadGroup; 25 | 26 | TestingSetup(); 27 | ~TestingSetup(); 28 | }; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /contrib/debian/rules: -------------------------------------------------------------------------------- 1 | 2 | #!/usr/bin/make -f 3 | # -*- mode: makefile; coding: utf-8 -*- 4 | 5 | #DEB_MAKE_CHECK_TARGET = test_dogecoin 6 | #build/dogecoind:: 7 | # $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,src/test_dogecoin) 8 | 9 | DEB_INSTALL_EXAMPLES_dogecoind += debian/examples/* 10 | DEB_INSTALL_MANPAGES_dogecoind += debian/manpages/* 11 | 12 | %: 13 | dh --with bash-completion $@ 14 | 15 | override_dh_auto_clean: 16 | if [ -f Makefile ]; then $(MAKE) distclean; fi 17 | rm -rf Makefile.in aclocal.m4 configure src/Makefile.in src/bitcoin-config.h.in src/build-aux src/qt/Makefile.in src/qt/test/Makefile.in src/test/Makefile.in 18 | 19 | # Yea, autogen should be run on the source archive, but I like doing git archive 20 | override_dh_auto_configure: 21 | ./autogen.sh 22 | ./configure 23 | 24 | override_dh_auto_test: 25 | make check 26 | -------------------------------------------------------------------------------- /contrib/gitian-downloader/linux-download-config: -------------------------------------------------------------------------------- 1 | --- 2 | name: dogecoin 3 | urls: 4 | - http://dogecoin.com/dogecoin-latest-linux-gitian.zip 5 | rss: 6 | - url: 7 | xpath: //item/link/text() 8 | pattern: bitcoin-\d+.\d+.\d+-linux-gitian.zip 9 | signers: 10 | 90DC2AC256201AD9377E15049142E5F7E533CE3B: 11 | weight: 40 12 | name: rnicoll 13 | key: rnicoll 14 | 1DDC450B45DB5ADCCF5DDA7F8E4217C6D47D946D: 15 | weight: 40 16 | name: langerhans 17 | key: langerhans 18 | 6E9C3630F63C1541054C9503B1C60A65E5E64D7B: 19 | weight: 20 20 | name: "Patrick Lodder" 21 | key: patricklodder-key 22 | B8273C8A55820B19C2152407279566AD6D852A36: 23 | weight: 20 24 | name: stapler117 25 | key: stapler117 26 | BEC5406F9FE5B07FD93964073AF52B1CB90A06E5: 27 | weight: 20 28 | name: whit 29 | key: whit 30 | minimum_weight: 120 31 | -------------------------------------------------------------------------------- /src/qt/res/src/tx_in.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /src/leveldb/port/port.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_PORT_PORT_H_ 6 | #define STORAGE_LEVELDB_PORT_PORT_H_ 7 | 8 | #include 9 | 10 | // Include the appropriate platform specific file below. If you are 11 | // porting to a new platform, see "port_example.h" for documentation 12 | // of what the new port_.h file must provide. 13 | #if defined(LEVELDB_PLATFORM_POSIX) 14 | # include "port/port_posix.h" 15 | #elif defined(LEVELDB_PLATFORM_CHROMIUM) 16 | # include "port/port_chromium.h" 17 | #elif defined(LEVELDB_PLATFORM_WINDOWS) 18 | # include "port/port_win.h" 19 | #endif 20 | 21 | #endif // STORAGE_LEVELDB_PORT_PORT_H_ 22 | -------------------------------------------------------------------------------- /src/secp256k1/src/scalar_4x64.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_SCALAR_REPR_ 8 | #define _SECP256K1_SCALAR_REPR_ 9 | 10 | #include 11 | 12 | /** A scalar modulo the group order of the secp256k1 curve. */ 13 | typedef struct { 14 | uint64_t d[4]; 15 | } secp256k1_scalar_t; 16 | 17 | #define SECP256K1_SCALAR_CONST(d7, d6, d5, d4, d3, d2, d1, d0) {{((uint64_t)(d1)) << 32 | (d0), ((uint64_t)(d3)) << 32 | (d2), ((uint64_t)(d5)) << 32 | (d4), ((uint64_t)(d7)) << 32 | (d6)}} 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /depends/builders/default.mk: -------------------------------------------------------------------------------- 1 | default_build_CC = gcc 2 | default_build_CXX = g++ 3 | default_build_AR = ar 4 | default_build_RANLIB = ranlib 5 | default_build_STRIP = strip 6 | default_build_NM = nm 7 | default_build_OTOOL = otool 8 | default_build_INSTALL_NAME_TOOL = install_name_tool 9 | 10 | define add_build_tool_func 11 | build_$(build_os)_$1 ?= $$(default_build_$1) 12 | build_$(build_arch)_$(build_os)_$1 ?= $$(build_$(build_os)_$1) 13 | build_$1=$$(build_$(build_arch)_$(build_os)_$1) 14 | endef 15 | $(foreach var,CC CXX AR RANLIB NM STRIP SHA256SUM DOWNLOAD OTOOL INSTALL_NAME_TOOL,$(eval $(call add_build_tool_func,$(var)))) 16 | define add_build_flags_func 17 | build_$(build_arch)_$(build_os)_$1 += $(build_$(build_os)_$1) 18 | build_$1=$$(build_$(build_arch)_$(build_os)_$1) 19 | endef 20 | $(foreach flags, CFLAGS CXXFLAGS LDFLAGS, $(eval $(call add_build_flags_func,$(flags)))) 21 | -------------------------------------------------------------------------------- /contrib/linearize/example-linearize.cfg: -------------------------------------------------------------------------------- 1 | 2 | # dogecoind RPC settings (linearize-hashes) 3 | rpcuser=someuser 4 | rpcpassword=somepassword 5 | host=127.0.0.1 6 | port=22555 7 | #port=44555 8 | 9 | # bootstrap.dat hashlist settings (linearize-hashes) 10 | max_height=845000 11 | 12 | # bootstrap.dat input/output settings (linearize-data) 13 | 14 | # mainnet 15 | netmagic=c0c0c0c0 16 | genesis=1a91e3dace36e2be3bf030a65679fe821aa1d6ef92e7c9902eb318182c355691 17 | input=/home/example/.dogecoin/blocks 18 | 19 | # testnet 20 | #netmagic=fcc1b7dc 21 | #genesis=bb0a78264637406b6360aad926284d544d7049f45189db5664f3c4d07350559e 22 | #input=/home/example/.dogecoin/testnet3/blocks 23 | 24 | output_file=/home/example/Downloads/bootstrap.dat 25 | hashlist=hashlist.txt 26 | split_year=1 27 | 28 | # Maxmimum size in bytes of out-of-order blocks cache in memory 29 | out_of_order_cache_sz = 100000000 30 | -------------------------------------------------------------------------------- /src/qt/transactiondescdialog.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2013 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_QT_TRANSACTIONDESCDIALOG_H 6 | #define BITCOIN_QT_TRANSACTIONDESCDIALOG_H 7 | 8 | #include 9 | 10 | namespace Ui { 11 | class TransactionDescDialog; 12 | } 13 | 14 | QT_BEGIN_NAMESPACE 15 | class QModelIndex; 16 | QT_END_NAMESPACE 17 | 18 | /** Dialog showing transaction details. */ 19 | class TransactionDescDialog : public QDialog 20 | { 21 | Q_OBJECT 22 | 23 | public: 24 | explicit TransactionDescDialog(const QModelIndex &idx, QWidget *parent = 0); 25 | ~TransactionDescDialog(); 26 | 27 | private: 28 | Ui::TransactionDescDialog *ui; 29 | }; 30 | 31 | #endif // BITCOIN_QT_TRANSACTIONDESCDIALOG_H 32 | -------------------------------------------------------------------------------- /depends/hosts/linux.mk: -------------------------------------------------------------------------------- 1 | linux_CFLAGS=-pipe 2 | linux_CXXFLAGS=$(linux_CFLAGS) 3 | 4 | linux_release_CFLAGS=-O2 5 | linux_release_CXXFLAGS=$(linux_release_CFLAGS) 6 | 7 | linux_debug_CFLAGS=-O1 8 | linux_debug_CXXFLAGS=$(linux_debug_CFLAGS) 9 | 10 | linux_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC 11 | 12 | ifeq (86,$(findstring 86,$(build_arch))) 13 | i686_linux_CC=gcc -m32 14 | i686_linux_CXX=g++ -m32 15 | i686_linux_AR=ar 16 | i686_linux_RANLIB=ranlib 17 | i686_linux_NM=nm 18 | i686_linux_STRIP=strip 19 | 20 | x86_64_linux_CC=gcc -m64 21 | x86_64_linux_CXX=g++ -m64 22 | x86_64_linux_AR=ar 23 | x86_64_linux_RANLIB=ranlib 24 | x86_64_linux_NM=nm 25 | x86_64_linux_STRIP=strip 26 | else 27 | i686_linux_CC=$(default_host_CC) -m32 28 | i686_linux_CXX=$(default_host_CXX) -m32 29 | x86_64_linux_CC=$(default_host_CC) -m64 30 | x86_64_linux_CXX=$(default_host_CXX) -m64 31 | endif 32 | -------------------------------------------------------------------------------- /src/qt/transactiondesc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2013 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_QT_TRANSACTIONDESC_H 6 | #define BITCOIN_QT_TRANSACTIONDESC_H 7 | 8 | #include 9 | #include 10 | 11 | class TransactionRecord; 12 | 13 | class CWallet; 14 | class CWalletTx; 15 | 16 | /** Provide a human-readable extended HTML description of a transaction. 17 | */ 18 | class TransactionDesc: public QObject 19 | { 20 | Q_OBJECT 21 | 22 | public: 23 | static QString toHTML(CWallet *wallet, CWalletTx &wtx, TransactionRecord *rec, int unit); 24 | 25 | private: 26 | TransactionDesc() {} 27 | 28 | static QString FormatTxStatus(const CWalletTx& wtx); 29 | }; 30 | 31 | #endif // BITCOIN_QT_TRANSACTIONDESC_H 32 | -------------------------------------------------------------------------------- /contrib/macdeploy/fancy.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | window_bounds 6 | 7 | 300 8 | 300 9 | 800 10 | 620 11 | 12 | background_picture 13 | background.tiff 14 | icon_size 15 | 96 16 | applications_symlink 17 | 18 | items_position 19 | 20 | Applications 21 | 22 | 370 23 | 156 24 | 25 | Dogecoin-Qt.app 26 | 27 | 128 28 | 156 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /contrib/bitcoin-qt.pro: -------------------------------------------------------------------------------- 1 | FORMS += \ 2 | ../src/qt/forms/aboutdialog.ui \ 3 | ../src/qt/forms/addressbookpage.ui \ 4 | ../src/qt/forms/askpassphrasedialog.ui \ 5 | ../src/qt/forms/coincontroldialog.ui \ 6 | ../src/qt/forms/editaddressdialog.ui \ 7 | ../src/qt/forms/helpmessagedialog.ui \ 8 | ../src/qt/forms/intro.ui \ 9 | ../src/qt/forms/openuridialog.ui \ 10 | ../src/qt/forms/optionsdialog.ui \ 11 | ../src/qt/forms/overviewpage.ui \ 12 | ../src/qt/forms/receivecoinsdialog.ui \ 13 | ../src/qt/forms/receiverequestdialog.ui \ 14 | ../src/qt/forms/rpcconsole.ui \ 15 | ../src/qt/forms/sendcoinsdialog.ui \ 16 | ../src/qt/forms/sendcoinsentry.ui \ 17 | ../src/qt/forms/signverifymessagedialog.ui \ 18 | ../src/qt/forms/transactiondescdialog.ui \ 19 | 20 | RESOURCES += \ 21 | ../src/qt/bitcoin.qrc 22 | 23 | 24 | QT += \ 25 | printsupport 26 | -------------------------------------------------------------------------------- /depends/packages/native_cdrkit.mk: -------------------------------------------------------------------------------- 1 | package=native_cdrkit 2 | $(package)_version=1.1.11 3 | $(package)_download_path=http://distro.ibiblio.org/fatdog/source/600/c 4 | $(package)_file_name=cdrkit-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=b50d64c214a65b1a79afe3a964c691931a4233e2ba605d793eb85d0ac3652564 6 | $(package)_patches=cdrkit-deterministic.patch 7 | 8 | define $(package)_preprocess_cmds 9 | patch -p1 < $($(package)_patch_dir)/cdrkit-deterministic.patch 10 | endef 11 | 12 | define $(package)_config_cmds 13 | cmake -DCMAKE_INSTALL_PREFIX=$(build_prefix) 14 | endef 15 | 16 | define $(package)_build_cmds 17 | $(MAKE) genisoimage 18 | endef 19 | 20 | define $(package)_stage_cmds 21 | $(MAKE) DESTDIR=$($(package)_staging_dir) -C genisoimage install 22 | endef 23 | 24 | define $(package)_postprocess_cmds 25 | rm bin/isovfy bin/isoinfo bin/isodump bin/isodebug bin/devdump 26 | endef 27 | -------------------------------------------------------------------------------- /src/amount.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2014 The Bitcoin Core developers 3 | // Distributed under the MIT software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | #include "amount.h" 7 | 8 | #include "tinyformat.h" 9 | 10 | CFeeRate::CFeeRate(const CAmount& nFeePaid, size_t nSize) 11 | { 12 | if (nSize > 0) 13 | nSatoshisPerK = nFeePaid*1000/nSize; 14 | else 15 | nSatoshisPerK = 0; 16 | } 17 | 18 | CAmount CFeeRate::GetFee(size_t nSize) const 19 | { 20 | CAmount nFee = nSatoshisPerK*nSize / 1000; 21 | 22 | if (nFee == 0 && nSatoshisPerK > 0) 23 | nFee = nSatoshisPerK; 24 | 25 | return nFee; 26 | } 27 | 28 | std::string CFeeRate::ToString() const 29 | { 30 | return strprintf("%d.%08d DOGE/kB", nSatoshisPerK / COIN, nSatoshisPerK % COIN); 31 | } 32 | -------------------------------------------------------------------------------- /depends/packages/native_comparisontool.mk: -------------------------------------------------------------------------------- 1 | package=native_comparisontool 2 | $(package)_version=0f7b5d8 3 | $(package)_download_path=https://github.com/TheBlueMatt/test-scripts/raw/38b490a2599d422b12d5ce8f165792f63fd8f54f 4 | $(package)_file_name=pull-tests-$($(package)_version).jar 5 | $(package)_sha256_hash=ecd43b988a8b673b483e4f69f931596360a5e90fc415c75c4c259faa690df198 6 | $(package)_install_dirname=BitcoindComparisonTool_jar 7 | $(package)_install_filename=BitcoindComparisonTool.jar 8 | 9 | define $(package)_extract_cmds 10 | endef 11 | 12 | define $(package)_configure_cmds 13 | endef 14 | 15 | define $(package)_build_cmds 16 | endef 17 | 18 | define $(package)_stage_cmds 19 | mkdir -p $($(package)_staging_prefix_dir)/share/$($(package)_install_dirname) && \ 20 | cp $($(package)_source) $($(package)_staging_prefix_dir)/share/$($(package)_install_dirname)/$($(package)_install_filename) 21 | endef 22 | -------------------------------------------------------------------------------- /src/leveldb/util/options.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #include "leveldb/options.h" 6 | 7 | #include "leveldb/comparator.h" 8 | #include "leveldb/env.h" 9 | 10 | namespace leveldb { 11 | 12 | Options::Options() 13 | : comparator(BytewiseComparator()), 14 | create_if_missing(false), 15 | error_if_exists(false), 16 | paranoid_checks(false), 17 | env(Env::Default()), 18 | info_log(NULL), 19 | write_buffer_size(4<<20), 20 | max_open_files(1000), 21 | block_cache(NULL), 22 | block_size(4096), 23 | block_restart_interval(16), 24 | compression(kSnappyCompression), 25 | filter_policy(NULL) { 26 | } 27 | 28 | 29 | } // namespace leveldb 30 | -------------------------------------------------------------------------------- /src/qt/qvaluecombobox.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2013 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #include "qvaluecombobox.h" 6 | 7 | QValueComboBox::QValueComboBox(QWidget *parent) : 8 | QComboBox(parent), role(Qt::UserRole) 9 | { 10 | connect(this, SIGNAL(currentIndexChanged(int)), this, SLOT(handleSelectionChanged(int))); 11 | } 12 | 13 | QVariant QValueComboBox::value() const 14 | { 15 | return itemData(currentIndex(), role); 16 | } 17 | 18 | void QValueComboBox::setValue(const QVariant &value) 19 | { 20 | setCurrentIndex(findData(value, role)); 21 | } 22 | 23 | void QValueComboBox::setRole(int role) 24 | { 25 | this->role = role; 26 | } 27 | 28 | void QValueComboBox::handleSelectionChanged(int idx) 29 | { 30 | emit valueChanged(); 31 | } 32 | -------------------------------------------------------------------------------- /src/secp256k1/src/java/org_bitcoin_NativeSecp256k1.c: -------------------------------------------------------------------------------- 1 | #include "org_bitcoin_NativeSecp256k1.h" 2 | #include "include/secp256k1.h" 3 | 4 | JNIEXPORT jint JNICALL Java_org_bitcoin_NativeSecp256k1_secp256k1_1ecdsa_1verify 5 | (JNIEnv* env, jclass classObject, jobject byteBufferObject) 6 | { 7 | unsigned char* data = (unsigned char*) (*env)->GetDirectBufferAddress(env, byteBufferObject); 8 | int sigLen = *((int*)(data + 32)); 9 | int pubLen = *((int*)(data + 32 + 4)); 10 | 11 | return secp256k1_ecdsa_verify(data, 32, data+32+8, sigLen, data+32+8+sigLen, pubLen); 12 | } 13 | 14 | static void __javasecp256k1_attach(void) __attribute__((constructor)); 15 | static void __javasecp256k1_detach(void) __attribute__((destructor)); 16 | 17 | static void __javasecp256k1_attach(void) { 18 | secp256k1_start(SECP256K1_START_VERIFY); 19 | } 20 | 21 | static void __javasecp256k1_detach(void) { 22 | secp256k1_stop(); 23 | } 24 | -------------------------------------------------------------------------------- /depends/packages/dbus.mk: -------------------------------------------------------------------------------- 1 | package=dbus 2 | $(package)_version=1.8.6 3 | $(package)_download_path=http://dbus.freedesktop.org/releases/dbus 4 | $(package)_file_name=$(package)-$($(package)_version).tar.gz 5 | $(package)_sha256_hash=eded83ca007b719f32761e60fd8b9ffd0f5796a4caf455b01b5a5ef740ebd23f 6 | $(package)_dependencies=expat 7 | 8 | define $(package)_set_vars 9 | $(package)_config_opts=--disable-tests --disable-doxygen-docs --disable-xml-docs --disable-static --without-x 10 | endef 11 | 12 | define $(package)_config_cmds 13 | $($(package)_autoconf) 14 | endef 15 | 16 | define $(package)_build_cmds 17 | $(MAKE) -C dbus libdbus-1.la 18 | endef 19 | 20 | define $(package)_stage_cmds 21 | $(MAKE) -C dbus DESTDIR=$($(package)_staging_dir) install-libLTLIBRARIES install-dbusincludeHEADERS install-nodist_dbusarchincludeHEADERS && \ 22 | $(MAKE) DESTDIR=$($(package)_staging_dir) install-pkgconfigDATA 23 | endef 24 | -------------------------------------------------------------------------------- /contrib/init/dogecoind.openrcconf: -------------------------------------------------------------------------------- 1 | # /etc/conf.d/dogecoind: config file for /etc/init.d/dogecoind 2 | 3 | # Config file location 4 | #DOGECOIND_CONFIGFILE="/etc/dogecoin/dogecoin.conf" 5 | 6 | # What directory to write pidfile to? (created and owned by $DOGECOIND_USER) 7 | #DOGECOIND_PIDDIR="/var/run/dogecoind" 8 | 9 | # What filename to give the pidfile 10 | #DOGECOIND_PIDFILE="${DOGECOIND_PIDDIR}/dogecoind.pid" 11 | 12 | # Where to write dogecoind data (be mindful that the blockchain is large) 13 | #DOGECOIND_DATADIR="/var/lib/dogecoind" 14 | 15 | # User and group to own dogecoind process 16 | #DOGECOIND_USER="dogecoin" 17 | #DOGECOIND_GROUP="dogecoin" 18 | 19 | # Path to dogecoind executable 20 | #DOGECOIND_BIN="/usr/bin/dogecoind" 21 | 22 | # Nice value to run dogecoind under 23 | #DOGECOIND_NICE=0 24 | 25 | # Additional options (avoid -conf and -datadir, use flags above) 26 | DOGECOIND_OPTS="-disablewallet" 27 | 28 | -------------------------------------------------------------------------------- /src/consensus/consensus.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2014 The Bitcoin Core developers 3 | // Distributed under the MIT software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | #ifndef BITCOIN_CONSENSUS_CONSENSUS_H 7 | #define BITCOIN_CONSENSUS_CONSENSUS_H 8 | 9 | /** The maximum allowed size for a serialized block, in bytes (network rule) */ 10 | static const unsigned int MAX_BLOCK_SIZE = 1000000; 11 | /** The maximum allowed number of signature check operations in a block (network rule) */ 12 | static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50; 13 | /** Threshold for nLockTime: below this value it is interpreted as block number, otherwise as UNIX timestamp. */ 14 | static const unsigned int LOCKTIME_THRESHOLD = 500000000; // Tue Nov 5 00:53:20 1985 UTC 15 | 16 | #endif // BITCOIN_CONSENSUS_CONSENSUS_H 17 | -------------------------------------------------------------------------------- /src/crypto/hmac_sha256.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_CRYPTO_HMAC_SHA256_H 6 | #define BITCOIN_CRYPTO_HMAC_SHA256_H 7 | 8 | #include "crypto/sha256.h" 9 | 10 | #include 11 | #include 12 | 13 | /** A hasher class for HMAC-SHA-512. */ 14 | class CHMAC_SHA256 15 | { 16 | private: 17 | CSHA256 outer; 18 | CSHA256 inner; 19 | 20 | public: 21 | static const size_t OUTPUT_SIZE = 32; 22 | 23 | CHMAC_SHA256(const unsigned char* key, size_t keylen); 24 | CHMAC_SHA256& Write(const unsigned char* data, size_t len) 25 | { 26 | inner.Write(data, len); 27 | return *this; 28 | } 29 | void Finalize(unsigned char hash[OUTPUT_SIZE]); 30 | }; 31 | 32 | #endif // BITCOIN_CRYPTO_HMAC_SHA256_H 33 | -------------------------------------------------------------------------------- /src/crypto/hmac_sha512.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_CRYPTO_HMAC_SHA512_H 6 | #define BITCOIN_CRYPTO_HMAC_SHA512_H 7 | 8 | #include "crypto/sha512.h" 9 | 10 | #include 11 | #include 12 | 13 | /** A hasher class for HMAC-SHA-512. */ 14 | class CHMAC_SHA512 15 | { 16 | private: 17 | CSHA512 outer; 18 | CSHA512 inner; 19 | 20 | public: 21 | static const size_t OUTPUT_SIZE = 64; 22 | 23 | CHMAC_SHA512(const unsigned char* key, size_t keylen); 24 | CHMAC_SHA512& Write(const unsigned char* data, size_t len) 25 | { 26 | inner.Write(data, len); 27 | return *this; 28 | } 29 | void Finalize(unsigned char hash[OUTPUT_SIZE]); 30 | }; 31 | 32 | #endif // BITCOIN_CRYPTO_HMAC_SHA512_H 33 | -------------------------------------------------------------------------------- /src/leveldb/db/db_iter.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_DB_DB_ITER_H_ 6 | #define STORAGE_LEVELDB_DB_DB_ITER_H_ 7 | 8 | #include 9 | #include "leveldb/db.h" 10 | #include "db/dbformat.h" 11 | 12 | namespace leveldb { 13 | 14 | class DBImpl; 15 | 16 | // Return a new iterator that converts internal keys (yielded by 17 | // "*internal_iter") that were live at the specified "sequence" number 18 | // into appropriate user keys. 19 | extern Iterator* NewDBIterator( 20 | DBImpl* db, 21 | const Comparator* user_key_comparator, 22 | Iterator* internal_iter, 23 | SequenceNumber sequence, 24 | uint32_t seed); 25 | 26 | } // namespace leveldb 27 | 28 | #endif // STORAGE_LEVELDB_DB_DB_ITER_H_ 29 | -------------------------------------------------------------------------------- /src/script/sigcache.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2014 The Bitcoin Core developers 3 | // Distributed under the MIT software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | #ifndef BITCOIN_SCRIPT_SIGCACHE_H 7 | #define BITCOIN_SCRIPT_SIGCACHE_H 8 | 9 | #include "script/interpreter.h" 10 | 11 | #include 12 | 13 | class CPubKey; 14 | 15 | class CachingTransactionSignatureChecker : public TransactionSignatureChecker 16 | { 17 | private: 18 | bool store; 19 | 20 | public: 21 | CachingTransactionSignatureChecker(const CTransaction* txToIn, unsigned int nInIn, bool storeIn=true) : TransactionSignatureChecker(txToIn, nInIn), store(storeIn) {} 22 | 23 | bool VerifySignature(const std::vector& vchSig, const CPubKey& vchPubKey, const uint256& sighash) const; 24 | }; 25 | 26 | #endif // BITCOIN_SCRIPT_SIGCACHE_H 27 | -------------------------------------------------------------------------------- /src/qt/verticallabel.cpp: -------------------------------------------------------------------------------- 1 | #include "verticallabel.h" 2 | 3 | #include 4 | 5 | VerticalLabel::VerticalLabel(QWidget* parent) 6 | : QLabel(parent) 7 | { 8 | } 9 | 10 | VerticalLabel::VerticalLabel(const QString& text, QWidget* parent) 11 | : QLabel(text, parent) 12 | { 13 | } 14 | 15 | VerticalLabel::~VerticalLabel() 16 | { 17 | } 18 | 19 | void VerticalLabel::paintEvent(QPaintEvent*) 20 | { 21 | QPainter painter(this); 22 | painter.setPen(Qt::black); 23 | painter.setBrush(Qt::Dense1Pattern); 24 | painter.translate(width() / 2, height()); 25 | painter.rotate(270); 26 | 27 | painter.drawText(0, 0, text()); 28 | } 29 | 30 | QSize VerticalLabel::minimumSizeHint() const 31 | { 32 | QSize s = QLabel::minimumSizeHint(); 33 | return QSize(s.height(), s.width()); 34 | } 35 | 36 | QSize VerticalLabel::sizeHint() const 37 | { 38 | QSize s = QLabel::sizeHint(); 39 | return QSize(s.height(), s.width()); 40 | } 41 | -------------------------------------------------------------------------------- /qa/rpc-tests/send.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright (c) 2014 The Bitcoin Core developers 3 | # Distributed under the MIT software license, see the accompanying 4 | # file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | TIMEOUT=10 6 | SIGNAL=HUP 7 | PIDFILE=.send.pid 8 | if [ $# -eq 0 ]; then 9 | echo -e "Usage:\t$0 " 10 | echo -e "\tRuns and wait ${TIMEOUT} seconds or until SIG${SIGNAL} is received." 11 | echo -e "\tReturns: 0 if SIG${SIGNAL} is received, 1 otherwise." 12 | echo -e "Or:\t$0 -STOP" 13 | echo -e "\tsends SIG${SIGNAL} to running send.sh" 14 | exit 0 15 | fi 16 | 17 | if [ $1 = "-STOP" ]; then 18 | if [ -s ${PIDFILE} ]; then 19 | kill -s ${SIGNAL} $(<$PIDFILE 2>/dev/null) 2>/dev/null 20 | fi 21 | exit 0 22 | fi 23 | 24 | trap '[[ ${PID} ]] && kill ${PID}' ${SIGNAL} 25 | trap 'rm -f ${PIDFILE}' EXIT 26 | echo $$ > ${PIDFILE} 27 | "$@" 28 | sleep ${TIMEOUT} & PID=$! 29 | wait ${PID} && exit 1 30 | 31 | exit 0 32 | -------------------------------------------------------------------------------- /depends/packages/protobuf.mk: -------------------------------------------------------------------------------- 1 | package=protobuf 2 | $(package)_version=$(native_$(package)_version) 3 | $(package)_download_path=$(native_$(package)_download_path) 4 | $(package)_file_name=$(native_$(package)_file_name) 5 | $(package)_sha256_hash=$(native_$(package)_sha256_hash) 6 | $(package)_dependencies=native_$(package) 7 | 8 | define $(package)_set_vars 9 | $(package)_config_opts=--disable-shared --with-protoc=$(build_prefix)/bin/protoc 10 | $(package)_config_opts_linux=--with-pic 11 | endef 12 | 13 | define $(package)_config_cmds 14 | $($(package)_autoconf) 15 | endef 16 | 17 | define $(package)_build_cmds 18 | $(MAKE) -C src libprotobuf.la 19 | endef 20 | 21 | define $(package)_stage_cmds 22 | $(MAKE) DESTDIR=$($(package)_staging_dir) -C src install-libLTLIBRARIES install-nobase_includeHEADERS &&\ 23 | $(MAKE) DESTDIR=$($(package)_staging_dir) install-pkgconfigDATA 24 | endef 25 | 26 | define $(package)_postprocess_cmds 27 | rm lib/libprotoc.a 28 | endef 29 | -------------------------------------------------------------------------------- /src/leveldb/port/win/stdint.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | // MSVC didn't ship with this file until the 2010 version. 6 | 7 | #ifndef STORAGE_LEVELDB_PORT_WIN_STDINT_H_ 8 | #define STORAGE_LEVELDB_PORT_WIN_STDINT_H_ 9 | 10 | #if !defined(_MSC_VER) 11 | #error This file should only be included when compiling with MSVC. 12 | #endif 13 | 14 | // Define C99 equivalent types. 15 | typedef signed char int8_t; 16 | typedef signed short int16_t; 17 | typedef signed int int32_t; 18 | typedef signed long long int64_t; 19 | typedef unsigned char uint8_t; 20 | typedef unsigned short uint16_t; 21 | typedef unsigned int uint32_t; 22 | typedef unsigned long long uint64_t; 23 | 24 | #endif // STORAGE_LEVELDB_PORT_WIN_STDINT_H_ 25 | -------------------------------------------------------------------------------- /src/wallet/wallet_ismine.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2014 The Bitcoin Core developers 3 | // Distributed under the MIT software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | #ifndef BITCOIN_WALLET_WALLET_ISMINE_H 7 | #define BITCOIN_WALLET_WALLET_ISMINE_H 8 | 9 | #include "key.h" 10 | #include "script/standard.h" 11 | 12 | class CKeyStore; 13 | class CScript; 14 | 15 | /** IsMine() return codes */ 16 | enum isminetype 17 | { 18 | ISMINE_NO = 0, 19 | ISMINE_WATCH_ONLY = 1, 20 | ISMINE_SPENDABLE = 2, 21 | ISMINE_ALL = ISMINE_WATCH_ONLY | ISMINE_SPENDABLE 22 | }; 23 | /** used for bitflags of isminetype */ 24 | typedef uint8_t isminefilter; 25 | 26 | isminetype IsMine(const CKeyStore& keystore, const CScript& scriptPubKey); 27 | isminetype IsMine(const CKeyStore& keystore, const CTxDestination& dest); 28 | 29 | #endif // BITCOIN_WALLET_WALLET_ISMINE_H 30 | -------------------------------------------------------------------------------- /src/compat/glibc_compat.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #if defined(HAVE_CONFIG_H) 6 | #include "config/bitcoin-config.h" 7 | #endif 8 | 9 | #include 10 | 11 | #if defined(HAVE_SYS_SELECT_H) 12 | #include 13 | #endif 14 | 15 | // Prior to GLIBC_2.14, memcpy was aliased to memmove. 16 | extern "C" void* memmove(void* a, const void* b, size_t c); 17 | extern "C" void* memcpy(void* a, const void* b, size_t c) 18 | { 19 | return memmove(a, b, c); 20 | } 21 | 22 | extern "C" void __chk_fail(void) __attribute__((__noreturn__)); 23 | extern "C" FDELT_TYPE __fdelt_warn(FDELT_TYPE a) 24 | { 25 | if (a >= FD_SETSIZE) 26 | __chk_fail(); 27 | return a / __NFDBITS; 28 | } 29 | extern "C" FDELT_TYPE __fdelt_chk(FDELT_TYPE) __attribute__((weak, alias("__fdelt_warn"))); 30 | -------------------------------------------------------------------------------- /doc/release-notes/RELEASE_NOTES_1.8.2.md: -------------------------------------------------------------------------------- 1 | # Dogecoin Core 1.8.2 2 | 3 | Dogecoin Core 1.8.2 is a bugfix release. It updates OpenSSL to 1.0.1l, mainly fixing security issues. 4 | 5 | ## Dogecoin Core Release Notes 6 | 7 | * Update to OpenSSL 1.0.1l 8 | 9 | 10 | ## OpenSSL Warning 11 | 12 | The main takeaway is that builds from http://dogecoin.com are not affected. But if you build your own version, 13 | please make sure you update to 1.8.2 **before** updating your OpenSSL! 14 | 15 | Please refer to this section in the Bitcoin Core release notes for further info: https://github.com/bitcoin/bitcoin/blob/0.9/doc/release-notes.md#openssl-warning 16 | 17 | 18 | ## Credits 19 | 20 | Listed in strictly alphabetical order, using name listed in Github. This 21 | includes those whose contributions to Bitcoin Core have been merged 22 | into Dogecoin Core: 23 | 24 | * Cory Fields 25 | * langerhans 26 | * Patrick Lodder 27 | * Gregory Maxwell 28 | * Ross Nicoll 29 | * Wladimir J. van der Laan 30 | -------------------------------------------------------------------------------- /doc/README_windows.txt: -------------------------------------------------------------------------------- 1 | Dogecoin Core 1.10 2 | ================== 3 | 4 | Intro 5 | ----- 6 | Dogecoin is a free open source peer-to-peer electronic cash system that is 7 | completely decentralized, without the need for a central server or trusted 8 | parties. Users hold the crypto keys to their own money and transact directly 9 | with each other, with the help of a P2P network to check for double-spending. 10 | 11 | 12 | Setup 13 | ----- 14 | Unpack the files into a directory and run dogecoin-qt.exe. 15 | 16 | Dogecoin Core is the original Dogecoin client and it builds the backbone of the network. 17 | However, it downloads and stores the entire history of Dogecoin transactions; 18 | depending on the speed of your computer and network connection, the synchronization 19 | process can take anywhere from a few hours to a day or more. 20 | 21 | See the Dogecoin wiki at: 22 | https://www.reddit.com/r/dogecoin/wiki/dogecoincoreguide 23 | for more help and information. 24 | -------------------------------------------------------------------------------- /src/leveldb/table/merger.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_TABLE_MERGER_H_ 6 | #define STORAGE_LEVELDB_TABLE_MERGER_H_ 7 | 8 | namespace leveldb { 9 | 10 | class Comparator; 11 | class Iterator; 12 | 13 | // Return an iterator that provided the union of the data in 14 | // children[0,n-1]. Takes ownership of the child iterators and 15 | // will delete them when the result iterator is deleted. 16 | // 17 | // The result does no duplicate suppression. I.e., if a particular 18 | // key is present in K child iterators, it will be yielded K times. 19 | // 20 | // REQUIRES: n >= 0 21 | extern Iterator* NewMergingIterator( 22 | const Comparator* comparator, Iterator** children, int n); 23 | 24 | } // namespace leveldb 25 | 26 | #endif // STORAGE_LEVELDB_TABLE_MERGER_H_ 27 | -------------------------------------------------------------------------------- /src/qt/test/paymentservertests.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_QT_TEST_PAYMENTSERVERTESTS_H 6 | #define BITCOIN_QT_TEST_PAYMENTSERVERTESTS_H 7 | 8 | #include "../paymentserver.h" 9 | 10 | #include 11 | #include 12 | 13 | class PaymentServerTests : public QObject 14 | { 15 | Q_OBJECT 16 | 17 | private slots: 18 | void paymentServerTests(); 19 | }; 20 | 21 | // Dummy class to receive paymentserver signals. 22 | // If SendCoinsRecipient was a proper QObject, then 23 | // we could use QSignalSpy... but it's not. 24 | class RecipientCatcher : public QObject 25 | { 26 | Q_OBJECT 27 | 28 | public slots: 29 | void getRecipient(SendCoinsRecipient r); 30 | 31 | public: 32 | SendCoinsRecipient recipient; 33 | }; 34 | 35 | #endif // BITCOIN_QT_TEST_PAYMENTSERVERTESTS_H 36 | -------------------------------------------------------------------------------- /src/test/base64_tests.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2013 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #include "utilstrencodings.h" 6 | #include "test/test_bitcoin.h" 7 | 8 | #include 9 | 10 | BOOST_FIXTURE_TEST_SUITE(base64_tests, BasicTestingSetup) 11 | 12 | BOOST_AUTO_TEST_CASE(base64_testvectors) 13 | { 14 | static const std::string vstrIn[] = {"","f","fo","foo","foob","fooba","foobar"}; 15 | static const std::string vstrOut[] = {"","Zg==","Zm8=","Zm9v","Zm9vYg==","Zm9vYmE=","Zm9vYmFy"}; 16 | for (unsigned int i=0; i 9 | #include "leveldb/env.h" 10 | #include "leveldb/status.h" 11 | 12 | namespace leveldb { 13 | 14 | // Dump the contents of the file named by fname in text format to 15 | // *dst. Makes a sequence of dst->Append() calls; each call is passed 16 | // the newline-terminated text corresponding to a single item found 17 | // in the file. 18 | // 19 | // Returns a non-OK result if fname does not name a leveldb storage 20 | // file, or if the file cannot be read. 21 | Status DumpFile(Env* env, const std::string& fname, WritableFile* dst); 22 | 23 | } // namespace leveldb 24 | 25 | #endif // STORAGE_LEVELDB_INCLUDE_DUMPFILE_H_ 26 | -------------------------------------------------------------------------------- /contrib/test-patches/temp-revert-2.patch: -------------------------------------------------------------------------------- 1 | commit cfae26916dba311f6f75d444301c1f9362267c3e 2 | Author: Matt Corallo 3 | Date: Sun Mar 24 20:45:50 2013 -0400 4 | 5 | Revert "Checkpoint at first block in 11 March chain fork" 6 | 7 | This reverts commit f817c496a1482d05b22c8e539de67f07db1c09d9. 8 | 9 | diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp 10 | index 62234b9..9b11f0b 100644 11 | --- a/src/checkpoints.cpp 12 | +++ b/src/checkpoints.cpp 13 | @@ -44,7 +44,6 @@ namespace Checkpoints 14 | (193000, uint256("0x000000000000059f452a5f7340de6682a977387c17010ff6e6c3bd83ca8b1317")) 15 | (210000, uint256("0x000000000000048b95347e83192f69cf0366076336c639f9b7228e9ba171342e")) 16 | (216116, uint256("0x00000000000001b4f4b433e81ee46494af945cf96014816a4e2370f11b23df4e")) 17 | - (225430, uint256("0x00000000000001c108384350f74090433e7fcf79a606b8e797f065b130575932")) 18 | ; 19 | static const CCheckpointData data = { 20 | &mapCheckpoints, 21 | -------------------------------------------------------------------------------- /src/test/base32_tests.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2013 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #include "utilstrencodings.h" 6 | #include "test/test_bitcoin.h" 7 | 8 | #include 9 | 10 | BOOST_FIXTURE_TEST_SUITE(base32_tests, BasicTestingSetup) 11 | 12 | BOOST_AUTO_TEST_CASE(base32_testvectors) 13 | { 14 | static const std::string vstrIn[] = {"","f","fo","foo","foob","fooba","foobar"}; 15 | static const std::string vstrOut[] = {"","my======","mzxq====","mzxw6===","mzxw6yq=","mzxw6ytb","mzxw6ytboi======"}; 16 | for (unsigned int i=0; i 9 | 10 | /** Macintosh-specific notification handler (supports UserNotificationCenter and Growl). 11 | */ 12 | class MacNotificationHandler : public QObject 13 | { 14 | Q_OBJECT 15 | 16 | public: 17 | /** shows a 10.8+ UserNotification in the UserNotificationCenter 18 | */ 19 | void showNotification(const QString &title, const QString &text); 20 | 21 | /** executes AppleScript */ 22 | void sendAppleScript(const QString &script); 23 | 24 | /** check if OS can handle UserNotifications */ 25 | bool hasUserNotificationCenterSupport(void); 26 | static MacNotificationHandler *instance(); 27 | }; 28 | 29 | 30 | #endif // BITCOIN_QT_MACNOTIFICATIONHANDLER_H 31 | -------------------------------------------------------------------------------- /depends/patches/qt/mac-qmake.conf: -------------------------------------------------------------------------------- 1 | MAKEFILE_GENERATOR = UNIX 2 | CONFIG += app_bundle incremental global_init_link_order lib_version_first plugin_no_soname absolute_library_soname 3 | QMAKE_INCREMENTAL_STYLE = sublib 4 | include(../common/macx.conf) 5 | include(../common/gcc-base-mac.conf) 6 | include(../common/clang.conf) 7 | include(../common/clang-mac.conf) 8 | QMAKE_MAC_SDK_PATH=$${MAC_SDK_PATH} 9 | QMAKE_XCODE_VERSION=4.3 10 | QMAKE_XCODE_DEVELOPER_PATH=/Developer 11 | QMAKE_MACOSX_DEPLOYMENT_TARGET = $${MAC_MIN_VERSION} 12 | QMAKE_MAC_SDK=macosx 13 | QMAKE_MAC_SDK.macosx.path = $$QMAKE_MAC_SDK_PATH 14 | QMAKE_MAC_SDK.macosx.platform_name = macosx 15 | QMAKE_CFLAGS += -target $${MAC_TARGET} 16 | QMAKE_OBJECTIVE_CFLAGS += $$QMAKE_CFLAGS 17 | QMAKE_CXXFLAGS += $$QMAKE_CFLAGS 18 | QMAKE_LFLAGS += -target $${MAC_TARGET} -mlinker-version=$${MAC_LD64_VERSION} 19 | QMAKE_AR = $${CROSS_COMPILE}ar cq 20 | QMAKE_RANLIB=$${CROSS_COMPILE}ranlib 21 | QMAKE_LIBTOOL=$${CROSS_COMPILE}libtool 22 | QMAKE_INSTALL_NAME_TOOL=$${CROSS_COMPILE}install_name_tool 23 | load(qt_config) 24 | -------------------------------------------------------------------------------- /src/qt/res/src/tx_inout.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 11 | 12 | -------------------------------------------------------------------------------- /depends/packages/bdb.mk: -------------------------------------------------------------------------------- 1 | package=bdb 2 | $(package)_version=5.1.29 3 | $(package)_download_path=http://download.oracle.com/berkeley-db 4 | $(package)_file_name=db-$($(package)_version).NC.tar.gz 5 | $(package)_sha256_hash=08238e59736d1aacdd47cfb8e68684c695516c37f4fbe1b8267dde58dc3a576c 6 | $(package)_build_subdir=build_unix 7 | 8 | define $(package)_set_vars 9 | $(package)_config_opts=--disable-shared --enable-cxx --disable-replication 10 | $(package)_config_opts_mingw32=--enable-mingw 11 | $(package)_config_opts_linux=--with-pic 12 | endef 13 | 14 | define $(package)_preprocess_cmds 15 | sed -i.old 's/__atomic_compare_exchange/__atomic_compare_exchange_db/' src/dbinc/atomic.h && \ 16 | sed -i.old 's/WinIoCtl\.h/winioctl\.h/g' src/dbinc/win_db.h 17 | endef 18 | 19 | define $(package)_config_cmds 20 | ../dist/$($(package)_autoconf) 21 | endef 22 | 23 | define $(package)_build_cmds 24 | $(MAKE) libdb_cxx-5.1.a libdb-5.1.a 25 | endef 26 | 27 | define $(package)_stage_cmds 28 | $(MAKE) DESTDIR=$($(package)_staging_dir) install_lib install_include 29 | endef 30 | -------------------------------------------------------------------------------- /src/crypto/hmac_sha256.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #include "crypto/hmac_sha256.h" 6 | 7 | #include 8 | 9 | CHMAC_SHA256::CHMAC_SHA256(const unsigned char* key, size_t keylen) 10 | { 11 | unsigned char rkey[64]; 12 | if (keylen <= 64) { 13 | memcpy(rkey, key, keylen); 14 | memset(rkey + keylen, 0, 64 - keylen); 15 | } else { 16 | CSHA256().Write(key, keylen).Finalize(rkey); 17 | memset(rkey + 32, 0, 32); 18 | } 19 | 20 | for (int n = 0; n < 64; n++) 21 | rkey[n] ^= 0x5c; 22 | outer.Write(rkey, 64); 23 | 24 | for (int n = 0; n < 64; n++) 25 | rkey[n] ^= 0x5c ^ 0x36; 26 | inner.Write(rkey, 64); 27 | } 28 | 29 | void CHMAC_SHA256::Finalize(unsigned char hash[OUTPUT_SIZE]) 30 | { 31 | unsigned char temp[32]; 32 | inner.Finalize(temp); 33 | outer.Write(temp, 32).Finalize(hash); 34 | } 35 | -------------------------------------------------------------------------------- /src/qt/winshutdownmonitor.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_QT_WINSHUTDOWNMONITOR_H 6 | #define BITCOIN_QT_WINSHUTDOWNMONITOR_H 7 | 8 | #ifdef WIN32 9 | #include 10 | #include 11 | 12 | #if QT_VERSION >= 0x050000 13 | #include // for HWND 14 | 15 | #include 16 | 17 | class WinShutdownMonitor : public QAbstractNativeEventFilter 18 | { 19 | public: 20 | /** Implements QAbstractNativeEventFilter interface for processing Windows messages */ 21 | bool nativeEventFilter(const QByteArray &eventType, void *pMessage, long *pnResult); 22 | 23 | /** Register the reason for blocking shutdown on Windows to allow clean client exit */ 24 | static void registerShutdownBlockReason(const QString& strReason, const HWND& mainWinId); 25 | }; 26 | #endif 27 | #endif 28 | 29 | #endif // BITCOIN_QT_WINSHUTDOWNMONITOR_H 30 | -------------------------------------------------------------------------------- /src/crypto/hmac_sha512.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #include "crypto/hmac_sha512.h" 6 | 7 | #include 8 | 9 | CHMAC_SHA512::CHMAC_SHA512(const unsigned char* key, size_t keylen) 10 | { 11 | unsigned char rkey[128]; 12 | if (keylen <= 128) { 13 | memcpy(rkey, key, keylen); 14 | memset(rkey + keylen, 0, 128 - keylen); 15 | } else { 16 | CSHA512().Write(key, keylen).Finalize(rkey); 17 | memset(rkey + 64, 0, 64); 18 | } 19 | 20 | for (int n = 0; n < 128; n++) 21 | rkey[n] ^= 0x5c; 22 | outer.Write(rkey, 128); 23 | 24 | for (int n = 0; n < 128; n++) 25 | rkey[n] ^= 0x5c ^ 0x36; 26 | inner.Write(rkey, 128); 27 | } 28 | 29 | void CHMAC_SHA512::Finalize(unsigned char hash[OUTPUT_SIZE]) 30 | { 31 | unsigned char temp[64]; 32 | inner.Finalize(temp); 33 | outer.Write(temp, 64).Finalize(hash); 34 | } 35 | -------------------------------------------------------------------------------- /src/leveldb/db/log_format.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | // 5 | // Log format information shared by reader and writer. 6 | // See ../doc/log_format.txt for more detail. 7 | 8 | #ifndef STORAGE_LEVELDB_DB_LOG_FORMAT_H_ 9 | #define STORAGE_LEVELDB_DB_LOG_FORMAT_H_ 10 | 11 | namespace leveldb { 12 | namespace log { 13 | 14 | enum RecordType { 15 | // Zero is reserved for preallocated files 16 | kZeroType = 0, 17 | 18 | kFullType = 1, 19 | 20 | // For fragments 21 | kFirstType = 2, 22 | kMiddleType = 3, 23 | kLastType = 4 24 | }; 25 | static const int kMaxRecordType = kLastType; 26 | 27 | static const int kBlockSize = 32768; 28 | 29 | // Header is checksum (4 bytes), length (2 bytes), type (1 byte). 30 | static const int kHeaderSize = 4 + 2 + 1; 31 | 32 | } // namespace log 33 | } // namespace leveldb 34 | 35 | #endif // STORAGE_LEVELDB_DB_LOG_FORMAT_H_ 36 | -------------------------------------------------------------------------------- /share/qt/make_spinner.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # W.J. van der Laan, 2011 3 | # Make spinning animation from a .png 4 | # Requires imagemagick 6.7+ 5 | from __future__ import division 6 | from os import path 7 | from PIL import Image 8 | from subprocess import Popen 9 | 10 | SRC='img/reload.png' 11 | TMPDIR='../../src/qt/res/movies/' 12 | TMPNAME='spinner-%03i.png' 13 | NUMFRAMES=35 14 | FRAMERATE=10.0 15 | CONVERT='convert' 16 | CLOCKWISE=True 17 | DSIZE=(16,16) 18 | 19 | im_src = Image.open(SRC) 20 | 21 | if CLOCKWISE: 22 | im_src = im_src.transpose(Image.FLIP_LEFT_RIGHT) 23 | 24 | def frame_to_filename(frame): 25 | return path.join(TMPDIR, TMPNAME % frame) 26 | 27 | frame_files = [] 28 | for frame in xrange(NUMFRAMES): 29 | rotation = (frame + 0.5) / NUMFRAMES * 360.0 30 | if CLOCKWISE: 31 | rotation = -rotation 32 | im_new = im_src.rotate(rotation, Image.BICUBIC) 33 | im_new.thumbnail(DSIZE, Image.ANTIALIAS) 34 | outfile = frame_to_filename(frame) 35 | im_new.save(outfile, 'png') 36 | frame_files.append(outfile) 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/init.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2014 The Bitcoin Core developers 3 | // Distributed under the MIT software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | #ifndef BITCOIN_INIT_H 7 | #define BITCOIN_INIT_H 8 | 9 | #include 10 | 11 | class CScheduler; 12 | class CWallet; 13 | 14 | namespace boost 15 | { 16 | class thread_group; 17 | } // namespace boost 18 | 19 | extern CWallet* pwalletMain; 20 | 21 | void StartShutdown(); 22 | bool ShutdownRequested(); 23 | void Shutdown(); 24 | bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler); 25 | 26 | /** The help message mode determines what help message to show */ 27 | enum HelpMessageMode { 28 | HMM_BITCOIND, 29 | HMM_BITCOIN_QT 30 | }; 31 | 32 | /** Help for options shared between UI and daemon (for -help) */ 33 | std::string HelpMessage(HelpMessageMode mode); 34 | /** Returns licensing information (for -version) */ 35 | std::string LicenseInfo(); 36 | 37 | #endif // BITCOIN_INIT_H 38 | -------------------------------------------------------------------------------- /src/dogecoin.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 The Dogecoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #include "amount.h" 6 | #include "chain.h" 7 | #include "chainparams.h" 8 | 9 | bool AllowDigishieldMinDifficultyForBlock(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params& params); 10 | CAmount GetDogecoinBlockSubsidy(int nHeight, const Consensus::Params& consensusParams, uint256 prevHash); 11 | unsigned int CalculateDogecoinNextWorkRequired(const CBlockIndex* pindexLast, int64_t nLastRetargetTime, const Consensus::Params& params); 12 | 13 | /** 14 | * Check proof-of-work of a block header, taking auxpow into account. 15 | * @param block The block header. 16 | * @param params Consensus parameters. 17 | * @return True iff the PoW is correct. 18 | */ 19 | bool CheckAuxPowProofOfWork(const CBlockHeader& block, const Consensus::Params& params); 20 | 21 | int64_t GetDogecoinDustFee(const std::vector &vout, CFeeRate &baseFeeRate); 22 | -------------------------------------------------------------------------------- /src/qt/bitcoinaddressvalidator.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_QT_BITCOINADDRESSVALIDATOR_H 6 | #define BITCOIN_QT_BITCOINADDRESSVALIDATOR_H 7 | 8 | #include 9 | 10 | /** Base58 entry widget validator, checks for valid characters and 11 | * removes some whitespace. 12 | */ 13 | class BitcoinAddressEntryValidator : public QValidator 14 | { 15 | Q_OBJECT 16 | 17 | public: 18 | explicit BitcoinAddressEntryValidator(QObject *parent); 19 | 20 | State validate(QString &input, int &pos) const; 21 | }; 22 | 23 | /** Bitcoin address widget validator, checks for a valid bitcoin address. 24 | */ 25 | class BitcoinAddressCheckValidator : public QValidator 26 | { 27 | Q_OBJECT 28 | 29 | public: 30 | explicit BitcoinAddressCheckValidator(QObject *parent); 31 | 32 | State validate(QString &input, int &pos) const; 33 | }; 34 | 35 | #endif // BITCOIN_QT_BITCOINADDRESSVALIDATOR_H 36 | -------------------------------------------------------------------------------- /src/qt/res/src/clock_2.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/qt/qvaluecombobox.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2013 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_QT_QVALUECOMBOBOX_H 6 | #define BITCOIN_QT_QVALUECOMBOBOX_H 7 | 8 | #include 9 | #include 10 | 11 | /* QComboBox that can be used with QDataWidgetMapper to select ordinal values from a model. */ 12 | class QValueComboBox : public QComboBox 13 | { 14 | Q_OBJECT 15 | 16 | Q_PROPERTY(QVariant value READ value WRITE setValue NOTIFY valueChanged USER true) 17 | 18 | public: 19 | explicit QValueComboBox(QWidget *parent = 0); 20 | 21 | QVariant value() const; 22 | void setValue(const QVariant &value); 23 | 24 | /** Specify model role to use as ordinal value (defaults to Qt::UserRole) */ 25 | void setRole(int role); 26 | 27 | signals: 28 | void valueChanged(); 29 | 30 | private: 31 | int role; 32 | 33 | private slots: 34 | void handleSelectionChanged(int idx); 35 | }; 36 | 37 | #endif // BITCOIN_QT_QVALUECOMBOBOX_H 38 | -------------------------------------------------------------------------------- /src/leveldb/util/histogram.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_UTIL_HISTOGRAM_H_ 6 | #define STORAGE_LEVELDB_UTIL_HISTOGRAM_H_ 7 | 8 | #include 9 | 10 | namespace leveldb { 11 | 12 | class Histogram { 13 | public: 14 | Histogram() { } 15 | ~Histogram() { } 16 | 17 | void Clear(); 18 | void Add(double value); 19 | void Merge(const Histogram& other); 20 | 21 | std::string ToString() const; 22 | 23 | private: 24 | double min_; 25 | double max_; 26 | double num_; 27 | double sum_; 28 | double sum_squares_; 29 | 30 | enum { kNumBuckets = 154 }; 31 | static const double kBucketLimit[kNumBuckets]; 32 | double buckets_[kNumBuckets]; 33 | 34 | double Median() const; 35 | double Percentile(double p) const; 36 | double Average() const; 37 | double StandardDeviation() const; 38 | }; 39 | 40 | } // namespace leveldb 41 | 42 | #endif // STORAGE_LEVELDB_UTIL_HISTOGRAM_H_ 43 | -------------------------------------------------------------------------------- /src/secp256k1/COPYING: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 Pieter Wuille 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009-2015 The Bitcoin Core developers 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /depends/builders/darwin.mk: -------------------------------------------------------------------------------- 1 | build_darwin_CC: = $(shell xcrun -f clang) 2 | build_darwin_CXX: = $(shell xcrun -f clang++) 3 | build_darwin_AR: = $(shell xcrun -f ar) 4 | build_darwin_RANLIB: = $(shell xcrun -f ranlib) 5 | build_darwin_STRIP: = $(shell xcrun -f strip) 6 | build_darwin_OTOOL: = $(shell xcrun -f otool) 7 | build_darwin_NM: = $(shell xcrun -f nm) 8 | build_darwin_INSTALL_NAME_TOOL:=$(shell xcrun -f install_name_tool) 9 | build_darwin_SHA256SUM = shasum -a 256 10 | build_darwin_DOWNLOAD = curl --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -L -o 11 | 12 | #darwin host on darwin builder. overrides darwin host preferences. 13 | darwin_CC=$(shell xcrun -f clang) -mmacosx-version-min=$(OSX_MIN_VERSION) 14 | darwin_CXX:=$(shell xcrun -f clang++) -mmacosx-version-min=$(OSX_MIN_VERSION) 15 | darwin_AR:=$(shell xcrun -f ar) 16 | darwin_RANLIB:=$(shell xcrun -f ranlib) 17 | darwin_STRIP:=$(shell xcrun -f strip) 18 | darwin_LIBTOOL:=$(shell xcrun -f libtool) 19 | darwin_OTOOL:=$(shell xcrun -f otool) 20 | darwin_NM:=$(shell xcrun -f nm) 21 | darwin_INSTALL_NAME_TOOL:=$(shell xcrun -f install_name_tool) 22 | darwin_native_toolchain= 23 | -------------------------------------------------------------------------------- /src/qt/macdockiconhandler.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2013 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_QT_MACDOCKICONHANDLER_H 6 | #define BITCOIN_QT_MACDOCKICONHANDLER_H 7 | 8 | #include 9 | #include 10 | 11 | QT_BEGIN_NAMESPACE 12 | class QIcon; 13 | class QMenu; 14 | class QWidget; 15 | QT_END_NAMESPACE 16 | 17 | /** Macintosh-specific dock icon handler. 18 | */ 19 | class MacDockIconHandler : public QObject 20 | { 21 | Q_OBJECT 22 | 23 | public: 24 | ~MacDockIconHandler(); 25 | 26 | QMenu *dockMenu(); 27 | void setIcon(const QIcon &icon); 28 | void setMainWindow(QMainWindow *window); 29 | static MacDockIconHandler *instance(); 30 | static void cleanup(); 31 | void handleDockIconClickEvent(); 32 | 33 | signals: 34 | void dockIconClicked(); 35 | 36 | private: 37 | MacDockIconHandler(); 38 | 39 | QWidget *m_dummyWidget; 40 | QMenu *m_dockMenu; 41 | QMainWindow *mainWindow; 42 | }; 43 | 44 | #endif // BITCOIN_QT_MACDOCKICONHANDLER_H 45 | -------------------------------------------------------------------------------- /src/secp256k1/src/testrand.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2013, 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_TESTRAND_H_ 8 | #define _SECP256K1_TESTRAND_H_ 9 | 10 | #if defined HAVE_CONFIG_H 11 | #include "libsecp256k1-config.h" 12 | #endif 13 | 14 | /* A non-cryptographic RNG used only for test infrastructure. */ 15 | 16 | /** Seed the pseudorandom number generator for testing. */ 17 | SECP256K1_INLINE static void secp256k1_rand_seed(const unsigned char *seed16); 18 | 19 | /** Generate a pseudorandom 32-bit number. */ 20 | static uint32_t secp256k1_rand32(void); 21 | 22 | /** Generate a pseudorandom 32-byte array. */ 23 | static void secp256k1_rand256(unsigned char *b32); 24 | 25 | /** Generate a pseudorandom 32-byte array with long sequences of zero and one bits. */ 26 | static void secp256k1_rand256_test(unsigned char *b32); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /src/qt/res/src/clock_1.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 11 | 12 | 15 | 16 | -------------------------------------------------------------------------------- /src/qt/qvalidatedlineedit.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2013 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_QT_QVALIDATEDLINEEDIT_H 6 | #define BITCOIN_QT_QVALIDATEDLINEEDIT_H 7 | 8 | #include 9 | 10 | /** Line edit that can be marked as "invalid" to show input validation feedback. When marked as invalid, 11 | it will get a red background until it is focused. 12 | */ 13 | class QValidatedLineEdit : public QLineEdit 14 | { 15 | Q_OBJECT 16 | 17 | public: 18 | explicit QValidatedLineEdit(QWidget *parent); 19 | void clear(); 20 | void setCheckValidator(const QValidator *v); 21 | 22 | protected: 23 | void focusInEvent(QFocusEvent *evt); 24 | void focusOutEvent(QFocusEvent *evt); 25 | 26 | private: 27 | bool valid; 28 | const QValidator *checkValidator; 29 | 30 | public slots: 31 | void setValid(bool valid); 32 | void setEnabled(bool enabled); 33 | 34 | private slots: 35 | void markValid(); 36 | void checkValidity(); 37 | }; 38 | 39 | #endif // BITCOIN_QT_QVALIDATEDLINEEDIT_H 40 | -------------------------------------------------------------------------------- /doc/release-notes/bitcoin/release-notes-0.6.3.md: -------------------------------------------------------------------------------- 1 | Bitcoin version 0.6.3 is now available for download at: 2 | http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.6.3/ 3 | 4 | This is a bug-fix release, with no new features. 5 | 6 | Please report bugs using the issue tracker at github: 7 | https://github.com/bitcoin/bitcoin/issues 8 | 9 | CHANGE SUMMARY 10 | 11 | Fixed a serious denial-of-service attack that could cause the 12 | bitcoin process to become unresponsive. Thanks to Sergio Lerner 13 | for finding and responsibly reporting the problem. (CVE-2012-3789) 14 | 15 | Optimized the process of checking transaction signatures, to 16 | speed up processing of new block messages and make propagating 17 | blocks across the network faster. 18 | 19 | Fixed an obscure bug that could cause the bitcoin process to get 20 | stuck on an invalid block-chain, if the invalid chain was 21 | hundreds of blocks long. 22 | 23 | Bitcoin-Qt no longer automatically selects the first address 24 | in the address book (Issue #1384). 25 | 26 | Fixed minimize-to-dock behavior of Bitcon-Qt on the Mac. 27 | 28 | Added a block checkpoint at block 185,333 to speed up initial 29 | blockchain download. 30 | -------------------------------------------------------------------------------- /src/json/LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2007 - 2009 John W. Wilkinson 4 | 5 | Permission is hereby granted, free of charge, to any person 6 | obtaining a copy of this software and associated documentation 7 | files (the "Software"), to deal in the Software without 8 | restriction, including without limitation the rights to use, 9 | copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the 11 | Software is furnished to do so, subject to the following 12 | conditions: 13 | 14 | The above copyright notice and this permission notice shall be 15 | included in all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 19 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 20 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 21 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 23 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 24 | OTHER DEALINGS IN THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /depends/packages/libxcb.mk: -------------------------------------------------------------------------------- 1 | package=libxcb 2 | $(package)_version=1.10 3 | $(package)_download_path=http://xcb.freedesktop.org/dist 4 | $(package)_file_name=$(package)-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=98d9ab05b636dd088603b64229dd1ab2d2cc02ab807892e107d674f9c3f2d5b5 6 | $(package)_dependencies=xcb_proto libXau xproto 7 | 8 | define $(package)_set_vars 9 | $(package)_config_opts=--disable-static 10 | endef 11 | 12 | define $(package)_preprocess_cmds 13 | sed "s/pthread-stubs//" -i configure 14 | endef 15 | 16 | # Don't install xcb headers to the default path in order to work around a qt 17 | # build issue: https://bugreports.qt.io/browse/QTBUG-34748 18 | # When using qt's internal libxcb, it may end up finding the real headers in 19 | # depends staging. Use a non-default path to avoid that. 20 | 21 | define $(package)_config_cmds 22 | $($(package)_autoconf) --includedir=$(host_prefix)/include/xcb-shared 23 | endef 24 | 25 | define $(package)_build_cmds 26 | $(MAKE) 27 | endef 28 | 29 | define $(package)_stage_cmds 30 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 31 | endef 32 | 33 | define $(package)_postprocess_cmds 34 | rm -rf share/man share/doc 35 | endef 36 | -------------------------------------------------------------------------------- /src/test/timedata_tests.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | // 5 | #include "timedata.h" 6 | #include "test/test_bitcoin.h" 7 | 8 | #include 9 | 10 | using namespace std; 11 | 12 | BOOST_FIXTURE_TEST_SUITE(timedata_tests, BasicTestingSetup) 13 | 14 | BOOST_AUTO_TEST_CASE(util_MedianFilter) 15 | { 16 | CMedianFilter filter(5, 15); 17 | 18 | BOOST_CHECK_EQUAL(filter.median(), 15); 19 | 20 | filter.input(20); // [15 20] 21 | BOOST_CHECK_EQUAL(filter.median(), 17); 22 | 23 | filter.input(30); // [15 20 30] 24 | BOOST_CHECK_EQUAL(filter.median(), 20); 25 | 26 | filter.input(3); // [3 15 20 30] 27 | BOOST_CHECK_EQUAL(filter.median(), 17); 28 | 29 | filter.input(7); // [3 7 15 20 30] 30 | BOOST_CHECK_EQUAL(filter.median(), 15); 31 | 32 | filter.input(18); // [3 7 18 20 30] 33 | BOOST_CHECK_EQUAL(filter.median(), 18); 34 | 35 | filter.input(0); // [0 3 7 18 30] 36 | BOOST_CHECK_EQUAL(filter.median(), 7); 37 | } 38 | 39 | BOOST_AUTO_TEST_SUITE_END() 40 | -------------------------------------------------------------------------------- /qa/rpc-tests/reindex.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python2 2 | # Copyright (c) 2014 The Bitcoin Core developers 3 | # Distributed under the MIT software license, see the accompanying 4 | # file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | # 7 | # Test -reindex with CheckBlockIndex 8 | # 9 | from test_framework.test_framework import BitcoinTestFramework 10 | from test_framework.util import * 11 | import os.path 12 | 13 | class ReindexTest(BitcoinTestFramework): 14 | 15 | def setup_chain(self): 16 | print("Initializing test directory "+self.options.tmpdir) 17 | initialize_chain_clean(self.options.tmpdir, 1) 18 | 19 | def setup_network(self): 20 | self.nodes = [] 21 | self.is_network_split = False 22 | self.nodes.append(start_node(0, self.options.tmpdir)) 23 | 24 | def run_test(self): 25 | self.nodes[0].generate(3) 26 | stop_node(self.nodes[0], 0) 27 | wait_bitcoinds() 28 | self.nodes[0]=start_node(0, self.options.tmpdir, ["-debug", "-reindex", "-checkblockindex=1"]) 29 | assert_equal(self.nodes[0].getblockcount(), 3) 30 | print "Success" 31 | 32 | if __name__ == '__main__': 33 | ReindexTest().main() 34 | -------------------------------------------------------------------------------- /src/qt/res/src/clock_3.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 11 | 12 | 15 | 16 | -------------------------------------------------------------------------------- /depends/hosts/default.mk: -------------------------------------------------------------------------------- 1 | default_host_CC = $(host_toolchain)gcc 2 | default_host_CXX = $(host_toolchain)g++ 3 | default_host_AR = $(host_toolchain)ar 4 | default_host_RANLIB = $(host_toolchain)ranlib 5 | default_host_STRIP = $(host_toolchain)strip 6 | default_host_LIBTOOL = $(host_toolchain)libtool 7 | default_host_INSTALL_NAME_TOOL = $(host_toolchain)install_name_tool 8 | default_host_OTOOL = $(host_toolchain)otool 9 | default_host_NM = $(host_toolchain)nm 10 | 11 | define add_host_tool_func 12 | $(host_os)_$1?=$$(default_host_$1) 13 | $(host_arch)_$(host_os)_$1?=$$($(host_os)_$1) 14 | $(host_arch)_$(host_os)_$(release_type)_$1?=$$($(host_os)_$1) 15 | host_$1=$$($(host_arch)_$(host_os)_$1) 16 | endef 17 | 18 | define add_host_flags_func 19 | $(host_arch)_$(host_os)_$1 += $($(host_os)_$1) 20 | $(host_arch)_$(host_os)_$(release_type)_$1 += $($(host_os)_$(release_type)_$1) 21 | host_$1 = $$($(host_arch)_$(host_os)_$1) 22 | host_$(release_type)_$1 = $$($(host_arch)_$(host_os)_$(release_type)_$1) 23 | endef 24 | 25 | $(foreach tool,CC CXX AR RANLIB STRIP NM LIBTOOL OTOOL INSTALL_NAME_TOOL,$(eval $(call add_host_tool_func,$(tool)))) 26 | $(foreach flags,CFLAGS CXXFLAGS CPPFLAGS LDFLAGS, $(eval $(call add_host_flags_func,$(flags)))) 27 | -------------------------------------------------------------------------------- /src/qt/res/src/clock_0.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 11 | 12 | 14 | 15 | -------------------------------------------------------------------------------- /doc/release-notes/RELEASE_NOTES_1.8.3.md: -------------------------------------------------------------------------------- 1 | # Dogecoin Core 1.8.3 2 | 3 | Dogecoin Core 1.8.3 is a security release. It fixes issues in regards to an upcoming announcement of possible DoS vulnerabilities. 4 | See [the announcement on the bitcoin-dev mailing list](https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2015-June/009135.html) for reference. 5 | It is strongly recommended to upgrade your installation in case you run a node open to inbound connections from the internet. 6 | If your installation is not open to incoming connections this update is not mandatory, but we still recommend keeping your client up to date. 7 | 8 | ## Dogecoin Core Release Notes 9 | 10 | * Pull in patches from usptream to mitigate the risk of a DoS attack. 11 | * Update the DNS seeds for more reliable bootstrapping of the initial peer discovery. 12 | * Update the list of fixed nodes, in case all other means of peer discovery fail. 13 | 14 | ## Credits 15 | 16 | Listed in strictly alphabetical order, using name listed in Github. This 17 | includes those whose contributions to Bitcoin Core have been merged 18 | into this Dogecoin Core release: 19 | 20 | * P. Kaufmann 21 | * Max K. 22 | * Ross Nicoll 23 | * Wladimir J. van der Laan 24 | * Pieter Wuille 25 | -------------------------------------------------------------------------------- /src/qt/networkstyle.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_QT_NETWORKSTYLE_H 6 | #define BITCOIN_QT_NETWORKSTYLE_H 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | /* Coin network-specific GUI style information */ 13 | class NetworkStyle 14 | { 15 | public: 16 | /** Get style associated with provided BIP70 network id, or 0 if not known */ 17 | static const NetworkStyle *instantiate(const QString &networkId); 18 | 19 | const QString &getAppName() const { return appName; } 20 | const QIcon &getAppIcon() const { return appIcon; } 21 | const QIcon &getTrayAndWindowIcon() const { return trayAndWindowIcon; } 22 | const QString &getTitleAddText() const { return titleAddText; } 23 | 24 | private: 25 | NetworkStyle(const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *titleAddText); 26 | 27 | QString appName; 28 | QIcon appIcon; 29 | QIcon trayAndWindowIcon; 30 | QString titleAddText; 31 | }; 32 | 33 | #endif // BITCOIN_QT_NETWORKSTYLE_H 34 | -------------------------------------------------------------------------------- /doc/files.md: -------------------------------------------------------------------------------- 1 | Used in 0.8.0 2 | --------------------- 3 | * wallet.dat: personal wallet (BDB) with keys and transactions 4 | * peers.dat: peer IP address database (custom format); since 0.7.0 5 | * blocks/blk000??.dat: block data (custom, 128 MiB per file); since 0.8.0 6 | * blocks/rev000??.dat; block undo data (custom); since 0.8.0 (format changed since pre-0.8) 7 | * blocks/index/*; block index (LevelDB); since 0.8.0 8 | * chainstate/*; block chain state database (LevelDB); since 0.8.0 9 | * database/*: BDB database environment; only used for wallet since 0.8.0 10 | 11 | Only used in pre-0.8.0 12 | --------------------- 13 | * blktree/*; block chain index (LevelDB); since pre-0.8, replaced by blocks/index/* in 0.8.0 14 | * coins/*; unspent transaction output database (LevelDB); since pre-0.8, replaced by chainstate/* in 0.8.0 15 | 16 | Only used before 0.8.0 17 | --------------------- 18 | * blkindex.dat: block chain index database (BDB); replaced by {chainstate/*,blocks/index/*,blocks/rev000??.dat} in 0.8.0 19 | * blk000?.dat: block data (custom, 2 GiB per file); replaced by blocks/blk000??.dat in 0.8.0 20 | 21 | Only used before 0.7.0 22 | --------------------- 23 | * addr.dat: peer IP address database (BDB); replaced by peers.dat in 0.7.0 24 | -------------------------------------------------------------------------------- /src/leveldb/table/block.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_TABLE_BLOCK_H_ 6 | #define STORAGE_LEVELDB_TABLE_BLOCK_H_ 7 | 8 | #include 9 | #include 10 | #include "leveldb/iterator.h" 11 | 12 | namespace leveldb { 13 | 14 | struct BlockContents; 15 | class Comparator; 16 | 17 | class Block { 18 | public: 19 | // Initialize the block with the specified contents. 20 | explicit Block(const BlockContents& contents); 21 | 22 | ~Block(); 23 | 24 | size_t size() const { return size_; } 25 | Iterator* NewIterator(const Comparator* comparator); 26 | 27 | private: 28 | uint32_t NumRestarts() const; 29 | 30 | const char* data_; 31 | size_t size_; 32 | uint32_t restart_offset_; // Offset in data_ of restart array 33 | bool owned_; // Block owns data_[] 34 | 35 | // No copying allowed 36 | Block(const Block&); 37 | void operator=(const Block&); 38 | 39 | class Iter; 40 | }; 41 | 42 | } // namespace leveldb 43 | 44 | #endif // STORAGE_LEVELDB_TABLE_BLOCK_H_ 45 | -------------------------------------------------------------------------------- /src/qt/coincontroltreewidget.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2013 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #include "coincontroltreewidget.h" 6 | #include "coincontroldialog.h" 7 | 8 | CoinControlTreeWidget::CoinControlTreeWidget(QWidget *parent) : 9 | QTreeWidget(parent) 10 | { 11 | 12 | } 13 | 14 | void CoinControlTreeWidget::keyPressEvent(QKeyEvent *event) 15 | { 16 | if (event->key() == Qt::Key_Space) // press spacebar -> select checkbox 17 | { 18 | event->ignore(); 19 | int COLUMN_CHECKBOX = 0; 20 | if(this->currentItem()) 21 | this->currentItem()->setCheckState(COLUMN_CHECKBOX, ((this->currentItem()->checkState(COLUMN_CHECKBOX) == Qt::Checked) ? Qt::Unchecked : Qt::Checked)); 22 | } 23 | else if (event->key() == Qt::Key_Escape) // press esc -> close dialog 24 | { 25 | event->ignore(); 26 | CoinControlDialog *coinControlDialog = (CoinControlDialog*)this->parentWidget(); 27 | coinControlDialog->done(QDialog::Accepted); 28 | } 29 | else 30 | { 31 | this->QTreeWidget::keyPressEvent(event); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /contrib/linearize/README.md: -------------------------------------------------------------------------------- 1 | # Linearize 2 | Construct a linear, no-fork, best version of the blockchain. 3 | 4 | ## Step 1: Download hash list 5 | 6 | $ ./linearize-hashes.py linearize.cfg > hashlist.txt 7 | 8 | Required configuration file settings for linearize-hashes: 9 | * RPC: rpcuser, rpcpassword 10 | 11 | Optional config file setting for linearize-hashes: 12 | * RPC: host, port 13 | * Block chain: min_height, max_height 14 | 15 | ## Step 2: Copy local block data 16 | 17 | $ ./linearize-data.py linearize.cfg 18 | 19 | Required configuration file settings: 20 | * "input": dogecoind blocks/ directory containing blkNNNNN.dat 21 | * "hashlist": text file containing list of block hashes, linearized-hashes.py 22 | output. 23 | * "output_file": bootstrap.dat 24 | or 25 | * "output": output directory for linearized blocks/blkNNNNN.dat output 26 | 27 | Optional config file setting for linearize-data: 28 | * "netmagic": network magic number 29 | * "max_out_sz": maximum output file size (default 1000*1000*1000) 30 | * "split_timestamp": Split files when a new month is first seen, in addition to 31 | reaching a maximum file size. 32 | * "file_timestamp": Set each file's last-modified time to that of the 33 | most recent block in that file. 34 | -------------------------------------------------------------------------------- /src/leveldb/db/builder.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_DB_BUILDER_H_ 6 | #define STORAGE_LEVELDB_DB_BUILDER_H_ 7 | 8 | #include "leveldb/status.h" 9 | 10 | namespace leveldb { 11 | 12 | struct Options; 13 | struct FileMetaData; 14 | 15 | class Env; 16 | class Iterator; 17 | class TableCache; 18 | class VersionEdit; 19 | 20 | // Build a Table file from the contents of *iter. The generated file 21 | // will be named according to meta->number. On success, the rest of 22 | // *meta will be filled with metadata about the generated table. 23 | // If no data is present in *iter, meta->file_size will be set to 24 | // zero, and no Table file will be produced. 25 | extern Status BuildTable(const std::string& dbname, 26 | Env* env, 27 | const Options& options, 28 | TableCache* table_cache, 29 | Iterator* iter, 30 | FileMetaData* meta); 31 | 32 | } // namespace leveldb 33 | 34 | #endif // STORAGE_LEVELDB_DB_BUILDER_H_ 35 | -------------------------------------------------------------------------------- /src/miner.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2013 The Bitcoin Core developers 3 | // Distributed under the MIT software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | #ifndef BITCOIN_MINER_H 7 | #define BITCOIN_MINER_H 8 | 9 | #include "primitives/block.h" 10 | 11 | #include 12 | 13 | class CBlockIndex; 14 | class CReserveKey; 15 | class CScript; 16 | class CWallet; 17 | namespace Consensus { struct Params; }; 18 | 19 | struct CBlockTemplate 20 | { 21 | CBlock block; 22 | std::vector vTxFees; 23 | std::vector vTxSigOps; 24 | }; 25 | 26 | /** Run the miner threads */ 27 | void GenerateBitcoins(bool fGenerate, CWallet* pwallet, int nThreads); 28 | /** Generate a new block, without valid proof-of-work */ 29 | CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn); 30 | CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey); 31 | /** Modify the extranonce in a block */ 32 | void IncrementExtraNonce(CBlock* pblock, const CBlockIndex* pindexPrev, unsigned int& nExtraNonce); 33 | void UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParams, const CBlockIndex* pindexPrev); 34 | 35 | #endif // BITCOIN_MINER_H 36 | -------------------------------------------------------------------------------- /src/test/README.md: -------------------------------------------------------------------------------- 1 | # Notes 2 | The sources in this directory are unit test cases. Boost includes a 3 | unit testing framework, and since bitcoin already uses boost, it makes 4 | sense to simply use this framework rather than require developers to 5 | configure some other framework (we want as few impediments to creating 6 | unit tests as possible). 7 | 8 | The build system is setup to compile an executable called "test_bitcoin" 9 | that runs all of the unit tests. The main source file is called 10 | test_bitcoin.cpp, which simply includes other files that contain the 11 | actual unit tests (outside of a couple required preprocessor 12 | directives). The pattern is to create one test file for each class or 13 | source file for which you want to create unit tests. The file naming 14 | convention is "_tests.cpp" and such files should wrap 15 | their tests in a test suite called "_tests". For an 16 | examples of this pattern, examine uint160_tests.cpp and 17 | uint256_tests.cpp. 18 | 19 | For further reading, I found the following website to be helpful in 20 | explaining how the boost unit test framework works: 21 | [http://www.alittlemadness.com/2009/03/31/c-unit-testing-with-boosttest/](http://www.alittlemadness.com/2009/03/31/c-unit-testing-with-boosttest/). -------------------------------------------------------------------------------- /src/qt/trafficgraphwidget.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2013 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_QT_TRAFFICGRAPHWIDGET_H 6 | #define BITCOIN_QT_TRAFFICGRAPHWIDGET_H 7 | 8 | #include 9 | #include 10 | 11 | class ClientModel; 12 | 13 | QT_BEGIN_NAMESPACE 14 | class QPaintEvent; 15 | class QTimer; 16 | QT_END_NAMESPACE 17 | 18 | class TrafficGraphWidget : public QWidget 19 | { 20 | Q_OBJECT 21 | 22 | public: 23 | explicit TrafficGraphWidget(QWidget *parent = 0); 24 | void setClientModel(ClientModel *model); 25 | int getGraphRangeMins() const; 26 | 27 | protected: 28 | void paintEvent(QPaintEvent *); 29 | 30 | public slots: 31 | void updateRates(); 32 | void setGraphRangeMins(int mins); 33 | void clear(); 34 | 35 | private: 36 | void paintPath(QPainterPath &path, QQueue &samples); 37 | 38 | QTimer *timer; 39 | float fMax; 40 | int nMins; 41 | QQueue vSamplesIn; 42 | QQueue vSamplesOut; 43 | quint64 nLastBytesIn; 44 | quint64 nLastBytesOut; 45 | ClientModel *clientModel; 46 | }; 47 | 48 | #endif // BITCOIN_QT_TRAFFICGRAPHWIDGET_H 49 | -------------------------------------------------------------------------------- /src/core_io.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_CORE_IO_H 6 | #define BITCOIN_CORE_IO_H 7 | 8 | #include 9 | #include 10 | 11 | class CBlock; 12 | class CScript; 13 | class CTransaction; 14 | class uint256; 15 | class UniValue; 16 | 17 | // core_read.cpp 18 | extern CScript ParseScript(std::string s); 19 | extern bool DecodeHexTx(CTransaction& tx, const std::string& strHexTx); 20 | extern bool DecodeHexBlk(CBlock&, const std::string& strHexBlk); 21 | extern uint256 ParseHashUV(const UniValue& v, const std::string& strName); 22 | extern uint256 ParseHashStr(const std::string&, const std::string& strName); 23 | extern std::vector ParseHexUV(const UniValue& v, const std::string& strName); 24 | 25 | // core_write.cpp 26 | extern std::string FormatScript(const CScript& script); 27 | extern std::string EncodeHexTx(const CTransaction& tx); 28 | extern void ScriptPubKeyToUniv(const CScript& scriptPubKey, 29 | UniValue& out, bool fIncludeHex); 30 | extern void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry); 31 | 32 | #endif // BITCOIN_CORE_IO_H 33 | -------------------------------------------------------------------------------- /src/leveldb/WINDOWS.md: -------------------------------------------------------------------------------- 1 | # Building LevelDB On Windows 2 | 3 | ## Prereqs 4 | 5 | Install the [Windows Software Development Kit version 7.1](http://www.microsoft.com/downloads/dlx/en-us/listdetailsview.aspx?FamilyID=6b6c21d2-2006-4afa-9702-529fa782d63b). 6 | 7 | Download and extract the [Snappy source distribution](http://snappy.googlecode.com/files/snappy-1.0.5.tar.gz) 8 | 9 | 1. Open the "Windows SDK 7.1 Command Prompt" : 10 | Start Menu -> "Microsoft Windows SDK v7.1" > "Windows SDK 7.1 Command Prompt" 11 | 2. Change the directory to the leveldb project 12 | 13 | ## Building the Static lib 14 | 15 | * 32 bit Version 16 | 17 | setenv /x86 18 | msbuild.exe /p:Configuration=Release /p:Platform=Win32 /p:Snappy=..\snappy-1.0.5 19 | 20 | * 64 bit Version 21 | 22 | setenv /x64 23 | msbuild.exe /p:Configuration=Release /p:Platform=x64 /p:Snappy=..\snappy-1.0.5 24 | 25 | 26 | ## Building and Running the Benchmark app 27 | 28 | * 32 bit Version 29 | 30 | setenv /x86 31 | msbuild.exe /p:Configuration=Benchmark /p:Platform=Win32 /p:Snappy=..\snappy-1.0.5 32 | Benchmark\leveldb.exe 33 | 34 | * 64 bit Version 35 | 36 | setenv /x64 37 | msbuild.exe /p:Configuration=Benchmark /p:Platform=x64 /p:Snappy=..\snappy-1.0.5 38 | x64\Benchmark\leveldb.exe 39 | 40 | -------------------------------------------------------------------------------- /contrib/verify-commits/verify-commits.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | DIR=$(dirname "$0") 4 | 5 | echo "Please verify all commits in the following list are not evil:" 6 | git log "$DIR" 7 | 8 | VERIFIED_ROOT=$(cat "${DIR}/trusted-git-root") 9 | 10 | HAVE_FAILED=false 11 | IS_SIGNED () { 12 | if [ $1 = $VERIFIED_ROOT ]; then 13 | return 0; 14 | fi 15 | if ! git -c "gpg.program=${DIR}/gpg.sh" verify-commit $1 > /dev/null 2>&1; then 16 | return 1; 17 | fi 18 | local PARENTS=$(git show -s --format=format:%P $1) 19 | for PARENT in $PARENTS; do 20 | if IS_SIGNED $PARENT > /dev/null; then 21 | return 0; 22 | fi 23 | done 24 | if ! "$HAVE_FAILED"; then 25 | echo "No parent of $1 was signed with a trusted key!" > /dev/stderr 26 | echo "Parents are:" > /dev/stderr 27 | for PARENT in $PARENTS; do 28 | git show -s $PARENT > /dev/stderr 29 | done 30 | HAVE_FAILED=true 31 | fi 32 | return 1; 33 | } 34 | 35 | if [ x"$1" = "x" ]; then 36 | TEST_COMMIT="HEAD" 37 | else 38 | TEST_COMMIT="$1" 39 | fi 40 | 41 | IS_SIGNED "$TEST_COMMIT" 42 | RES=$? 43 | if [ "$RES" = 1 ]; then 44 | if ! "$HAVE_FAILED"; then 45 | echo "$TEST_COMMIT was not signed with a trusted key!" 46 | fi 47 | else 48 | echo "There is a valid path from $TEST_COMMIT to $VERIFIED_ROOT where all commits are signed!" 49 | fi 50 | 51 | exit $RES 52 | -------------------------------------------------------------------------------- /src/leveldb/util/mutexlock.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_UTIL_MUTEXLOCK_H_ 6 | #define STORAGE_LEVELDB_UTIL_MUTEXLOCK_H_ 7 | 8 | #include "port/port.h" 9 | #include "port/thread_annotations.h" 10 | 11 | namespace leveldb { 12 | 13 | // Helper class that locks a mutex on construction and unlocks the mutex when 14 | // the destructor of the MutexLock object is invoked. 15 | // 16 | // Typical usage: 17 | // 18 | // void MyClass::MyMethod() { 19 | // MutexLock l(&mu_); // mu_ is an instance variable 20 | // ... some complex code, possibly with multiple return paths ... 21 | // } 22 | 23 | class SCOPED_LOCKABLE MutexLock { 24 | public: 25 | explicit MutexLock(port::Mutex *mu) EXCLUSIVE_LOCK_FUNCTION(mu) 26 | : mu_(mu) { 27 | this->mu_->Lock(); 28 | } 29 | ~MutexLock() UNLOCK_FUNCTION() { this->mu_->Unlock(); } 30 | 31 | private: 32 | port::Mutex *const mu_; 33 | // No copying allowed 34 | MutexLock(const MutexLock&); 35 | void operator=(const MutexLock&); 36 | }; 37 | 38 | } // namespace leveldb 39 | 40 | 41 | #endif // STORAGE_LEVELDB_UTIL_MUTEXLOCK_H_ 42 | -------------------------------------------------------------------------------- /src/pow.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2014 The Bitcoin Core developers 3 | // Distributed under the MIT software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | #ifndef BITCOIN_POW_H 7 | #define BITCOIN_POW_H 8 | 9 | #include "consensus/params.h" 10 | 11 | #include 12 | 13 | class CBlockHeader; 14 | class CBlockIndex; 15 | class uint256; 16 | class arith_uint256; 17 | 18 | unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params&); 19 | unsigned int CalculateNextWorkRequired(const CBlockIndex* pindexLast, int64_t nFirstBlockTime, const Consensus::Params&); 20 | 21 | /** Check whether a block hash satisfies the proof-of-work requirement specified by nBits */ 22 | bool CheckProofOfWork(uint256 hash, unsigned int nBits, const Consensus::Params&); 23 | arith_uint256 GetBlockProof(const CBlockIndex& block); 24 | 25 | /** Return the time it would take to redo the work difference between from and to, assuming the current hashrate corresponds to the difficulty at tip, in seconds. */ 26 | int64_t GetBlockProofEquivalentTime(const CBlockIndex& to, const CBlockIndex& from, const CBlockIndex& tip, const Consensus::Params&); 27 | 28 | #endif // BITCOIN_POW_H 29 | -------------------------------------------------------------------------------- /src/qt/csvmodelwriter.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2013 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_QT_CSVMODELWRITER_H 6 | #define BITCOIN_QT_CSVMODELWRITER_H 7 | 8 | #include 9 | #include 10 | 11 | QT_BEGIN_NAMESPACE 12 | class QAbstractItemModel; 13 | QT_END_NAMESPACE 14 | 15 | /** Export a Qt table model to a CSV file. This is useful for analyzing or post-processing the data in 16 | a spreadsheet. 17 | */ 18 | class CSVModelWriter : public QObject 19 | { 20 | Q_OBJECT 21 | 22 | public: 23 | explicit CSVModelWriter(const QString &filename, QObject *parent = 0); 24 | 25 | void setModel(const QAbstractItemModel *model); 26 | void addColumn(const QString &title, int column, int role=Qt::EditRole); 27 | 28 | /** Perform export of the model to CSV. 29 | @returns true on success, false otherwise 30 | */ 31 | bool write(); 32 | 33 | private: 34 | QString filename; 35 | const QAbstractItemModel *model; 36 | 37 | struct Column 38 | { 39 | QString title; 40 | int column; 41 | int role; 42 | }; 43 | QList columns; 44 | }; 45 | 46 | #endif // BITCOIN_QT_CSVMODELWRITER_H 47 | -------------------------------------------------------------------------------- /src/ecwrapper.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_ECWRAPPER_H 6 | #define BITCOIN_ECWRAPPER_H 7 | 8 | #include 9 | #include 10 | 11 | #include 12 | 13 | class uint256; 14 | 15 | /** RAII Wrapper around OpenSSL's EC_KEY */ 16 | class CECKey { 17 | private: 18 | EC_KEY *pkey; 19 | 20 | public: 21 | CECKey(); 22 | ~CECKey(); 23 | 24 | void GetPubKey(std::vector& pubkey, bool fCompressed); 25 | bool SetPubKey(const unsigned char* pubkey, size_t size); 26 | bool Verify(const uint256 &hash, const std::vector& vchSig); 27 | 28 | /** 29 | * reconstruct public key from a compact signature 30 | * This is only slightly more CPU intensive than just verifying it. 31 | * If this function succeeds, the recovered public key is guaranteed to be valid 32 | * (the signature is a valid signature of the given data for that key) 33 | */ 34 | bool Recover(const uint256 &hash, const unsigned char *p64, int rec); 35 | 36 | bool TweakPublic(const unsigned char vchTweak[32]); 37 | static bool SanityCheck(); 38 | }; 39 | 40 | #endif // BITCOIN_ECWRAPPER_H 41 | -------------------------------------------------------------------------------- /depends/packages/miniupnpc.mk: -------------------------------------------------------------------------------- 1 | package=miniupnpc 2 | $(package)_version=1.9.20151008 3 | $(package)_download_path=http://miniupnp.free.fr/files 4 | $(package)_file_name=$(package)-$($(package)_version).tar.gz 5 | $(package)_sha256_hash=e444ac3b587ce82709c4d0cfca1fe71f44f9fc433e9f946b12b9e1bfe667a633 6 | 7 | define $(package)_set_vars 8 | $(package)_build_opts=CC="$($(package)_cc)" 9 | $(package)_build_opts_darwin=OS=Darwin 10 | $(package)_build_opts_mingw32=-f Makefile.mingw 11 | $(package)_build_env+=CFLAGS="$($(package)_cflags) $($(package)_cppflags)" AR="$($(package)_ar)" 12 | endef 13 | 14 | define $(package)_preprocess_cmds 15 | mkdir dll && \ 16 | sed -e 's|MINIUPNPC_VERSION_STRING \"version\"|MINIUPNPC_VERSION_STRING \"$($(package)_version)\"|' -e 's|OS/version|$(host)|' miniupnpcstrings.h.in > miniupnpcstrings.h && \ 17 | sed -i.old "s|miniupnpcstrings.h: miniupnpcstrings.h.in wingenminiupnpcstrings|miniupnpcstrings.h: miniupnpcstrings.h.in|" Makefile.mingw 18 | endef 19 | 20 | define $(package)_build_cmds 21 | $(MAKE) libminiupnpc.a $($(package)_build_opts) 22 | endef 23 | 24 | define $(package)_stage_cmds 25 | mkdir -p $($(package)_staging_prefix_dir)/include/miniupnpc $($(package)_staging_prefix_dir)/lib &&\ 26 | install *.h $($(package)_staging_prefix_dir)/include/miniupnpc &&\ 27 | install libminiupnpc.a $($(package)_staging_prefix_dir)/lib 28 | endef 29 | -------------------------------------------------------------------------------- /src/qt/res/src/mine.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 10 | 12 | 13 | -------------------------------------------------------------------------------- /src/qt/test/test_main.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2014 The Bitcoin Core developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #if defined(HAVE_CONFIG_H) 6 | #include "config/bitcoin-config.h" 7 | #endif 8 | 9 | #include "util.h" 10 | #include "uritests.h" 11 | 12 | #ifdef ENABLE_WALLET 13 | #include "paymentservertests.h" 14 | #endif 15 | 16 | #include 17 | #include 18 | #include 19 | 20 | #if defined(QT_STATICPLUGIN) && QT_VERSION < 0x050000 21 | #include 22 | Q_IMPORT_PLUGIN(qcncodecs) 23 | Q_IMPORT_PLUGIN(qjpcodecs) 24 | Q_IMPORT_PLUGIN(qtwcodecs) 25 | Q_IMPORT_PLUGIN(qkrcodecs) 26 | #endif 27 | 28 | // This is all you need to run all the tests 29 | int main(int argc, char *argv[]) 30 | { 31 | SetupEnvironment(); 32 | bool fInvalid = false; 33 | 34 | // Don't remove this, it's needed to access 35 | // QCoreApplication:: in the tests 36 | QCoreApplication app(argc, argv); 37 | app.setApplicationName("Bitcoin-Qt-test"); 38 | 39 | URITests test1; 40 | if (QTest::qExec(&test1) != 0) 41 | fInvalid = true; 42 | #ifdef ENABLE_WALLET 43 | PaymentServerTests test2; 44 | if (QTest::qExec(&test2) != 0) 45 | fInvalid = true; 46 | #endif 47 | 48 | return fInvalid; 49 | } 50 | -------------------------------------------------------------------------------- /src/qt/res/src/transaction0.svg: -------------------------------------------------------------------------------- 1 | 2 | 13 | 15 | 17 | 18 | 20 | image/svg+xml 21 | 23 | 24 | 25 | 26 | 27 | 30 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /src/qt/res/src/verify.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 8 | 14 | 15 | -------------------------------------------------------------------------------- /src/leveldb/table/two_level_iterator.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_TABLE_TWO_LEVEL_ITERATOR_H_ 6 | #define STORAGE_LEVELDB_TABLE_TWO_LEVEL_ITERATOR_H_ 7 | 8 | #include "leveldb/iterator.h" 9 | 10 | namespace leveldb { 11 | 12 | struct ReadOptions; 13 | 14 | // Return a new two level iterator. A two-level iterator contains an 15 | // index iterator whose values point to a sequence of blocks where 16 | // each block is itself a sequence of key,value pairs. The returned 17 | // two-level iterator yields the concatenation of all key/value pairs 18 | // in the sequence of blocks. Takes ownership of "index_iter" and 19 | // will delete it when no longer needed. 20 | // 21 | // Uses a supplied function to convert an index_iter value into 22 | // an iterator over the contents of the corresponding block. 23 | extern Iterator* NewTwoLevelIterator( 24 | Iterator* index_iter, 25 | Iterator* (*block_function)( 26 | void* arg, 27 | const ReadOptions& options, 28 | const Slice& index_value), 29 | void* arg, 30 | const ReadOptions& options); 31 | 32 | } // namespace leveldb 33 | 34 | #endif // STORAGE_LEVELDB_TABLE_TWO_LEVEL_ITERATOR_H_ 35 | -------------------------------------------------------------------------------- /src/qt/paymentrequestplus.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2014 The Bitcoin developers 2 | // Distributed under the MIT software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef BITCOIN_QT_PAYMENTREQUESTPLUS_H 6 | #define BITCOIN_QT_PAYMENTREQUESTPLUS_H 7 | 8 | #include "paymentrequest.pb.h" 9 | 10 | #include "base58.h" 11 | 12 | #include 13 | 14 | #include 15 | #include 16 | #include 17 | 18 | // 19 | // Wraps dumb protocol buffer paymentRequest 20 | // with extra methods 21 | // 22 | 23 | class PaymentRequestPlus 24 | { 25 | public: 26 | PaymentRequestPlus() { } 27 | 28 | bool parse(const QByteArray& data); 29 | bool SerializeToString(std::string* output) const; 30 | 31 | bool IsInitialized() const; 32 | // Returns true if merchant's identity is authenticated, and 33 | // returns human-readable merchant identity in merchant 34 | bool getMerchant(X509_STORE* certStore, QString& merchant) const; 35 | 36 | // Returns list of outputs, amount 37 | QList > getPayTo() const; 38 | 39 | const payments::PaymentDetails& getDetails() const { return details; } 40 | 41 | private: 42 | payments::PaymentRequest paymentRequest; 43 | payments::PaymentDetails details; 44 | }; 45 | 46 | #endif // BITCOIN_QT_PAYMENTREQUESTPLUS_H 47 | -------------------------------------------------------------------------------- /contrib/gitian-descriptors/gitian-osx-signer.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: "dogecoin-dmg-signer" 3 | suites: 4 | - "precise" 5 | architectures: 6 | - "amd64" 7 | packages: 8 | - "libc6:i386" 9 | - "faketime" 10 | reference_datetime: "2015-06-01 00:00:00" 11 | remotes: 12 | - "url": "https://github.com/dogecoin/dogecoin-detached-sigs.git" 13 | "dir": "signature" 14 | files: 15 | - "dogecoin-osx-unsigned.tar.gz" 16 | script: | 17 | WRAP_DIR=$HOME/wrapped 18 | mkdir -p ${WRAP_DIR} 19 | export PATH=`pwd`:$PATH 20 | FAKETIME_PROGS="dmg genisoimage" 21 | 22 | # Create global faketime wrappers 23 | for prog in ${FAKETIME_PROGS}; do 24 | echo '#!/bin/bash' > ${WRAP_DIR}/${prog} 25 | echo "REAL=\`which -a ${prog} | grep -v ${WRAP_DIR}/${prog} | head -1\`" >> ${WRAP_DIR}/${prog} 26 | echo 'export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1' >> ${WRAP_DIR}/${prog} 27 | echo "export FAKETIME=\"${REFERENCE_DATETIME}\"" >> ${WRAP_DIR}/${prog} 28 | echo "\$REAL \$@" >> $WRAP_DIR/${prog} 29 | chmod +x ${WRAP_DIR}/${prog} 30 | done 31 | 32 | UNSIGNED=dogecoin-osx-unsigned.tar.gz 33 | SIGNED=dogecoin-osx-signed.dmg 34 | 35 | tar -xf ${UNSIGNED} 36 | ./detached-sig-apply.sh ${UNSIGNED} signature/osx 37 | ${WRAP_DIR}/genisoimage -no-cache-inodes -D -l -probe -V "Dogecoin-Core" -no-pad -r -apple -o uncompressed.dmg signed-app 38 | ${WRAP_DIR}/dmg dmg uncompressed.dmg ${OUTDIR}/${SIGNED} 39 | --------------------------------------------------------------------------------