├── src ├── config │ └── .empty ├── univalue │ ├── test │ │ ├── fail29.json │ │ ├── fail16.json │ │ ├── fail30.json │ │ ├── fail31.json │ │ ├── round4.json │ │ ├── round5.json │ │ ├── round7.json │ │ ├── fail33.json │ │ ├── fail34.json │ │ ├── fail36.json │ │ ├── round6.json │ │ ├── fail2.json │ │ ├── fail24.json │ │ ├── fail27.json │ │ ├── fail28.json │ │ ├── fail37.json │ │ ├── fail38.json │ │ ├── fail39.json │ │ ├── fail4.json │ │ ├── fail8.json │ │ ├── round2.json │ │ ├── fail19.json │ │ ├── fail20.json │ │ ├── fail23.json │ │ ├── fail5.json │ │ ├── fail9.json │ │ ├── fail11.json │ │ ├── fail25.json │ │ ├── fail6.json │ │ ├── fail7.json │ │ ├── fail12.json │ │ ├── fail14.json │ │ ├── fail15.json │ │ ├── fail17.json │ │ ├── fail21.json │ │ ├── fail22.json │ │ ├── fail35.json │ │ ├── round3.json │ │ ├── fail26.json │ │ ├── fail3.json │ │ ├── fail13.json │ │ ├── fail32.json │ │ ├── fail42.json │ │ ├── fail44.json │ │ ├── fail18.json │ │ ├── pass2.json │ │ ├── fail10.json │ │ ├── fail1.json │ │ ├── .gitignore │ │ ├── fail40.json │ │ ├── fail41.json │ │ ├── pass3.json │ │ ├── no_nul.cpp │ │ ├── round1.json │ │ ├── test_json.cpp │ │ └── pass4.json │ ├── build-aux │ │ └── m4 │ │ │ └── .gitignore │ ├── lib │ │ └── .gitignore │ ├── autogen.sh │ ├── TODO │ ├── pc │ │ ├── libunivalue.pc.in │ │ └── libunivalue-uninstalled.pc.in │ ├── .gitignore │ └── README.md ├── bench │ ├── .gitignore │ ├── data │ │ └── block413567.raw │ ├── scrypt.cpp │ ├── bench_bitcoin.cpp │ ├── perf.h │ └── Examples.cpp ├── obj │ └── .gitignore ├── obj-test │ └── .gitignore ├── test │ ├── data │ │ ├── blanktxv1.hex │ │ ├── blanktxv2.hex │ │ ├── txcreate2.hex │ │ ├── txcreatescript1.hex │ │ ├── txcreateoutpubkey2.hex │ │ ├── txcreatescript2.hex │ │ ├── txcreatescript4.hex │ │ ├── txcreatemultisig2.hex │ │ ├── txcreatemultisig4.hex │ │ ├── txcreateoutpubkey3.hex │ │ ├── txcreatemultisig3.hex │ │ ├── txcreatescript3.hex │ │ ├── txcreateoutpubkey1.hex │ │ ├── txcreatesignv1.hex │ │ ├── txcreatesignv2.hex │ │ ├── txcreatedata_seq0.hex │ │ ├── txcreatemultisig1.hex │ │ ├── txcreatedata_seq1.hex │ │ ├── blanktxv1.json │ │ ├── blanktxv2.json │ │ ├── README.md │ │ ├── txcreatedata1.hex │ │ ├── txcreatedata2.hex │ │ ├── txcreate1.hex │ │ ├── base58_encode_decode.json │ │ ├── txcreate2.json │ │ ├── txcreatescript1.json │ │ ├── txcreateoutpubkey2.json │ │ ├── txcreatemultisig3.json │ │ ├── txcreatescript3.json │ │ ├── txcreatemultisig2.json │ │ ├── txcreatemultisig4.json │ │ ├── txcreateoutpubkey3.json │ │ ├── txcreatescript2.json │ │ ├── txcreatescript4.json │ │ └── txcreateoutpubkey1.json │ ├── buildenv.py.in │ ├── Makefile │ ├── testutil.h │ ├── test_random.h │ ├── sanity_tests.cpp │ ├── bswap_tests.cpp │ ├── testutil.cpp │ └── base64_tests.cpp ├── secp256k1 │ ├── autogen.sh │ ├── .gitattributes │ ├── src │ │ ├── modules │ │ │ ├── ecdh │ │ │ │ └── Makefile.am.include │ │ │ ├── extrakeys │ │ │ │ └── Makefile.am.include │ │ │ ├── recovery │ │ │ │ └── Makefile.am.include │ │ │ └── schnorrsig │ │ │ │ └── Makefile.am.include │ │ ├── basic-config.h │ │ ├── ecmult_gen_compute_table.h │ │ ├── scalar_low.h │ │ ├── scalar_8x32.h │ │ ├── scalar_4x64.h │ │ └── ecmult_const.h │ ├── libsecp256k1.pc.in │ ├── doc │ │ ├── CHANGELOG.md │ │ └── release-process.md │ └── SECURITY.md ├── leveldb │ ├── cmake │ │ └── leveldbConfig.cmake │ ├── .gitignore │ ├── AUTHORS │ ├── util │ │ ├── filter_policy.cc │ │ ├── options.cc │ │ ├── hash.h │ │ └── env_windows_test_helper.h │ ├── port │ │ ├── README.md │ │ └── port.h │ ├── NEWS │ ├── TODO │ ├── .clang-format │ ├── helpers │ │ └── memenv │ │ │ └── memenv.h │ ├── db │ │ └── db_iter.h │ └── table │ │ └── merger.h ├── qt │ ├── res │ │ ├── icons │ │ │ ├── add.png │ │ │ ├── eye.png │ │ │ ├── key.png │ │ │ ├── about.png │ │ │ ├── clock1.png │ │ │ ├── clock2.png │ │ │ ├── clock3.png │ │ │ ├── clock4.png │ │ │ ├── clock5.png │ │ │ ├── edit.png │ │ │ ├── export.png │ │ │ ├── info.png │ │ │ ├── open.png │ │ │ ├── print.png │ │ │ ├── quit.png │ │ │ ├── remove.png │ │ │ ├── send.png │ │ │ ├── synced.png │ │ │ ├── verify.png │ │ │ ├── about_qt.png │ │ │ ├── chevron.png │ │ │ ├── connect0.png │ │ │ ├── connect1.png │ │ │ ├── connect2.png │ │ │ ├── connect3.png │ │ │ ├── connect4.png │ │ │ ├── editcopy.png │ │ │ ├── eye_plus.png │ │ │ ├── filesave.png │ │ │ ├── history.png │ │ │ ├── overview.png │ │ │ ├── receive.png │ │ │ ├── trumpow.icns │ │ │ ├── trumpow.ico │ │ │ ├── trumpow.png │ │ │ ├── tx_inout.png │ │ │ ├── tx_input.png │ │ │ ├── tx_mined.png │ │ │ ├── warning.png │ │ │ ├── configure.png │ │ │ ├── debugwindow.png │ │ │ ├── editpaste.png │ │ │ ├── eye_minus.png │ │ │ ├── fontbigger.png │ │ │ ├── fontsmaller.png │ │ │ ├── hd_disabled.png │ │ │ ├── hd_enabled.png │ │ │ ├── lock_closed.png │ │ │ ├── lock_open.png │ │ │ ├── tx_output.png │ │ │ ├── address-book.png │ │ │ ├── paper_wallet.png │ │ │ ├── transaction0.png │ │ │ ├── transaction2.png │ │ │ ├── wallet_bgcoin.png │ │ │ ├── bitcoin_testnet.ico │ │ │ ├── network_disabled.png │ │ │ ├── transaction_abandoned.png │ │ │ └── transaction_conflicted.png │ │ ├── src │ │ │ ├── spinner.png │ │ │ ├── tx_in.svg │ │ │ ├── transaction0.svg │ │ │ ├── hd_enabled.svg │ │ │ ├── clock_2.svg │ │ │ ├── clock_1.svg │ │ │ ├── clock_3.svg │ │ │ └── clock_0.svg │ │ ├── fonts │ │ │ ├── NotoSans-Bold.ttf │ │ │ ├── ComicNeue-Bold.ttf │ │ │ ├── ComicNeue-Light.ttf │ │ │ ├── NotoSans-Light.ttf │ │ │ ├── NotoSans-Medium.ttf │ │ │ ├── NotoSans-Regular.ttf │ │ │ ├── RobotoMono-Bold.ttf │ │ │ ├── ComicNeue-Regular.ttf │ │ │ ├── ComicNeue-Bold-Oblique.ttf │ │ │ ├── ComicNeue-Light-Oblique.ttf │ │ │ └── ComicNeue-Regular-Oblique.ttf │ │ └── 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 │ ├── Makefile │ ├── test │ │ ├── uritests.h │ │ ├── compattests.h │ │ ├── rpcnestedtests.h │ │ ├── compattests.cpp │ │ └── paymentservertests.h │ ├── coincontroltreewidget.h │ ├── verticallabel.h │ ├── openuridialog.h │ ├── transactiondescdialog.h │ ├── transactiondesc.h │ ├── qvaluecombobox.cpp │ ├── transactiondescdialog.cpp │ └── winshutdownmonitor.h ├── noui.h ├── compat │ ├── sanity.h │ ├── strnlen.cpp │ └── arm_acle_selector.h ├── wallet │ ├── rpcwallet.h │ ├── rpcutil.h │ ├── test │ │ ├── wallet_test_fixture.h │ │ └── wallet_test_fixture.cpp │ └── rpcutil.cpp ├── support │ ├── cleanse.cpp │ ├── cleanse.h │ └── experimental.h ├── fs.cpp ├── utilmemory.h ├── zmq │ ├── zmqabstractnotifier.cpp │ └── zmqconfig.h ├── torcontrol.h ├── utilmoneystr.h ├── utilstring.h ├── warnings.h ├── fs.h ├── attributes.h ├── checkpoints.h ├── crypto │ ├── chacha20.h │ ├── ripemd160.h │ ├── sha1.h │ ├── sha256.h │ ├── sha512.h │ └── hmac_sha512.h ├── rpc │ ├── blockchain.h │ └── client.h ├── chainparamsseeds.h ├── reverselock.h ├── pow.h ├── ui_interface.cpp ├── primitives │ └── pureheader.cpp ├── httprpc.h ├── checkpoints.cpp └── policy │ └── rbf.h ├── contrib ├── debian │ ├── compat │ ├── patches │ │ ├── series │ │ └── README │ ├── source │ │ └── format │ ├── trumpow-qt.manpages │ ├── trumpow-tx.manpages │ ├── trumpowd.examples │ ├── trumpow-tx.install │ ├── trumpowd.manpages │ ├── trumpow-tx.bash-completion │ ├── trumpowd.install │ ├── trumpowd.bash-completion │ ├── gbp.conf │ ├── trumpow-qt.lintian-overrides │ ├── trumpowd.lintian-overrides │ ├── trumpow-qt.protocol │ ├── watch │ ├── trumpow-qt.install │ ├── trumpow-qt.desktop │ ├── README.md │ └── rules ├── seeds │ ├── nodes_test.txt │ ├── nodes_main.txt │ └── README.md ├── verify-commits │ ├── trusted-git-root │ ├── trusted-keys │ └── pre-push-hook.sh ├── macdeploy │ ├── DS_Store │ ├── background.tiff │ ├── README.md │ └── fancy.plist ├── testgen │ └── README.md ├── nixos │ └── shell.nix ├── init │ ├── README.md │ └── org.trumpow.trumpowd.plist ├── devtools │ ├── split-debug.sh.in │ └── utils.py ├── qos │ └── README.md ├── gitian-keys │ └── README.md ├── rpm │ └── bitcoin.fc └── bitcoin-qt.pro ├── qa ├── rpc-tests │ ├── .gitignore │ ├── test_framework │ │ └── __init__.py │ └── create_cache.py └── pull-tester │ ├── install-deps.sh │ └── tests_config.py.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-1.1.0.md │ ├── release-notes-1.0.1.md │ ├── release-notes-1.1.1.md │ ├── release-notes-1.2.0.md │ └── dogecoin │ │ └── RELEASE_NOTES_1.8.2.md ├── trumpow_logo_doxygen.png ├── gitian-building │ ├── create_new_vm.png │ ├── create_vm_memsize.png │ ├── debian_root_login.png │ ├── network_settings.png │ ├── create_vm_hard_disk.png │ ├── select_startup_disk.png │ ├── port_forwarding_rules.png │ ├── debian_install_14_finish.png │ ├── all_files_in_one_partition.png │ ├── create_vm_file_location_size.png │ ├── debian_install_1_boot_menu.png │ ├── debian_install_6_domain_name.png │ ├── create_vm_hard_disk_file_type.png │ ├── debian_install_12_choose_disk.png │ ├── debian_install_20_install_grub.png │ ├── debian_install_9_user_password.png │ ├── debian_install_10_configure_clock.png │ ├── debian_install_11_partition_disks.png │ ├── debian_install_15_write_changes.png │ ├── debian_install_16_choose_a_mirror.png │ ├── debian_install_18_proxy_settings.png │ ├── debian_install_3_select_location.png │ ├── debian_install_8_set_up_username.png │ ├── debian_install_2_select_a_language.png │ ├── debian_install_4_configure_keyboard.png │ ├── create_vm_storage_physical_hard_disk.png │ ├── debian_install_19_software_selection.png │ ├── debian_install_22_finish_installation.png │ ├── debian_install_5_configure_the_network.png │ ├── debian_install_6a_set_up_root_password.png │ ├── debian_install_7_set_up_user_fullname.png │ └── debian_install_21_install_grub_bootloader.png ├── man │ └── Makefile.am ├── build-archlinux.md ├── build-nixos.md ├── build-fedora.md ├── release-notes.md └── intl │ └── README.md ├── share ├── pixmaps │ ├── trumpow.ico │ ├── trumpow16.png │ ├── trumpow32.png │ ├── trumpow64.png │ ├── nsis-header.bmp │ ├── nsis-wizard.bmp │ ├── trumpow128.png │ └── trumpow256.png └── rpcuser │ └── README.md ├── depends ├── .gitignore ├── builders │ ├── linux.mk │ └── default.mk ├── hosts │ ├── mingw32.mk │ ├── darwin.mk │ └── linux.mk ├── patches │ ├── qt │ │ ├── fix_qt_pkgconfig.patch │ │ └── fix_qfontengine_coretext.patch │ ├── zeromq │ │ ├── clock-unused-nsecs.patch │ │ ├── 0002-disable-pthread_set_name_np.patch │ │ └── remove_libstd_link.patch │ ├── libevent │ │ └── glibc_compatibility.patch │ ├── intel-ipsec-mb │ │ └── remove_digest_init.patch │ └── fontconfig │ │ └── gperf_header_regen.patch └── packages │ ├── native_nasm.mk │ ├── xproto.mk │ ├── expat.mk │ ├── native_ccache.mk │ ├── qrencode.mk │ ├── libXau.mk │ ├── native_ds_store.mk │ ├── native_libdmg-hfsplus.mk │ ├── packages.mk │ ├── freetype.mk │ ├── libICE.mk │ ├── libSM.mk │ ├── native_protobuf.mk │ ├── xcb_proto.mk │ ├── fontconfig.mk │ ├── native_biplist.mk │ ├── intel-ipsec-mb.mk │ ├── native_cdrkit.mk │ ├── native_mac_alias.mk │ ├── zlib.mk │ └── protobuf.mk ├── .tx └── config ├── libbitcoinconsensus.pc.in ├── .github └── workflows │ └── linter.yml ├── autogen.sh └── SECURITY.md /src/config/.empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /contrib/debian/compat: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /src/univalue/test/fail29.json: -------------------------------------------------------------------------------- 1 | [0e] -------------------------------------------------------------------------------- /contrib/debian/patches/series: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bench/.gitignore: -------------------------------------------------------------------------------- 1 | bench_bitcoin 2 | -------------------------------------------------------------------------------- /src/univalue/test/fail16.json: -------------------------------------------------------------------------------- 1 | [\naked] -------------------------------------------------------------------------------- /src/univalue/test/fail30.json: -------------------------------------------------------------------------------- 1 | [0e+] -------------------------------------------------------------------------------- /src/univalue/test/fail31.json: -------------------------------------------------------------------------------- 1 | [0e+-1] -------------------------------------------------------------------------------- /src/univalue/test/round4.json: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /src/univalue/test/round5.json: -------------------------------------------------------------------------------- 1 | true 2 | -------------------------------------------------------------------------------- /src/univalue/test/round7.json: -------------------------------------------------------------------------------- 1 | null 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 | -------------------------------------------------------------------------------- /src/univalue/test/fail33.json: -------------------------------------------------------------------------------- 1 | ["mismatch"} -------------------------------------------------------------------------------- /src/univalue/test/fail34.json: -------------------------------------------------------------------------------- 1 | {} garbage -------------------------------------------------------------------------------- /src/univalue/test/fail36.json: -------------------------------------------------------------------------------- 1 | {"a":} 2 | -------------------------------------------------------------------------------- /src/univalue/test/round6.json: -------------------------------------------------------------------------------- 1 | false 2 | -------------------------------------------------------------------------------- /contrib/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /src/obj-test/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /src/univalue/build-aux/m4/.gitignore: -------------------------------------------------------------------------------- 1 | /*.m4 2 | -------------------------------------------------------------------------------- /src/univalue/lib/.gitignore: -------------------------------------------------------------------------------- 1 | gen 2 | .libs 3 | -------------------------------------------------------------------------------- /src/univalue/test/fail2.json: -------------------------------------------------------------------------------- 1 | ["Unclosed array" -------------------------------------------------------------------------------- /src/univalue/test/fail24.json: -------------------------------------------------------------------------------- 1 | ['single quote'] -------------------------------------------------------------------------------- /src/univalue/test/fail27.json: -------------------------------------------------------------------------------- 1 | ["line 2 | break"] -------------------------------------------------------------------------------- /src/univalue/test/fail28.json: -------------------------------------------------------------------------------- 1 | ["line\ 2 | break"] -------------------------------------------------------------------------------- /src/univalue/test/fail37.json: -------------------------------------------------------------------------------- 1 | {"a":1 "b":2} 2 | -------------------------------------------------------------------------------- /src/univalue/test/fail38.json: -------------------------------------------------------------------------------- 1 | ["\ud834"] 2 | -------------------------------------------------------------------------------- /src/univalue/test/fail39.json: -------------------------------------------------------------------------------- 1 | ["\udd61"] 2 | -------------------------------------------------------------------------------- /src/univalue/test/fail4.json: -------------------------------------------------------------------------------- 1 | ["extra comma",] -------------------------------------------------------------------------------- /src/univalue/test/fail8.json: -------------------------------------------------------------------------------- 1 | ["Extra close"]] -------------------------------------------------------------------------------- /src/univalue/test/round2.json: -------------------------------------------------------------------------------- 1 | ["a§■𐎒𝅘𝅥𝅯"] 2 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | src/clientversion.cpp export-subst 2 | -------------------------------------------------------------------------------- /src/test/data/blanktxv1.hex: -------------------------------------------------------------------------------- 1 | 01000000000000000000 2 | -------------------------------------------------------------------------------- /src/test/data/blanktxv2.hex: -------------------------------------------------------------------------------- 1 | 02000000000000000000 2 | -------------------------------------------------------------------------------- /src/univalue/test/fail19.json: -------------------------------------------------------------------------------- 1 | {"Missing colon" null} -------------------------------------------------------------------------------- /src/univalue/test/fail20.json: -------------------------------------------------------------------------------- 1 | {"Double colon":: null} -------------------------------------------------------------------------------- /src/univalue/test/fail23.json: -------------------------------------------------------------------------------- 1 | ["Bad value", truth] -------------------------------------------------------------------------------- /src/univalue/test/fail5.json: -------------------------------------------------------------------------------- 1 | ["double extra comma",,] -------------------------------------------------------------------------------- /src/univalue/test/fail9.json: -------------------------------------------------------------------------------- 1 | {"Extra comma": true,} -------------------------------------------------------------------------------- /src/univalue/test/fail11.json: -------------------------------------------------------------------------------- 1 | {"Illegal expression": 1 + 2} -------------------------------------------------------------------------------- /src/univalue/test/fail25.json: -------------------------------------------------------------------------------- 1 | [" tab character in string "] -------------------------------------------------------------------------------- /src/univalue/test/fail6.json: -------------------------------------------------------------------------------- 1 | [ , "<-- missing value"] -------------------------------------------------------------------------------- /src/univalue/test/fail7.json: -------------------------------------------------------------------------------- 1 | ["Comma after the close"], -------------------------------------------------------------------------------- /contrib/debian/trumpow-qt.manpages: -------------------------------------------------------------------------------- 1 | doc/man/trumpow-qt.1 2 | -------------------------------------------------------------------------------- /contrib/debian/trumpow-tx.manpages: -------------------------------------------------------------------------------- 1 | doc/man/trumpow-tx.1 2 | -------------------------------------------------------------------------------- /src/univalue/test/fail12.json: -------------------------------------------------------------------------------- 1 | {"Illegal invocation": alert()} -------------------------------------------------------------------------------- /src/univalue/test/fail14.json: -------------------------------------------------------------------------------- 1 | {"Numbers cannot be hex": 0x14} -------------------------------------------------------------------------------- /src/univalue/test/fail15.json: -------------------------------------------------------------------------------- 1 | ["Illegal backslash escape: \x15"] -------------------------------------------------------------------------------- /src/univalue/test/fail17.json: -------------------------------------------------------------------------------- 1 | ["Illegal backslash escape: \017"] -------------------------------------------------------------------------------- /src/univalue/test/fail21.json: -------------------------------------------------------------------------------- 1 | {"Comma instead of colon", null} -------------------------------------------------------------------------------- /src/univalue/test/fail22.json: -------------------------------------------------------------------------------- 1 | ["Colon instead of comma": false] -------------------------------------------------------------------------------- /src/univalue/test/fail35.json: -------------------------------------------------------------------------------- 1 | [ true true true [] [] [] ] 2 | -------------------------------------------------------------------------------- /src/univalue/test/round3.json: -------------------------------------------------------------------------------- 1 | "abcdefghijklmnopqrstuvwxyz" 2 | -------------------------------------------------------------------------------- /contrib/debian/trumpowd.examples: -------------------------------------------------------------------------------- 1 | debian/examples/trumpow.conf 2 | -------------------------------------------------------------------------------- /src/univalue/test/fail26.json: -------------------------------------------------------------------------------- 1 | ["tab\ character\ in\ string\ "] -------------------------------------------------------------------------------- /src/univalue/test/fail3.json: -------------------------------------------------------------------------------- 1 | {unquoted_key: "keys must be quoted"} -------------------------------------------------------------------------------- /contrib/debian/trumpow-tx.install: -------------------------------------------------------------------------------- 1 | usr/local/bin/trumpow-tx usr/bin 2 | -------------------------------------------------------------------------------- /doc/release-notes/bitcoin/release-notes-0.6.1.md: -------------------------------------------------------------------------------- 1 | Never released 2 | 3 | -------------------------------------------------------------------------------- /src/test/buildenv.py.in: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | exeext="@EXEEXT@" 3 | -------------------------------------------------------------------------------- /src/test/data/txcreate2.hex: -------------------------------------------------------------------------------- 1 | 02000000000100000000000000000000000000 2 | -------------------------------------------------------------------------------- /src/univalue/test/fail13.json: -------------------------------------------------------------------------------- 1 | {"Numbers cannot have leading zeroes": 013} -------------------------------------------------------------------------------- /src/univalue/test/fail32.json: -------------------------------------------------------------------------------- 1 | {"Comma instead if closing brace": true, -------------------------------------------------------------------------------- /src/univalue/test/fail42.json: -------------------------------------------------------------------------------- 1 | ["before nul byte"]"after nul byte" 2 | -------------------------------------------------------------------------------- /src/test/data/txcreatescript1.hex: -------------------------------------------------------------------------------- 1 | 0100000000010000000000000000017500000000 2 | -------------------------------------------------------------------------------- /src/univalue/test/fail44.json: -------------------------------------------------------------------------------- 1 | "This file ends without a newline or close-quote. -------------------------------------------------------------------------------- /contrib/debian/trumpowd.manpages: -------------------------------------------------------------------------------- 1 | doc/man/trumpowd.1 2 | doc/man/trumpow-cli.1 3 | -------------------------------------------------------------------------------- /contrib/seeds/nodes_test.txt: -------------------------------------------------------------------------------- 1 | # List of fixed seed nodes for testnet 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/secp256k1/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | autoreconf -if --warnings=all 4 | -------------------------------------------------------------------------------- /src/univalue/test/fail18.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /src/univalue/test/pass2.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /contrib/verify-commits/trusted-git-root: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 2 | -------------------------------------------------------------------------------- /src/univalue/test/fail10.json: -------------------------------------------------------------------------------- 1 | {"Extra value after close": true} "misplaced quoted value" -------------------------------------------------------------------------------- /contrib/debian/trumpow-tx.bash-completion: -------------------------------------------------------------------------------- 1 | contrib/trumpow-tx.bash-completion trumpow-tx 2 | -------------------------------------------------------------------------------- /contrib/debian/trumpowd.install: -------------------------------------------------------------------------------- 1 | usr/local/bin/trumpowd usr/bin 2 | usr/local/bin/trumpow-cli usr/bin -------------------------------------------------------------------------------- /src/leveldb/cmake/leveldbConfig.cmake: -------------------------------------------------------------------------------- 1 | include("${CMAKE_CURRENT_LIST_DIR}/leveldbTargets.cmake") 2 | -------------------------------------------------------------------------------- /src/qt/res/icons/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/add.png -------------------------------------------------------------------------------- /src/qt/res/icons/eye.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/eye.png -------------------------------------------------------------------------------- /src/qt/res/icons/key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/key.png -------------------------------------------------------------------------------- /src/univalue/test/fail1.json: -------------------------------------------------------------------------------- 1 | "This is a string that never ends, yes it goes on and on, my friends. 2 | -------------------------------------------------------------------------------- /contrib/macdeploy/DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/contrib/macdeploy/DS_Store -------------------------------------------------------------------------------- /share/pixmaps/trumpow.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/share/pixmaps/trumpow.ico -------------------------------------------------------------------------------- /share/pixmaps/trumpow16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/share/pixmaps/trumpow16.png -------------------------------------------------------------------------------- /share/pixmaps/trumpow32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/share/pixmaps/trumpow32.png -------------------------------------------------------------------------------- /share/pixmaps/trumpow64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/share/pixmaps/trumpow64.png -------------------------------------------------------------------------------- /src/qt/res/icons/about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/about.png -------------------------------------------------------------------------------- /src/qt/res/icons/clock1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/clock1.png -------------------------------------------------------------------------------- /src/qt/res/icons/clock2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/clock2.png -------------------------------------------------------------------------------- /src/qt/res/icons/clock3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/clock3.png -------------------------------------------------------------------------------- /src/qt/res/icons/clock4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/clock4.png -------------------------------------------------------------------------------- /src/qt/res/icons/clock5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/clock5.png -------------------------------------------------------------------------------- /src/qt/res/icons/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/edit.png -------------------------------------------------------------------------------- /src/qt/res/icons/export.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/export.png -------------------------------------------------------------------------------- /src/qt/res/icons/info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/info.png -------------------------------------------------------------------------------- /src/qt/res/icons/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/open.png -------------------------------------------------------------------------------- /src/qt/res/icons/print.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/print.png -------------------------------------------------------------------------------- /src/qt/res/icons/quit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/quit.png -------------------------------------------------------------------------------- /src/qt/res/icons/remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/remove.png -------------------------------------------------------------------------------- /src/qt/res/icons/send.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/send.png -------------------------------------------------------------------------------- /src/qt/res/icons/synced.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/synced.png -------------------------------------------------------------------------------- /src/qt/res/icons/verify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/verify.png -------------------------------------------------------------------------------- /src/qt/res/src/spinner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/src/spinner.png -------------------------------------------------------------------------------- /src/univalue/test/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | object 3 | unitester 4 | test_json 5 | no_nul 6 | 7 | *.trs 8 | *.log 9 | -------------------------------------------------------------------------------- /doc/trumpow_logo_doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/trumpow_logo_doxygen.png -------------------------------------------------------------------------------- /share/pixmaps/nsis-header.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/share/pixmaps/nsis-header.bmp -------------------------------------------------------------------------------- /share/pixmaps/nsis-wizard.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/share/pixmaps/nsis-wizard.bmp -------------------------------------------------------------------------------- /share/pixmaps/trumpow128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/share/pixmaps/trumpow128.png -------------------------------------------------------------------------------- /share/pixmaps/trumpow256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/share/pixmaps/trumpow256.png -------------------------------------------------------------------------------- /src/qt/res/icons/about_qt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/about_qt.png -------------------------------------------------------------------------------- /src/qt/res/icons/chevron.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/chevron.png -------------------------------------------------------------------------------- /src/qt/res/icons/connect0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/connect0.png -------------------------------------------------------------------------------- /src/qt/res/icons/connect1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/connect1.png -------------------------------------------------------------------------------- /src/qt/res/icons/connect2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/connect2.png -------------------------------------------------------------------------------- /src/qt/res/icons/connect3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/connect3.png -------------------------------------------------------------------------------- /src/qt/res/icons/connect4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/connect4.png -------------------------------------------------------------------------------- /src/qt/res/icons/editcopy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/editcopy.png -------------------------------------------------------------------------------- /src/qt/res/icons/eye_plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/eye_plus.png -------------------------------------------------------------------------------- /src/qt/res/icons/filesave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/filesave.png -------------------------------------------------------------------------------- /src/qt/res/icons/history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/history.png -------------------------------------------------------------------------------- /src/qt/res/icons/overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/overview.png -------------------------------------------------------------------------------- /src/qt/res/icons/receive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/receive.png -------------------------------------------------------------------------------- /src/qt/res/icons/trumpow.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/trumpow.icns -------------------------------------------------------------------------------- /src/qt/res/icons/trumpow.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/trumpow.ico -------------------------------------------------------------------------------- /src/qt/res/icons/trumpow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/trumpow.png -------------------------------------------------------------------------------- /src/qt/res/icons/tx_inout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/tx_inout.png -------------------------------------------------------------------------------- /src/qt/res/icons/tx_input.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/tx_input.png -------------------------------------------------------------------------------- /src/qt/res/icons/tx_mined.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/tx_mined.png -------------------------------------------------------------------------------- /src/qt/res/icons/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/warning.png -------------------------------------------------------------------------------- /src/univalue/test/fail40.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/univalue/test/fail40.json -------------------------------------------------------------------------------- /src/univalue/test/fail41.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/univalue/test/fail41.json -------------------------------------------------------------------------------- /src/bench/data/block413567.raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/bench/data/block413567.raw -------------------------------------------------------------------------------- /src/qt/res/icons/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/configure.png -------------------------------------------------------------------------------- /src/qt/res/icons/debugwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/debugwindow.png -------------------------------------------------------------------------------- /src/qt/res/icons/editpaste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/editpaste.png -------------------------------------------------------------------------------- /src/qt/res/icons/eye_minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/eye_minus.png -------------------------------------------------------------------------------- /src/qt/res/icons/fontbigger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/fontbigger.png -------------------------------------------------------------------------------- /src/qt/res/icons/fontsmaller.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/fontsmaller.png -------------------------------------------------------------------------------- /src/qt/res/icons/hd_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/hd_disabled.png -------------------------------------------------------------------------------- /src/qt/res/icons/hd_enabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/hd_enabled.png -------------------------------------------------------------------------------- /src/qt/res/icons/lock_closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/lock_closed.png -------------------------------------------------------------------------------- /src/qt/res/icons/lock_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/lock_open.png -------------------------------------------------------------------------------- /src/qt/res/icons/tx_output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/tx_output.png -------------------------------------------------------------------------------- /contrib/macdeploy/background.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/contrib/macdeploy/background.tiff -------------------------------------------------------------------------------- /src/leveldb/.gitignore: -------------------------------------------------------------------------------- 1 | # Editors. 2 | *.sw* 3 | .vscode 4 | .DS_Store 5 | 6 | # Build directory. 7 | build/ 8 | out/ 9 | -------------------------------------------------------------------------------- /src/qt/res/fonts/NotoSans-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/fonts/NotoSans-Bold.ttf -------------------------------------------------------------------------------- /src/qt/res/icons/address-book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/address-book.png -------------------------------------------------------------------------------- /src/qt/res/icons/paper_wallet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/paper_wallet.png -------------------------------------------------------------------------------- /src/qt/res/icons/transaction0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/transaction0.png -------------------------------------------------------------------------------- /src/qt/res/icons/transaction2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/transaction2.png -------------------------------------------------------------------------------- /src/qt/res/icons/wallet_bgcoin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/wallet_bgcoin.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-000.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-000.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-001.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-002.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-003.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-004.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-005.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-005.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-006.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-006.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-007.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-007.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-008.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-008.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-009.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-009.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-010.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-010.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-011.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-011.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-012.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-012.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-013.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-013.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-014.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-014.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-015.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-015.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-016.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-016.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-017.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-017.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-018.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-018.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-019.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-019.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-020.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-020.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-021.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-021.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-022.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-022.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-023.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-023.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-024.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-025.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-025.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-026.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-026.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-027.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-027.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-028.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-028.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-029.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-029.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-030.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-030.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-031.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-031.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-032.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-032.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-033.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-033.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-034.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-034.png -------------------------------------------------------------------------------- /src/qt/res/movies/spinner-035.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/movies/spinner-035.png -------------------------------------------------------------------------------- /src/test/data/txcreateoutpubkey2.hex: -------------------------------------------------------------------------------- 1 | 0100000000010000000000000000160014a2516e770582864a6a56ed21a102044e388c62e300000000 2 | -------------------------------------------------------------------------------- /src/test/data/txcreatescript2.hex: -------------------------------------------------------------------------------- 1 | 010000000001000000000000000017a91471ed53322d470bb96657deb786b94f97dd46fb158700000000 2 | -------------------------------------------------------------------------------- /src/test/data/txcreatescript4.hex: -------------------------------------------------------------------------------- 1 | 010000000001000000000000000017a9146a2c482f4985f57e702f325816c90e3723ca81ae8700000000 2 | -------------------------------------------------------------------------------- /doc/gitian-building/create_new_vm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/create_new_vm.png -------------------------------------------------------------------------------- /src/qt/res/fonts/ComicNeue-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/fonts/ComicNeue-Bold.ttf -------------------------------------------------------------------------------- /src/qt/res/fonts/ComicNeue-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/fonts/ComicNeue-Light.ttf -------------------------------------------------------------------------------- /src/qt/res/fonts/NotoSans-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/fonts/NotoSans-Light.ttf -------------------------------------------------------------------------------- /src/qt/res/fonts/NotoSans-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/fonts/NotoSans-Medium.ttf -------------------------------------------------------------------------------- /src/qt/res/fonts/NotoSans-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/fonts/NotoSans-Regular.ttf -------------------------------------------------------------------------------- /src/qt/res/fonts/RobotoMono-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/fonts/RobotoMono-Bold.ttf -------------------------------------------------------------------------------- /src/qt/res/icons/bitcoin_testnet.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/bitcoin_testnet.ico -------------------------------------------------------------------------------- /src/qt/res/icons/network_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/network_disabled.png -------------------------------------------------------------------------------- /src/secp256k1/.gitattributes: -------------------------------------------------------------------------------- 1 | src/precomputed_ecmult.c linguist-generated 2 | src/precomputed_ecmult_gen.c linguist-generated 3 | -------------------------------------------------------------------------------- /src/test/data/txcreatemultisig2.hex: -------------------------------------------------------------------------------- 1 | 01000000000100e1f5050000000017a9141c6fbaf46d64221e80cbae182c33ddf81b9294ac8700000000 2 | -------------------------------------------------------------------------------- /src/test/data/txcreatemultisig4.hex: -------------------------------------------------------------------------------- 1 | 01000000000100e1f5050000000017a9146edf12858999f0dae74f9c692e6694ee3621b2ac8700000000 2 | -------------------------------------------------------------------------------- /src/test/data/txcreateoutpubkey3.hex: -------------------------------------------------------------------------------- 1 | 010000000001000000000000000017a914a5ab14c9804d0d8bf02f1aea4e82780733ad0a838700000000 2 | -------------------------------------------------------------------------------- /src/qt/res/fonts/ComicNeue-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/fonts/ComicNeue-Regular.ttf -------------------------------------------------------------------------------- /contrib/debian/trumpowd.bash-completion: -------------------------------------------------------------------------------- 1 | contrib/trumpowd.bash-completion trumpowd 2 | contrib/trumpow-cli.bash-completion trumpow-cli 3 | -------------------------------------------------------------------------------- /doc/gitian-building/create_vm_memsize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/create_vm_memsize.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_root_login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_root_login.png -------------------------------------------------------------------------------- /doc/gitian-building/network_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/network_settings.png -------------------------------------------------------------------------------- /src/qt/res/icons/transaction_abandoned.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/icons/transaction_abandoned.png -------------------------------------------------------------------------------- /depends/.gitignore: -------------------------------------------------------------------------------- 1 | SDKs/ 2 | work/ 3 | built/ 4 | sources/ 5 | config.site 6 | x86_64* 7 | i686* 8 | mips* 9 | arm* 10 | aarch64* 11 | -------------------------------------------------------------------------------- /doc/gitian-building/create_vm_hard_disk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/create_vm_hard_disk.png -------------------------------------------------------------------------------- /doc/gitian-building/select_startup_disk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/select_startup_disk.png -------------------------------------------------------------------------------- /src/qt/res/fonts/ComicNeue-Bold-Oblique.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/fonts/ComicNeue-Bold-Oblique.ttf -------------------------------------------------------------------------------- /src/qt/res/fonts/ComicNeue-Light-Oblique.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/fonts/ComicNeue-Light-Oblique.ttf -------------------------------------------------------------------------------- /src/qt/res/icons/transaction_conflicted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/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/trumpowppc/trumpow/HEAD/doc/gitian-building/port_forwarding_rules.png -------------------------------------------------------------------------------- /src/qt/res/fonts/ComicNeue-Regular-Oblique.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/src/qt/res/fonts/ComicNeue-Regular-Oblique.ttf -------------------------------------------------------------------------------- /src/test/data/txcreatemultisig3.hex: -------------------------------------------------------------------------------- 1 | 01000000000100e1f50500000000220020e15a86a23178f433d514dbbce042e87d72662b8b5edcacfd2e37ab7a2d135f0500000000 2 | -------------------------------------------------------------------------------- /src/test/data/txcreatescript3.hex: -------------------------------------------------------------------------------- 1 | 01000000000100000000000000002200200bfe935e70c321c7ca3afc75ce0d0ca2f98b5422e008bb31c00c6d7f1f1c0ad600000000 2 | -------------------------------------------------------------------------------- /contrib/seeds/nodes_main.txt: -------------------------------------------------------------------------------- 1 | # List of fixed seed nodes for mainnet 2 | 3 | 194.163.149.154 4 | 194.163.150.191 5 | 81.0.247.253 6 | 103.206.69.250 7 | -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_14_finish.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_14_finish.png -------------------------------------------------------------------------------- /src/test/data/txcreateoutpubkey1.hex: -------------------------------------------------------------------------------- 1 | 0100000000010000000000000000232102a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397ac00000000 2 | -------------------------------------------------------------------------------- /contrib/debian/trumpow-qt.lintian-overrides: -------------------------------------------------------------------------------- 1 | # Linked code is Expat - only Debian packaging is GPL-2+ 2 | trumpow-qt: possible-gpl-code-linked-with-openssl 3 | -------------------------------------------------------------------------------- /contrib/debian/trumpowd.lintian-overrides: -------------------------------------------------------------------------------- 1 | # Linked code is Expat - only Debian packaging is GPL-2+ 2 | trumpowd: possible-gpl-code-linked-with-openssl 3 | -------------------------------------------------------------------------------- /doc/gitian-building/all_files_in_one_partition.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/all_files_in_one_partition.png -------------------------------------------------------------------------------- /doc/gitian-building/create_vm_file_location_size.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/create_vm_file_location_size.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_1_boot_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_1_boot_menu.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_6_domain_name.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_6_domain_name.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 | -------------------------------------------------------------------------------- /doc/gitian-building/create_vm_hard_disk_file_type.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/create_vm_hard_disk_file_type.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_12_choose_disk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_12_choose_disk.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_20_install_grub.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_20_install_grub.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_9_user_password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_9_user_password.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_10_configure_clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_10_configure_clock.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_11_partition_disks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_11_partition_disks.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_15_write_changes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_15_write_changes.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_16_choose_a_mirror.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_16_choose_a_mirror.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_18_proxy_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_18_proxy_settings.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_3_select_location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_3_select_location.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_8_set_up_username.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/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_2_select_a_language.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_2_select_a_language.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_4_configure_keyboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/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_disk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/create_vm_storage_physical_hard_disk.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_19_software_selection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_19_software_selection.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_22_finish_installation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_22_finish_installation.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_5_configure_the_network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/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/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_6a_set_up_root_password.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_7_set_up_user_fullname.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_7_set_up_user_fullname.png -------------------------------------------------------------------------------- /doc/gitian-building/debian_install_21_install_grub_bootloader.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trumpowppc/trumpow/HEAD/doc/gitian-building/debian_install_21_install_grub_bootloader.png -------------------------------------------------------------------------------- /depends/builders/linux.mk: -------------------------------------------------------------------------------- 1 | build_linux_SHA256SUM = sha256sum 2 | build_linux_DOWNLOAD = curl --location --fail --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -o 3 | -------------------------------------------------------------------------------- /src/univalue/test/pass3.json: -------------------------------------------------------------------------------- 1 | { 2 | "JSON Test Pattern pass3": { 3 | "The outermost value": "must be an object or array.", 4 | "In this test": "It is an object." 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/test/data/txcreatesignv1.hex: -------------------------------------------------------------------------------- 1 | 01000000018594c5bdcaec8f06b78b596f31cd292a294fd031e24eec716f43dac91ea7494d0000000000ffffffff01a0860100000000001976a91435a9e7f76cea3555952290b5947e3bb611b4e3ad88ac00000000 2 | -------------------------------------------------------------------------------- /src/test/data/txcreatesignv2.hex: -------------------------------------------------------------------------------- 1 | 02000000018594c5bdcaec8f06b78b596f31cd292a294fd031e24eec716f43dac91ea7494d0000000000ffffffff01a0860100000000001976a91435a9e7f76cea3555952290b5947e3bb611b4e3ad88ac00000000 2 | -------------------------------------------------------------------------------- /src/test/data/txcreatedata_seq0.hex: -------------------------------------------------------------------------------- 1 | 02000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000fdffffff0180a81201000000001976a914167ecb84dc6528946351786d20905efa9420339488ac00000000 2 | -------------------------------------------------------------------------------- /.tx/config: -------------------------------------------------------------------------------- 1 | [main] 2 | host = https://www.transifex.com 3 | 4 | [bitcoin.qt-translation-014x] 5 | file_filter = src/qt/locale/bitcoin_.ts 6 | source_file = src/qt/locale/bitcoin_en.ts 7 | source_lang = en 8 | -------------------------------------------------------------------------------- /share/rpcuser/README.md: -------------------------------------------------------------------------------- 1 | RPC Tools 2 | --------------------- 3 | 4 | ### [RPCUser](/share/rpcuser) ### 5 | 6 | Create an RPC user login credential. 7 | 8 | Usage: 9 | 10 | ./rpcuser.py 11 | -------------------------------------------------------------------------------- /src/univalue/test/no_nul.cpp: -------------------------------------------------------------------------------- 1 | #include "univalue.h" 2 | 3 | int main (int argc, char *argv[]) 4 | { 5 | char buf[] = "___[1,2,3]___"; 6 | UniValue val; 7 | return val.read(buf + 3, 7) ? 0 : 1; 8 | } 9 | -------------------------------------------------------------------------------- /contrib/debian/trumpow-qt.protocol: -------------------------------------------------------------------------------- 1 | [Protocol] 2 | exec=trumpow-qt '%u' 3 | protocol=trumpow 4 | input=none 5 | output=none 6 | helper=true 7 | listing= 8 | reading=false 9 | writing=false 10 | makedir=false 11 | deleting=false 12 | -------------------------------------------------------------------------------- /doc/release-notes/release-notes-1.1.0.md: -------------------------------------------------------------------------------- 1 | ##Trumpow Core 1.1.0 Release Notes (Initial Release) 2 | 3 | ####Technical 4 | 5 | * Fix typo 6 | * Bump version to v1.1.0.0 7 | 8 | ####Design 9 | 10 | 11 | ####Documentation 12 | 13 | -------------------------------------------------------------------------------- /doc/release-notes/release-notes-1.0.1.md: -------------------------------------------------------------------------------- 1 | ##Trumpow Core 1.0.1 Release Notes (Initial Release) 2 | 3 | ####Technical 4 | 5 | * Add new checkpoint 6 | * Bump version to v1.0.1.0 7 | 8 | ####Design 9 | 10 | 11 | ####Documentation 12 | 13 | -------------------------------------------------------------------------------- /src/secp256k1/src/modules/ecdh/Makefile.am.include: -------------------------------------------------------------------------------- 1 | include_HEADERS += include/secp256k1_ecdh.h 2 | noinst_HEADERS += src/modules/ecdh/main_impl.h 3 | noinst_HEADERS += src/modules/ecdh/tests_impl.h 4 | noinst_HEADERS += src/modules/ecdh/bench_impl.h 5 | -------------------------------------------------------------------------------- /doc/man/Makefile.am: -------------------------------------------------------------------------------- 1 | dist_man1_MANS= 2 | 3 | if BUILD_BITCOIND 4 | dist_man1_MANS+=trumpowd.1 5 | endif 6 | 7 | if ENABLE_QT 8 | dist_man1_MANS+=trumpow-qt.1 9 | endif 10 | 11 | if BUILD_BITCOIN_UTILS 12 | dist_man1_MANS+=trumpow-cli.1 trumpow-tx.1 13 | endif 14 | -------------------------------------------------------------------------------- /src/univalue/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 10 | -------------------------------------------------------------------------------- /src/test/data/txcreatemultisig1.hex: -------------------------------------------------------------------------------- 1 | 01000000000100e1f5050000000069522102a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff39721021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d2102df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb48553ae00000000 2 | -------------------------------------------------------------------------------- /src/secp256k1/src/modules/extrakeys/Makefile.am.include: -------------------------------------------------------------------------------- 1 | include_HEADERS += include/secp256k1_extrakeys.h 2 | noinst_HEADERS += src/modules/extrakeys/tests_impl.h 3 | noinst_HEADERS += src/modules/extrakeys/tests_exhaustive_impl.h 4 | noinst_HEADERS += src/modules/extrakeys/main_impl.h 5 | -------------------------------------------------------------------------------- /src/test/data/txcreatedata_seq1.hex: -------------------------------------------------------------------------------- 1 | 01000000021f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000fdffffff1f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000010000000180a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac00000000 2 | -------------------------------------------------------------------------------- /src/univalue/TODO: -------------------------------------------------------------------------------- 1 | 2 | Rearrange tree for easier 'git subtree' style use 3 | 4 | Move towards C++11 etc. 5 | 6 | Namespace support - must come up with useful shorthand, avoiding 7 | long Univalue::Univalue::Univalue usages forced upon library users. 8 | 9 | Improve test suite 10 | 11 | -------------------------------------------------------------------------------- /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/trumpowppc/trumpow v(.*).tar.gz 6 | -------------------------------------------------------------------------------- /doc/release-notes/release-notes-1.1.1.md: -------------------------------------------------------------------------------- 1 | ##Trumpow Core 1.1.0 Release Notes (Initial Release) 2 | 3 | ####Technical 4 | 5 | * Security Improvement 6 | * Bump version to v1.1.1 7 | * Serialize templates 8 | 9 | ####Design 10 | 11 | * Using Dogecoin UI for QT 12 | 13 | ####Documentation 14 | 15 | -------------------------------------------------------------------------------- /src/univalue/test/round1.json: -------------------------------------------------------------------------------- 1 | ["\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u007f"] 2 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /src/univalue/pc/libunivalue.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libunivalue 7 | Description: libunivalue, C++ universal value object and JSON library 8 | Version: @VERSION@ 9 | Libs: -L${libdir} -lunivalue 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /contrib/debian/trumpow-qt.install: -------------------------------------------------------------------------------- 1 | usr/local/bin/trumpow-qt usr/bin 2 | share/pixmaps/trumpow32.xpm usr/share/pixmaps 3 | share/pixmaps/trumpow16.xpm usr/share/pixmaps 4 | share/pixmaps/trumpow128.png usr/share/pixmaps 5 | debian/trumpow-qt.desktop usr/share/applications 6 | debian/trumpow-qt.protocol usr/share/kde4/services/ 7 | -------------------------------------------------------------------------------- /src/univalue/pc/libunivalue-uninstalled.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libunivalue 7 | Description: libunivalue, C++ universal value object and JSON library 8 | Version: @VERSION@ 9 | Libs: ${pc_top_builddir}/${pcfiledir}/libunivalue.la 10 | -------------------------------------------------------------------------------- /qa/pull-tester/install-deps.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # installs test dependencies 4 | file=v1.0.1.tar.gz 5 | curl -L -O https://github.com/dogecoin/ltc-scrypt/archive/refs/tags/$file 6 | echo "e866ade37fb27439ae0ca32f1ee4ad32be428c1fdac9bcc988b36c68648ff0de $file" | sha256sum -c 7 | python3 -m pip install $file --user 8 | rm -rf $file 9 | -------------------------------------------------------------------------------- /src/secp256k1/src/modules/recovery/Makefile.am.include: -------------------------------------------------------------------------------- 1 | include_HEADERS += include/secp256k1_recovery.h 2 | noinst_HEADERS += src/modules/recovery/main_impl.h 3 | noinst_HEADERS += src/modules/recovery/tests_impl.h 4 | noinst_HEADERS += src/modules/recovery/tests_exhaustive_impl.h 5 | noinst_HEADERS += src/modules/recovery/bench_impl.h 6 | -------------------------------------------------------------------------------- /contrib/nixos/shell.nix: -------------------------------------------------------------------------------- 1 | { pkgs ? import { } }: 2 | with pkgs; 3 | mkShell { 4 | nativeBuildInputs = [ 5 | pkg-config 6 | autoreconfHook 7 | openssl 8 | db5 9 | util-linux 10 | boost 11 | zlib 12 | libevent 13 | miniupnpc 14 | qt4 15 | protobuf 16 | qrencode 17 | ]; 18 | } 19 | -------------------------------------------------------------------------------- /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/secp256k1/src/modules/schnorrsig/Makefile.am.include: -------------------------------------------------------------------------------- 1 | include_HEADERS += include/secp256k1_schnorrsig.h 2 | noinst_HEADERS += src/modules/schnorrsig/main_impl.h 3 | noinst_HEADERS += src/modules/schnorrsig/tests_impl.h 4 | noinst_HEADERS += src/modules/schnorrsig/tests_exhaustive_impl.h 5 | noinst_HEADERS += src/modules/schnorrsig/bench_impl.h 6 | -------------------------------------------------------------------------------- /src/noui.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013-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_NOUI_H 6 | #define BITCOIN_NOUI_H 7 | 8 | extern void noui_connect(); 9 | 10 | #endif // BITCOIN_NOUI_H 11 | -------------------------------------------------------------------------------- /src/test/data/blanktxv1.json: -------------------------------------------------------------------------------- 1 | { 2 | "txid": "d21633ba23f70118185227be58a63527675641ad37967e2aa461559f577aec43", 3 | "hash": "d21633ba23f70118185227be58a63527675641ad37967e2aa461559f577aec43", 4 | "version": 1, 5 | "locktime": 0, 6 | "vin": [ 7 | ], 8 | "vout": [ 9 | ], 10 | "hex": "01000000000000000000" 11 | } 12 | -------------------------------------------------------------------------------- /src/test/data/blanktxv2.json: -------------------------------------------------------------------------------- 1 | { 2 | "txid": "4ebd325a4b394cff8c57e8317ccf5a8d0e2bdf1b8526f8aad6c8e43d8240621a", 3 | "hash": "4ebd325a4b394cff8c57e8317ccf5a8d0e2bdf1b8526f8aad6c8e43d8240621a", 4 | "version": 2, 5 | "locktime": 0, 6 | "vin": [ 7 | ], 8 | "vout": [ 9 | ], 10 | "hex": "02000000000000000000" 11 | } 12 | -------------------------------------------------------------------------------- /doc/release-notes/release-notes-1.2.0.md: -------------------------------------------------------------------------------- 1 | ##Trumpow Core 1.1.0 Release Notes (Initial Release) 2 | 3 | ####Technical 4 | 5 | * Security Improvement 6 | * Bump version to v1.2.0 7 | * Serialize templates 8 | * Sync with Dogecoin latest version v.14.9 (2024) 9 | 10 | ####Design 11 | 12 | * Using Dogecoin UI for QT 13 | 14 | ####Documentation 15 | 16 | -------------------------------------------------------------------------------- /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: @PACKAGE_NAME@ 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 | -------------------------------------------------------------------------------- /src/test/data/txcreatedata1.hex: -------------------------------------------------------------------------------- 1 | 02000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff0280a81201000000001976a914167ecb84dc6528946351786d20905efa9420339488ac0084d71700000000526a4c4f54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e00000000 2 | -------------------------------------------------------------------------------- /src/test/data/txcreatedata2.hex: -------------------------------------------------------------------------------- 1 | 02000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff0280a81201000000001976a914167ecb84dc6528946351786d20905efa9420339488ac0000000000000000526a4c4f54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e00000000 2 | -------------------------------------------------------------------------------- /contrib/init/README.md: -------------------------------------------------------------------------------- 1 | Sample configuration files for: 2 | 3 | SystemD: trumpowd.service 4 | Upstart: trumpowd.conf 5 | OpenRC: trumpowd.openrc 6 | trumpowd.openrcconf 7 | CentOS: trumpowd.init 8 | OS X: org.trumpow.trumpowd.plist 9 | 10 | have been made available to assist packagers in creating node packages here. 11 | 12 | See doc/init.md for more information. 13 | -------------------------------------------------------------------------------- /depends/patches/qt/fix_qt_pkgconfig.patch: -------------------------------------------------------------------------------- 1 | --- old/qtbase/mkspecs/features/qt_module.prf 2 | +++ new/qtbase/mkspecs/features/qt_module.prf 3 | @@ -245,7 +245,7 @@ 4 | load(qt_targets) 5 | 6 | # this builds on top of qt_common 7 | -!internal_module:!lib_bundle:if(unix|mingw) { 8 | +unix|mingw { 9 | CONFIG += create_pc 10 | QMAKE_PKGCONFIG_DESTDIR = pkgconfig 11 | host_build: \ 12 | -------------------------------------------------------------------------------- /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/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/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-core/secp256k1 9 | Version: @PACKAGE_VERSION@ 10 | Cflags: -I${includedir} 11 | Libs: -L${libdir} -lsecp256k1 12 | Libs.private: @SECP_LIBS@ 13 | 14 | -------------------------------------------------------------------------------- /.github/workflows/linter.yml: -------------------------------------------------------------------------------- 1 | name: linter 2 | on: 3 | push: 4 | paths-ignore: 5 | - '**/*.md' 6 | pull_request: 7 | paths-ignore: 8 | - '**/*.md' 9 | 10 | jobs: 11 | translations: 12 | name: Check Translations 13 | runs-on: ubuntu-24.04 14 | steps: 15 | - uses: actions/checkout@v4 16 | - name: Lint translation files 17 | run: python3 contrib/devtools/check-translations.py -------------------------------------------------------------------------------- /contrib/devtools/split-debug.sh.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ $# -ne 3 ]; 4 | then echo "usage: $0 " 5 | fi 6 | 7 | @OBJCOPY@ --enable-deterministic-archives -p --only-keep-debug $1 $3 8 | @OBJCOPY@ --enable-deterministic-archives -p --strip-debug $1 $2 9 | @STRIP@ --enable-deterministic-archives -p -s $2 10 | @OBJCOPY@ --enable-deterministic-archives -p --add-gnu-debuglink=$3 $2 11 | -------------------------------------------------------------------------------- /src/secp256k1/doc/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | This file is currently only a template for future use. 4 | 5 | Each change falls into one of the following categories: Added, Changed, Deprecated, Removed, Fixed or Security. 6 | 7 | ## [Unreleased] 8 | 9 | ## [MAJOR.MINOR.PATCH] - YYYY-MM-DD 10 | 11 | ### Added/Changed/Deprecated/Removed/Fixed/Security 12 | - [Title with link to Pull Request](https://link-to-pr) 13 | -------------------------------------------------------------------------------- /src/test/data/txcreate1.hex: -------------------------------------------------------------------------------- 1 | 02000000031f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000ffffffff7cca453133921c50d5025878f7f738d1df891fd359763331935784cf6b9c82bf1200000000fffffffffccd319e04a996c96cfc0bf4c07539aa90bd0b1a700ef72fae535d6504f9a6220100000000ffffffff0280a81201000000001976a9145478a55e13d55a6c9abf86e1805b87c8c0c99fd888ac0084d717000000001976a914202f0159b25c64d616349eca55f8d02c316a551588ac00000000 2 | -------------------------------------------------------------------------------- /src/wallet/rpcwallet.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 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_WALLET_RPCWALLET_H 6 | #define BITCOIN_WALLET_RPCWALLET_H 7 | 8 | class CRPCTable; 9 | 10 | void RegisterWalletRPCCommands(CRPCTable &t); 11 | 12 | #endif //BITCOIN_WALLET_RPCWALLET_H 13 | -------------------------------------------------------------------------------- /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/univalue/.gitignore: -------------------------------------------------------------------------------- 1 | .deps/ 2 | INSTALL 3 | Makefile 4 | Makefile.in 5 | aclocal.m4 6 | autom4te.cache/ 7 | compile 8 | config.log 9 | config.status 10 | config.guess 11 | config.sub 12 | configure 13 | depcomp 14 | install-sh 15 | missing 16 | stamp-h1 17 | univalue-config.h* 18 | test-driver 19 | libtool 20 | ltmain.sh 21 | test-suite.log 22 | 23 | *.a 24 | *.la 25 | *.lo 26 | *.logs 27 | *.o 28 | *.pc 29 | *.trs 30 | 31 | .dirstamp 32 | .libs 33 | -------------------------------------------------------------------------------- /depends/patches/zeromq/clock-unused-nsecs.patch: -------------------------------------------------------------------------------- 1 | diff -dur a/src/clock.cpp b/src/clock.cpp 2 | --- a/src/clock.cpp 2021-07-12 21:15:35.111146311 +0000 3 | +++ b/src/clock.cpp 2021-07-12 21:22:09.059753013 +0000 4 | @@ -194,6 +194,7 @@ 5 | #else 6 | 7 | // Use POSIX gettimeofday function to get precise time. 8 | + LIBZMQ_UNUSED (nsecs_per_usec); 9 | struct timeval tv; 10 | int rc = gettimeofday (&tv, NULL); 11 | errno_assert (rc == 0); 12 | -------------------------------------------------------------------------------- /src/leveldb/port/README.md: -------------------------------------------------------------------------------- 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_stdcxx.h for an example of what must be provided in a platform 9 | specific header file. 10 | 11 | -------------------------------------------------------------------------------- /src/test/testutil.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2016 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 | /** 6 | * Utility functions shared by unit tests 7 | */ 8 | #ifndef BITCOIN_TEST_TESTUTIL_H 9 | #define BITCOIN_TEST_TESTUTIL_H 10 | 11 | #include "fs.h" 12 | 13 | fs::path GetTempPath(); 14 | 15 | #endif // BITCOIN_TEST_TESTUTIL_H 16 | -------------------------------------------------------------------------------- /contrib/debian/trumpow-qt.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Trumpow Core 3 | Comment=Connect to the Trumpow P2P Network 4 | Comment[de]=Verbinde mit dem Trumpow peer-to-peer Netzwerk 5 | Comment[fr]=Trumpow, monnaie virtuelle cryptographique pair à pair 6 | Comment[tr]=Trumpow, eşten eşe kriptografik sanal para birimi 7 | Exec=trumpow-qt %u 8 | Terminal=false 9 | Type=Application 10 | Icon=trumpow128 11 | MimeType=x-scheme-handler/trumpow; 12 | Categories=Office;Finance; 13 | -------------------------------------------------------------------------------- /contrib/qos/README.md: -------------------------------------------------------------------------------- 1 | ### QoS (Quality of service) ### 2 | 3 | This is a Linux bash script that will set up tc to limit the outgoing bandwidth for connections to the Trumpow network. It limits outbound TCP traffic with a source or destination port of 14327, but not if the destination IP is within a LAN. 4 | 5 | This means one can have an always-on trumpowd instance running, and another local trumpowd/trumpow-qt instance which connects to this node and receives blocks from it. 6 | -------------------------------------------------------------------------------- /depends/patches/libevent/glibc_compatibility.patch: -------------------------------------------------------------------------------- 1 | Avoid getrandom@GLIBC_2.25 symbol. 2 | 3 | --- old/config.h.in 4 | +++ new/config.h.in 5 | @@ -101,9 +101,6 @@ 6 | /* Define to 1 if you have the `getprotobynumber' function. */ 7 | #undef HAVE_GETPROTOBYNUMBER 8 | 9 | -/* Define to 1 if you have the `getrandom' function. */ 10 | -#undef HAVE_GETRANDOM 11 | - 12 | /* Define to 1 if you have the `getservbyname' function. */ 13 | #undef HAVE_GETSERVBYNAME 14 | 15 | -------------------------------------------------------------------------------- /contrib/gitian-keys/README.md: -------------------------------------------------------------------------------- 1 | PGP keys 2 | ======== 3 | 4 | This folder contains the public keys of developers and active contributors. 5 | 6 | The keys are mainly used to sign git commits or the build results of gitian 7 | builds. 8 | 9 | You can import the keys into gpg as follows. Also, make sure to fetch the 10 | latest version from the key server to see if any key was revoked in the 11 | meantime. 12 | 13 | ```sh 14 | gpg --import ./*.pgp 15 | gpg --refresh-keys 16 | ``` 17 | -------------------------------------------------------------------------------- /src/qt/res/movies/makespinner.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014-2015 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 | FRAMEDIR=$(dirname $0) 6 | for i in {0..35} 7 | do 8 | frame=$(printf "%03d" $i) 9 | angle=$(($i * 10)) 10 | convert $FRAMEDIR/../src/spinner.png -background "rgba(0,0,0,0.0)" -distort SRT $angle $FRAMEDIR/spinner-$frame.png 11 | done 12 | -------------------------------------------------------------------------------- /doc/build-archlinux.md: -------------------------------------------------------------------------------- 1 | Arch Linux build guide 2 | ---------------------- 3 | 4 | **Last tested with:** 1.2.0.0-dev 5 | **Test date:** 2025/08/13 6 | 7 | This example lists the steps necessary to setup and build a command line only 8 | trumpowd on archlinux: 9 | 10 | ```sh 11 | pacman -S git base-devel boost libevent python db 12 | git clone https://github.com/trumpowppc/trumpow.git 13 | cd trumpow/ 14 | ./autogen.sh 15 | ./configure --without-gui --without-miniupnpc 16 | make 17 | ``` 18 | -------------------------------------------------------------------------------- /contrib/init/org.trumpow.trumpowd.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Label 6 | org.trumpow.trumpowd 7 | ProgramArguments 8 | 9 | /usr/local/bin/trumpowd 10 | -daemon 11 | 12 | RunAtLoad 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /contrib/rpm/bitcoin.fc: -------------------------------------------------------------------------------- 1 | /usr/bin/bitcoin-cli -- gen_context(system_u:object_r:bitcoin_exec_t,s0) 2 | /usr/sbin/bitcoind -- gen_context(system_u:object_r:bitcoin_exec_t,s0) 3 | /usr/lib(64)?/bitcoin/bitcoind -- gen_context(system_u:object_r:bitcoin_exec_t,s0) 4 | 5 | /etc/bitcoin(/.*)? gen_context(system_u:object_r:bitcoin_conf_t,s0) 6 | /var/lib/bitcoin(/.*)? gen_context(system_u:object_r:bitcoin_var_lib_t,s0) 7 | 8 | (/var)?/run/bitcoind(/.*)? gen_context(system_u:object_r:bitcoin_var_run_t,s0) 9 | -------------------------------------------------------------------------------- /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() : comparator(BytewiseComparator()), env(Env::Default()) {} 13 | 14 | } // namespace leveldb 15 | -------------------------------------------------------------------------------- /src/wallet/rpcutil.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2022 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 | /** 6 | * Utility functions for RPC commands 7 | */ 8 | #ifndef TRUMPOW_WALLET_UTIL_H 9 | #define TRUMPOW_WALLET_UTIL_H 10 | 11 | #include "fs.h" 12 | #include "util.h" 13 | 14 | fs::path GetBackupDirFromInput(std::string strUserFilename); 15 | 16 | #endif // TRUMPOW_WALLET_UTIL_H 17 | -------------------------------------------------------------------------------- /src/qt/test/uritests.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2015 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 Q_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 | -------------------------------------------------------------------------------- /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 | // Attempt to overwrite data in the specified memory span. 12 | void memory_cleanse(void *ptr, size_t len); 13 | 14 | #endif // BITCOIN_SUPPORT_CLEANSE_H 15 | -------------------------------------------------------------------------------- /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 `Trumpow-Core.dmg`. 15 | 16 | -------------------------------------------------------------------------------- /src/qt/test/compattests.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2016 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_COMPATTESTS_H 6 | #define BITCOIN_QT_TEST_COMPATTESTS_H 7 | 8 | #include 9 | #include 10 | 11 | class CompatTests : public QObject 12 | { 13 | Q_OBJECT 14 | 15 | private Q_SLOTS: 16 | void bswapTests(); 17 | }; 18 | 19 | #endif // BITCOIN_QT_TEST_COMPATTESTS_H 20 | -------------------------------------------------------------------------------- /src/qt/res/src/tx_in.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /depends/patches/qt/fix_qfontengine_coretext.patch: -------------------------------------------------------------------------------- 1 | --- old/qtbase/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm 2 | +++ new/qtbase/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm 3 | @@ -824,7 +824,7 @@ void QCoreTextFontEngine::getUnscaledGlyph(glyph_t glyph, QPainterPath *path, gl 4 | 5 | QFixed QCoreTextFontEngine::emSquareSize() const 6 | { 7 | - return QFixed::QFixed(int(CTFontGetUnitsPerEm(ctfont))); 8 | + return QFixed(int(CTFontGetUnitsPerEm(ctfont))); 9 | } 10 | 11 | QFontEngine *QCoreTextFontEngine::cloneWithSize(qreal pixelSize) const 12 | -------------------------------------------------------------------------------- /autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2013-2016 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 | set -e 7 | srcdir="$(dirname $0)" 8 | cd "$srcdir" 9 | if [ -z ${LIBTOOLIZE} ] && GLIBTOOLIZE="`which glibtoolize 2>/dev/null`"; then 10 | LIBTOOLIZE="${GLIBTOOLIZE}" 11 | export LIBTOOLIZE 12 | fi 13 | which autoreconf >/dev/null || \ 14 | (echo "configuration failed, please install autoconf first" && exit 1) 15 | autoreconf --install --force --warnings=all 16 | -------------------------------------------------------------------------------- /qa/pull-tester/tests_config.py.in: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # Copyright (c) 2013-2016 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 | SRCDIR="@abs_top_srcdir@" 7 | BUILDDIR="@abs_top_builddir@" 8 | EXEEXT="@EXEEXT@" 9 | 10 | # These will turn into comments if they were disabled when configuring. 11 | @ENABLE_WALLET_TRUE@ENABLE_WALLET=1 12 | @BUILD_BITCOIN_UTILS_TRUE@ENABLE_UTILS=1 13 | @BUILD_BITCOIND_TRUE@ENABLE_TRUMPOWD=1 14 | @ENABLE_ZMQ_TRUE@ENABLE_ZMQ=1 15 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/fs.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2017 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 "fs.h" 6 | 7 | #include 8 | 9 | namespace fsbridge { 10 | 11 | FILE *fopen(const fs::path& p, const char *mode) 12 | { 13 | return ::fopen(p.string().c_str(), mode); 14 | } 15 | 16 | FILE *freopen(const fs::path& p, const char *mode, FILE *stream) 17 | { 18 | return ::freopen(p.string().c_str(), mode, stream); 19 | } 20 | 21 | } // fsbridge 22 | -------------------------------------------------------------------------------- /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/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/test/data/txcreate2.json: -------------------------------------------------------------------------------- 1 | { 2 | "txid": "0481afb29931341d0d7861d8a2f6f26456fa042abf54a23e96440ed7946e0715", 3 | "hash": "0481afb29931341d0d7861d8a2f6f26456fa042abf54a23e96440ed7946e0715", 4 | "version": 2, 5 | "locktime": 0, 6 | "vin": [ 7 | ], 8 | "vout": [ 9 | { 10 | "value": 0.00, 11 | "n": 0, 12 | "scriptPubKey": { 13 | "asm": "", 14 | "hex": "", 15 | "type": "nonstandard" 16 | } 17 | } 18 | ], 19 | "hex": "02000000000100000000000000000000000000" 20 | } 21 | -------------------------------------------------------------------------------- /depends/patches/intel-ipsec-mb/remove_digest_init.patch: -------------------------------------------------------------------------------- 1 | diff -dur a/lib/include/sha_generic.h b/lib/include/sha_generic.h 2 | index 3752546..77efd91 100644 3 | --- a/lib/include/sha_generic.h 4 | +++ b/lib/include/sha_generic.h 5 | @@ -308,7 +308,7 @@ void sha_generic_1block(const void *data, void *digest, 6 | if (data == NULL || digest == NULL) 7 | return; 8 | #endif 9 | - sha_generic_init(digest, sha_type); 10 | +// sha_generic_init(digest, sha_type); 11 | sha_generic_one_block(data, digest, is_avx, sha_type); 12 | #ifdef SAFE_DATA 13 | clear_scratch_gps(); 14 | -------------------------------------------------------------------------------- /src/compat/arm_acle_selector.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2022 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 | // Replace the broken arm_acle.h included in Ubuntu's package 6 | // libgcc-9-dev-arm64-cross (9.4.0-1ubuntu1~20.04.1cross2) 7 | // with the patched version from 8c92fcb13a4979232787f0476bf7469ccbb03617 8 | // at https://gcc.gnu.org/git/?p=gcc.git 9 | #if (__GNUC__ == 9 && __GNUC_MINOR__ == 4) 10 | # include "compat/arm_acle_patched.h" 11 | #else 12 | # include 13 | #endif 14 | -------------------------------------------------------------------------------- /src/test/data/txcreatescript1.json: -------------------------------------------------------------------------------- 1 | { 2 | "txid": "f0851b68202f736b792649cfc960259c2374badcb644ab20cac726b5f72f61c9", 3 | "hash": "f0851b68202f736b792649cfc960259c2374badcb644ab20cac726b5f72f61c9", 4 | "version": 1, 5 | "locktime": 0, 6 | "vin": [ 7 | ], 8 | "vout": [ 9 | { 10 | "value": 0.00, 11 | "n": 0, 12 | "scriptPubKey": { 13 | "asm": "OP_DROP", 14 | "hex": "75", 15 | "type": "nonstandard" 16 | } 17 | } 18 | ], 19 | "hex": "0100000000010000000000000000017500000000" 20 | } 21 | -------------------------------------------------------------------------------- /src/wallet/test/wallet_test_fixture.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 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_WALLET_TEST_FIXTURE_H 6 | #define BITCOIN_WALLET_TEST_FIXTURE_H 7 | 8 | #include "test/test_bitcoin.h" 9 | 10 | /** Testing setup and teardown for wallet. 11 | */ 12 | struct WalletTestingSetup: public TestingSetup { 13 | WalletTestingSetup(const std::string& chainName = CBaseChainParams::MAIN); 14 | ~WalletTestingSetup(); 15 | }; 16 | 17 | #endif 18 | 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 | uint32_t Hash(const char* data, size_t n, uint32_t seed); 16 | 17 | } // namespace leveldb 18 | 19 | #endif // STORAGE_LEVELDB_UTIL_HASH_H_ 20 | -------------------------------------------------------------------------------- /src/utilmemory.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2018 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_UTIL_MEMORY_H 7 | #define BITCOIN_UTIL_MEMORY_H 8 | 9 | #include 10 | #include 11 | 12 | //! Substitute for C++14 std::make_unique. 13 | template 14 | std::unique_ptr MakeUnique(Args&&... args) 15 | { 16 | return std::unique_ptr(new T(std::forward(args)...)); 17 | } 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /src/zmq/zmqabstractnotifier.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 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 "zmqabstractnotifier.h" 6 | #include "util.h" 7 | 8 | 9 | CZMQAbstractNotifier::~CZMQAbstractNotifier() 10 | { 11 | assert(!psocket); 12 | } 13 | 14 | bool CZMQAbstractNotifier::NotifyBlock(const CBlockIndex * /*CBlockIndex*/) 15 | { 16 | return true; 17 | } 18 | 19 | bool CZMQAbstractNotifier::NotifyTransaction(const CTransaction &/*transaction*/) 20 | { 21 | return true; 22 | } 23 | -------------------------------------------------------------------------------- /depends/packages/native_nasm.mk: -------------------------------------------------------------------------------- 1 | package=native_nasm 2 | $(package)_version=2.15.05 3 | $(package)_download_path=http://nasm.us/pub/nasm/releasebuilds/$($(package)_version) 4 | $(package)_file_name=nasm-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=3c4b8339e5ab54b1bcb2316101f8985a5da50a3f9e504d43fa6f35668bee2fd0 6 | 7 | define $(package)_config_cmds 8 | $($(package)_autoconf) 9 | endef 10 | 11 | define $(package)_build_cmds 12 | $(MAKE) 13 | endef 14 | 15 | define $(package)_stage_cmds 16 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 17 | endef 18 | 19 | define $(package)_postprocess_cmds 20 | rm -rf share 21 | endef 22 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/zmq/zmqconfig.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_ZMQ_ZMQCONFIG_H 6 | #define BITCOIN_ZMQ_ZMQCONFIG_H 7 | 8 | #if defined(HAVE_CONFIG_H) 9 | #include "config/bitcoin-config.h" 10 | #endif 11 | 12 | #include 13 | #include 14 | 15 | #if ENABLE_ZMQ 16 | #include 17 | #endif 18 | 19 | #include "primitives/block.h" 20 | #include "primitives/transaction.h" 21 | 22 | void zmqError(const char *str); 23 | 24 | #endif // BITCOIN_ZMQ_ZMQCONFIG_H 25 | -------------------------------------------------------------------------------- /src/qt/res/src/transaction0.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /depends/packages/expat.mk: -------------------------------------------------------------------------------- 1 | package=expat 2 | $(package)_version=2.6.2 3 | $(package)_download_path=https://downloads.sourceforge.net/project/expat/expat/$($(package)_version) 4 | $(package)_file_name=$(package)-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=9C7C1B5DCBC3C237C500A8FB1493E14D9582146DD9B42AA8D3FFB856A3B927E0 6 | 7 | define $(package)_config_cmds 8 | $($(package)_autoconf) 9 | endef 10 | 11 | define $(package)_build_cmds 12 | $(MAKE) 13 | endef 14 | 15 | define $(package)_stage_cmds 16 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 17 | endef 18 | 19 | define $(package)_postprocess_cmds 20 | rm -rf share lib/cmake lib/*.la 21 | endef 22 | -------------------------------------------------------------------------------- /src/bench/scrypt.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include "bench.h" 5 | #include "crypto/scrypt.h" 6 | #include "uint256.h" 7 | #include "utiltime.h" 8 | #include "utilstrencodings.h" 9 | 10 | // 80 bytes input, size of CPureBlockHeader 11 | static const uint64_t BUFFER_SIZE = 80; 12 | 13 | static void Scrypt(benchmark::State& state) 14 | { 15 | uint256 output; 16 | std::vector in(BUFFER_SIZE, 0); 17 | 18 | #ifdef USE_SSE2 19 | scrypt_detect_sse2(); 20 | #endif // USE_SSE2 21 | 22 | while (state.KeepRunning()) 23 | { 24 | scrypt_1024_1_1_256(in.data(), BEGIN(output)); 25 | } 26 | } 27 | 28 | BENCHMARK(Scrypt); 29 | -------------------------------------------------------------------------------- /src/wallet/rpcutil.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2022 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 "wallet/rpcutil.h" 6 | 7 | #include "fs.h" 8 | 9 | fs::path GetBackupDirFromInput(std::string strUserFilename) 10 | { 11 | const fs::path backupDir = GetBackupDir(); 12 | 13 | if (strUserFilename != "") { 14 | fs::path p(strUserFilename); 15 | fs::path filename = p.filename(); 16 | 17 | if (!filename.empty()) 18 | return backupDir / filename; 19 | } 20 | 21 | return backupDir; 22 | } 23 | -------------------------------------------------------------------------------- /src/qt/test/rpcnestedtests.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 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_RPC_NESTED_TESTS_H 6 | #define BITCOIN_QT_TEST_RPC_NESTED_TESTS_H 7 | 8 | #include 9 | #include 10 | 11 | #include "txdb.h" 12 | #include "txmempool.h" 13 | 14 | class RPCNestedTests : public QObject 15 | { 16 | Q_OBJECT 17 | 18 | private Q_SLOTS: 19 | void rpcNestedTests(); 20 | 21 | private: 22 | CCoinsViewDB *pcoinsdbview; 23 | }; 24 | 25 | #endif // BITCOIN_QT_TEST_RPC_NESTED_TESTS_H 26 | -------------------------------------------------------------------------------- /src/torcontrol.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 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 | /** 6 | * Functionality for communicating with Tor. 7 | */ 8 | #ifndef BITCOIN_TORCONTROL_H 9 | #define BITCOIN_TORCONTROL_H 10 | 11 | #include "scheduler.h" 12 | 13 | extern const std::string DEFAULT_TOR_CONTROL; 14 | static const bool DEFAULT_LISTEN_ONION = true; 15 | 16 | void StartTorControl(boost::thread_group& threadGroup, CScheduler& scheduler); 17 | void InterruptTorControl(); 18 | void StopTorControl(); 19 | 20 | #endif /* BITCOIN_TORCONTROL_H */ 21 | -------------------------------------------------------------------------------- /src/secp256k1/src/basic-config.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Copyright (c) 2013, 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or https://www.opensource.org/licenses/mit-license.php.* 5 | ***********************************************************************/ 6 | 7 | #ifndef SECP256K1_BASIC_CONFIG_H 8 | #define SECP256K1_BASIC_CONFIG_H 9 | 10 | #ifdef USE_BASIC_CONFIG 11 | 12 | #define ECMULT_WINDOW_SIZE 15 13 | #define ECMULT_GEN_PREC_BITS 4 14 | 15 | #endif /* USE_BASIC_CONFIG */ 16 | 17 | #endif /* SECP256K1_BASIC_CONFIG_H */ 18 | -------------------------------------------------------------------------------- /src/qt/coincontroltreewidget.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_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 | -------------------------------------------------------------------------------- /src/utilmoneystr.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 | /** 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); 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/native_ccache.mk: -------------------------------------------------------------------------------- 1 | package=native_ccache 2 | $(package)_version=3.3.3 3 | $(package)_download_path=https://samba.org/ftp/ccache 4 | $(package)_file_name=ccache-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=2985bc5e32ebe38d2958d508eb54ddcad39eed909489c0c2988035214597ca54 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 | -------------------------------------------------------------------------------- /src/bench/bench_bitcoin.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015-2016 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 "bench.h" // for BenchRunner 6 | #include "key.h" // for ECC_Start, ECC_Stop 7 | #include "util.h" // for SetupEnvironment, fPrintToDebugLog 8 | #include "random.h" 9 | 10 | int 11 | main(int argc, char** argv) 12 | { 13 | RandomInit(); 14 | ECC_Start(); 15 | SetupEnvironment(); 16 | fPrintToDebugLog = false; // don't want to write to debug.log file 17 | 18 | benchmark::BenchRunner::RunAll(); 19 | 20 | ECC_Stop(); 21 | } 22 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/utilstring.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2019 The Bitcoin Core developers 2 | // Copyright (c) 2022 The Dogecoin 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_UTIL_STRING_H 7 | #define BITCOIN_UTIL_STRING_H 8 | 9 | #include "attributes.h" 10 | 11 | #include 12 | #include 13 | 14 | /** 15 | * Check if a string does not contain any embedded NUL (\0) characters 16 | */ 17 | NODISCARD inline bool ValidAsCString(const std::string& str) noexcept 18 | { 19 | return str.size() == strlen(str.c_str()); 20 | } 21 | 22 | #endif // BITCOIN_UTIL_STRING_H 23 | -------------------------------------------------------------------------------- /depends/packages/qrencode.mk: -------------------------------------------------------------------------------- 1 | package=qrencode 2 | $(package)_version=3.4.4 3 | $(package)_download_path=https://fukuchi.org/works/qrencode/ 4 | $(package)_file_name=qrencode-$(qrencode_version).tar.bz2 5 | $(package)_sha256_hash=efe5188b1ddbcbf98763b819b146be6a90481aac30cfc8d858ab78a19cde1fa5 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/test/test_random.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2016 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_TEST_RANDOM_H 7 | #define BITCOIN_TEST_RANDOM_H 8 | 9 | #include "random.h" 10 | 11 | extern FastRandomContext insecure_rand_ctx; 12 | 13 | static inline void seed_insecure_rand(bool fDeterministic = false) 14 | { 15 | insecure_rand_ctx = FastRandomContext(fDeterministic); 16 | } 17 | 18 | static inline uint32_t insecure_rand(void) 19 | { 20 | return insecure_rand_ctx.rand32(); 21 | } 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /contrib/debian/README.md: -------------------------------------------------------------------------------- 1 | 2 | Debian 3 | ==================== 4 | This directory contains files used to package trumpowd/trumpow-qt 5 | for Debian-based Linux systems. If you compile trumpowd/trumpow-qt yourself, there are some useful files here. 6 | 7 | ## trumpow: URI support ## 8 | 9 | 10 | trumpow-qt.desktop (Gnome / Open Desktop) 11 | To install: 12 | 13 | sudo desktop-file-install trumpow-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 trumpow-qt binary to `/usr/bin` 18 | and the `../../share/pixmaps/trumpow128.png` to `/usr/share/pixmaps` 19 | 20 | trumpow-qt.protocol (KDE) 21 | 22 | -------------------------------------------------------------------------------- /src/qt/verticallabel.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 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 | #ifndef VERTICALLABEL_H 6 | #define VERTICALLABEL_H 7 | 8 | #include 9 | 10 | class VerticalLabel : public QLabel 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit VerticalLabel(QWidget *parent = 0); 16 | explicit VerticalLabel(const QString& text, QWidget *parent = 0); 17 | ~VerticalLabel(); 18 | 19 | protected: 20 | void paintEvent(QPaintEvent*); 21 | QSize sizeHint() const; 22 | QSize minimumSizeHint() const; 23 | }; 24 | 25 | #endif // VERTICALLABEL_H 26 | -------------------------------------------------------------------------------- /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_ds_store.mk: -------------------------------------------------------------------------------- 1 | package=native_ds_store 2 | $(package)_version=1.1.0 3 | $(package)_download_path=https://github.com/al45tair/ds_store/archive/ 4 | $(package)_file_name=v$($(package)_version).tar.gz 5 | $(package)_sha256_hash=a9f4c0755c6be7224ff7029e188dd262e830bb81e801424841db9eb0780ec8ed 6 | $(package)_install_libdir=$(build_prefix)/lib/python/dist-packages 7 | $(package)_dependencies=native_biplist 8 | 9 | define $(package)_build_cmds 10 | python3 setup.py build 11 | endef 12 | 13 | define $(package)_stage_cmds 14 | mkdir -p $($(package)_install_libdir) && \ 15 | python3 setup.py install --root=$($(package)_staging_dir) --prefix=$(build_prefix) --install-lib=$($(package)_install_libdir) 16 | endef 17 | -------------------------------------------------------------------------------- /doc/build-nixos.md: -------------------------------------------------------------------------------- 1 | NixOS build guide 2 | ------------------------------ 3 | This guide lists the steps necessary to setup and build a full GUI distribution 4 | of the latest changes on NixOS. 5 | 6 | Clone and enter the repo: 7 | 8 | $ git clone https://github.com/trumpowppc/trumpow 9 | $ cd trumpow 10 | 11 | Enter the `nix-shell` environment with all the Trumpow dependencies present: 12 | 13 | $ nix-shell ./contrib/nixos/shell.nix 14 | 15 | Run the build steps with flags necessary for NixOS: 16 | 17 | $ ./autogen.sh 18 | $ ./configure --with-incompatible-bdb --with-boost-libdir="$(nix eval --raw nixpkgs.boost.out)/lib" --with-gui 19 | $ make 20 | 21 | Start the GUI! 22 | 23 | $ ./src/qt/trumpow-qt 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 | -------------------------------------------------------------------------------- /src/secp256k1/src/ecmult_gen_compute_table.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Copyright (c) 2013, 2014, 2015 Pieter Wuille, Gregory Maxwell * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or https://www.opensource.org/licenses/mit-license.php.* 5 | ***********************************************************************/ 6 | 7 | #ifndef SECP256K1_ECMULT_GEN_COMPUTE_TABLE_H 8 | #define SECP256K1_ECMULT_GEN_COMPUTE_TABLE_H 9 | 10 | #include "ecmult_gen.h" 11 | 12 | static void secp256k1_ecmult_gen_compute_table(secp256k1_ge_storage* table, const secp256k1_ge* gen, int bits); 13 | 14 | #endif /* SECP256K1_ECMULT_GEN_COMPUTE_TABLE_H */ 15 | -------------------------------------------------------------------------------- /src/test/data/txcreateoutpubkey2.json: -------------------------------------------------------------------------------- 1 | { 2 | "txid": "70f2a088cde460e677415fa1fb71895e90c231e6ed38ed203a35b6f848e9cc73", 3 | "hash": "70f2a088cde460e677415fa1fb71895e90c231e6ed38ed203a35b6f848e9cc73", 4 | "version": 1, 5 | "locktime": 0, 6 | "vin": [ 7 | ], 8 | "vout": [ 9 | { 10 | "value": 0.00, 11 | "n": 0, 12 | "scriptPubKey": { 13 | "asm": "0 a2516e770582864a6a56ed21a102044e388c62e3", 14 | "hex": "0014a2516e770582864a6a56ed21a102044e388c62e3", 15 | "type": "witness_v0_keyhash" 16 | } 17 | } 18 | ], 19 | "hex": "0100000000010000000000000000160014a2516e770582864a6a56ed21a102044e388c62e300000000" 20 | } 21 | -------------------------------------------------------------------------------- /contrib/verify-commits/pre-push-hook.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright (c) 2014-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 | if ! [[ "$2" =~ ^(git@)?(www.)?github.com(:|/)trumpowppc/trumpow(.git)?$ ]]; then 7 | exit 0 8 | fi 9 | 10 | while read LINE; do 11 | set -- A $LINE 12 | if [ "$4" != "refs/heads/master" ]; then 13 | continue 14 | fi 15 | if ! ./contrib/verify-commits/verify-commits.sh $3 > /dev/null 2>&1; then 16 | echo "ERROR: A commit is not signed, can't push" 17 | ./contrib/verify-commits/verify-commits.sh 18 | exit 1 19 | fi 20 | done < /dev/stdin 21 | -------------------------------------------------------------------------------- /src/secp256k1/src/scalar_low.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Copyright (c) 2015 Andrew Poelstra * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or https://www.opensource.org/licenses/mit-license.php.* 5 | ***********************************************************************/ 6 | 7 | #ifndef SECP256K1_SCALAR_REPR_H 8 | #define SECP256K1_SCALAR_REPR_H 9 | 10 | #include 11 | 12 | /** A scalar modulo the group order of the secp256k1 curve. */ 13 | typedef uint32_t secp256k1_scalar; 14 | 15 | #define SECP256K1_SCALAR_CONST(d7, d6, d5, d4, d3, d2, d1, d0) (d0) 16 | 17 | #endif /* SECP256K1_SCALAR_REPR_H */ 18 | -------------------------------------------------------------------------------- /src/univalue/README.md: -------------------------------------------------------------------------------- 1 | 2 | # UniValue 3 | 4 | ## Summary 5 | 6 | A universal value class, with JSON encoding and decoding. 7 | 8 | UniValue is an abstract data type that may be a null, boolean, string, 9 | number, array container, or a key/value dictionary container, nested to 10 | an arbitrary depth. 11 | 12 | This class is aligned with the JSON standard, [RFC 13 | 7159](https://tools.ietf.org/html/rfc7159.html). 14 | 15 | ## Library usage 16 | 17 | This is a fork of univalue used by Bitcoin Core. It is not maintained for usage 18 | by other projects. Notably, the API may break in non-backward-compatible ways. 19 | 20 | Other projects looking for a maintained library should use the upstream 21 | univalue at https://github.com/jgarzik/univalue. 22 | -------------------------------------------------------------------------------- /src/test/sanity_tests.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2015 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 | -------------------------------------------------------------------------------- /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 other utilities in [contrib/seeds](/contrib/seeds)). 5 | 6 | Be sure to update `PATTERN_AGENT` in `makeseeds.py` to include the current version, 7 | and remove old versions as necessary. 8 | 9 | The seeds compiled into the release are created from sipa's DNS seed data, like this: 10 | 11 | curl -s http://bitcoin.sipa.be/seeds.txt.gz | gzip -dc > seeds_main.txt 12 | python3 makeseeds.py < seeds_main.txt > nodes_main.txt 13 | python3 generate-seeds.py . > ../../src/chainparamsseeds.h 14 | 15 | ## Dependencies 16 | 17 | Ubuntu: 18 | 19 | sudo apt-get install python3-dnspython 20 | -------------------------------------------------------------------------------- /src/warnings.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2016 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_WARNINGS_H 7 | #define BITCOIN_WARNINGS_H 8 | 9 | #include 10 | #include 11 | 12 | void SetMiscWarning(const std::string& strWarning); 13 | void SetfLargeWorkForkFound(bool flag); 14 | bool GetfLargeWorkForkFound(); 15 | void SetfLargeWorkInvalidChainFound(bool flag); 16 | bool GetfLargeWorkInvalidChainFound(); 17 | std::string GetWarnings(const std::string& strFor); 18 | 19 | static const bool DEFAULT_TESTSAFEMODE = false; 20 | 21 | #endif // BITCOIN_WARNINGS_H 22 | -------------------------------------------------------------------------------- /depends/packages/packages.mk: -------------------------------------------------------------------------------- 1 | packages:=boost openssl libevent zeromq 2 | native_packages := native_ccache 3 | 4 | qt_packages = qrencode zlib 5 | 6 | qt_x86_64_linux_packages:=qt expat libxcb xcb_proto libXau xproto freetype fontconfig libxkbcommon 7 | qt_i686_linux_packages:=$(qt_x86_64_linux_packages) 8 | 9 | qt_darwin_packages=qt 10 | qt_mingw32_packages=qt 11 | 12 | wallet_packages=bdb 13 | 14 | upnp_packages=miniupnpc 15 | 16 | avx2_native_packages:=native_nasm 17 | avx2_x86_64_linux_packages:=intel-ipsec-mb 18 | avx2_x86_64_mingw32_packages:=intel-ipsec-mb 19 | 20 | darwin_native_packages = native_biplist native_ds_store native_mac_alias 21 | 22 | ifneq ($(build_os),darwin) 23 | darwin_native_packages += native_cctools native_cdrkit native_libdmg-hfsplus 24 | endif 25 | -------------------------------------------------------------------------------- /depends/packages/freetype.mk: -------------------------------------------------------------------------------- 1 | package=freetype 2 | $(package)_version=2.11.0 3 | $(package)_download_path=http://download.savannah.gnu.org/releases/$(package) 4 | $(package)_file_name=$(package)-$($(package)_version).tar.xz 5 | $(package)_sha256_hash=8bee39bd3968c4804b70614a0a3ad597299ad0e824bc8aad5ce8aaf48067bde7 6 | 7 | define $(package)_set_vars 8 | $(package)_config_opts=--without-zlib --without-png --without-harfbuzz --without-bzip2 --disable-static 9 | $(package)_config_opts_linux=--with-pic --without-brotli 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/qt/res/src/hd_enabled.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /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/fs.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2017 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_FS_H 6 | #define BITCOIN_FS_H 7 | 8 | #include 9 | #include 10 | 11 | #include 12 | #include 13 | #include 14 | 15 | /** Filesystem operations and types */ 16 | namespace fs = boost::filesystem; 17 | 18 | /** Bridge operations to C stdio */ 19 | namespace fsbridge { 20 | FILE *fopen(const fs::path& p, const char *mode); 21 | FILE *freopen(const fs::path& p, const char *mode, FILE *stream); 22 | }; 23 | 24 | #endif // BITCOIN_FS_H 25 | -------------------------------------------------------------------------------- /src/secp256k1/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Reporting a Vulnerability 4 | 5 | To report security issues send an email to secp256k1-security@bitcoincore.org (not for support). 6 | 7 | The following keys may be used to communicate sensitive information to developers: 8 | 9 | | Name | Fingerprint | 10 | |------|-------------| 11 | | Pieter Wuille | 133E AC17 9436 F14A 5CF1 B794 860F EB80 4E66 9320 | 12 | | Jonas Nick | 36C7 1A37 C9D9 88BD E825 08D9 B1A7 0E4F 8DCD 0366 | 13 | | Tim Ruffing | 09E0 3F87 1092 E40E 106E 902B 33BC 86AB 80FF 5516 | 14 | 15 | You can import a key by running the following command with that individual’s fingerprint: `gpg --keyserver hkps://keys.openpgp.org --recv-keys ""` Ensure that you put quotes around fingerprints containing spaces. 16 | -------------------------------------------------------------------------------- /src/attributes.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2018 The Bitcoin Core developers 3 | // Copyright (c) 2022 The Dogecoin Core developers 4 | // Distributed under the MIT software license, see the accompanying 5 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 6 | 7 | #ifndef BITCOIN_ATTRIBUTES_H 8 | #define BITCOIN_ATTRIBUTES_H 9 | 10 | #if defined(__has_cpp_attribute) 11 | # if __has_cpp_attribute(nodiscard) 12 | # define NODISCARD [[nodiscard]] 13 | # endif 14 | #endif 15 | #ifndef NODISCARD 16 | # if defined(_MSC_VER) && _MSC_VER >= 1700 17 | # define NODISCARD _Check_return_ 18 | # else 19 | # define NODISCARD __attribute__((warn_unused_result)) 20 | # endif 21 | #endif 22 | 23 | #endif // BITCOIN_ATTRIBUTES_H 24 | -------------------------------------------------------------------------------- /src/checkpoints.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2016 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_CHECKPOINTS_H 6 | #define BITCOIN_CHECKPOINTS_H 7 | 8 | #include "uint256.h" 9 | 10 | #include 11 | 12 | class CBlockIndex; 13 | struct CCheckpointData; 14 | 15 | /** 16 | * Block-chain checkpoints are compiled-in sanity checks. 17 | * They are updated every release or three. 18 | */ 19 | namespace Checkpoints 20 | { 21 | 22 | //! Returns last CBlockIndex* in mapBlockIndex that is a checkpoint 23 | CBlockIndex* GetLastCheckpoint(const CCheckpointData& data); 24 | 25 | } //namespace Checkpoints 26 | 27 | #endif // BITCOIN_CHECKPOINTS_H 28 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /depends/packages/native_protobuf.mk: -------------------------------------------------------------------------------- 1 | package=native_protobuf 2 | $(package)_version=3.6.1 3 | $(package)_download_path=https://github.com/google/protobuf/releases/download/v$($(package)_version) 4 | $(package)_file_name=protobuf-cpp-$($(package)_version).tar.gz 5 | $(package)_sha256_hash=b3732e471a9bb7950f090fd0457ebd2536a9ba0891b7f3785919c654fe2a2529 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/leveldb/.clang-format: -------------------------------------------------------------------------------- 1 | # Run manually to reformat a file: 2 | # clang-format -i --style=file 3 | # find . -iname '*.cc' -o -iname '*.h' -o -iname '*.h.in' | xargs clang-format -i --style=file 4 | BasedOnStyle: Google 5 | DerivePointerAlignment: false 6 | 7 | # Public headers are in a different location in the internal Google repository. 8 | # Order them so that when imported to the authoritative repository they will be 9 | # in correct alphabetical order. 10 | IncludeCategories: 11 | - Regex: '^(<|"(benchmarks|db|helpers)/)' 12 | Priority: 1 13 | - Regex: '^"(leveldb)/' 14 | Priority: 2 15 | - Regex: '^(<|"(issues|port|table|third_party|util)/)' 16 | Priority: 3 17 | - Regex: '.*' 18 | Priority: 4 19 | -------------------------------------------------------------------------------- /src/qt/res/src/clock_2.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/crypto/chacha20.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2017 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_CHACHA20_H 6 | #define BITCOIN_CRYPTO_CHACHA20_H 7 | 8 | #include 9 | #include 10 | 11 | /** A PRNG class for ChaCha20. */ 12 | class ChaCha20 13 | { 14 | private: 15 | uint32_t input[16]; 16 | 17 | public: 18 | ChaCha20(); 19 | ChaCha20(const unsigned char* key, size_t keylen); 20 | void SetKey(const unsigned char* key, size_t keylen); 21 | void SetIV(uint64_t iv); 22 | void Seek(uint64_t pos); 23 | void Output(unsigned char* output, size_t bytes); 24 | }; 25 | 26 | #endif // BITCOIN_CRYPTO_CHACHA20_H 27 | -------------------------------------------------------------------------------- /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/qt/test/compattests.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 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 "paymentrequestplus.h" // this includes protobuf's port.h which defines its own bswap macos 6 | 7 | #include "compattests.h" 8 | 9 | #include "compat/byteswap.h" 10 | 11 | void CompatTests::bswapTests() 12 | { 13 | // Sibling in bitcoin/src/test/bswap_tests.cpp 14 | uint16_t u1 = 0x1234; 15 | uint32_t u2 = 0x56789abc; 16 | uint64_t u3 = 0xdef0123456789abc; 17 | uint16_t e1 = 0x3412; 18 | uint32_t e2 = 0xbc9a7856; 19 | uint64_t e3 = 0xbc9a78563412f0de; 20 | QVERIFY(bswap_16(u1) == e1); 21 | QVERIFY(bswap_32(u2) == e2); 22 | QVERIFY(bswap_64(u3) == e3); 23 | } 24 | -------------------------------------------------------------------------------- /src/univalue/test/test_json.cpp: -------------------------------------------------------------------------------- 1 | // Test program that can be called by the JSON test suite at 2 | // https://github.com/nst/JSONTestSuite. 3 | // 4 | // It reads JSON input from stdin and exits with code 0 if it can be parsed 5 | // successfully. It also pretty prints the parsed JSON value to stdout. 6 | 7 | #include 8 | #include 9 | #include "univalue.h" 10 | 11 | using namespace std; 12 | 13 | int main (int argc, char *argv[]) 14 | { 15 | UniValue val; 16 | if (val.read(string(istreambuf_iterator(cin), 17 | istreambuf_iterator()))) { 18 | cout << val.write(1 /* prettyIndent */, 4 /* indentLevel */) << endl; 19 | return 0; 20 | } else { 21 | cerr << "JSON Parse Error." << endl; 22 | return 1; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /contrib/devtools/utils.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # Copyright (c) 2021 The Bitcoin Core developers 3 | # Copyright (c) 2023 The Dogecoin Core developers 4 | # Distributed under the MIT software license, see the accompanying 5 | # file COPYING or http://www.opensource.org/licenses/mit-license.php. 6 | ''' 7 | Common utility functions 8 | ''' 9 | import shutil 10 | import sys 11 | import os 12 | from typing import List 13 | 14 | 15 | def determine_wellknown_cmd(envvar, progname) -> List[str]: 16 | maybe_env = os.getenv(envvar) 17 | maybe_which = shutil.which(progname) 18 | if maybe_env: 19 | return maybe_env.split(' ') # Well-known vars are often meant to be word-split 20 | elif maybe_which: 21 | return [ maybe_which ] 22 | else: 23 | sys.exit(f"{progname} not found") 24 | -------------------------------------------------------------------------------- /contrib/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # -*- mode: makefile; coding: utf-8 -*- 3 | 4 | #DEB_MAKE_CHECK_TARGET = test_trumpow 5 | #build/trumpowd:: 6 | # $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,src/test_trumpow) 7 | 8 | %: 9 | dh --with bash-completion $@ 10 | 11 | override_dh_auto_clean: 12 | if [ -f Makefile ]; then $(MAKE) distclean; fi 13 | 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 14 | 15 | QT=$(shell dpkg-vendor --derives-from Ubuntu && echo qt4 || echo qt5) 16 | 17 | # Yea, autogen should be run on the source archive, but I like doing git archive 18 | override_dh_auto_configure: 19 | ./autogen.sh 20 | ./configure --with-gui=$(QT) 21 | 22 | override_dh_auto_test: 23 | make check 24 | -------------------------------------------------------------------------------- /depends/hosts/darwin.mk: -------------------------------------------------------------------------------- 1 | OSX_MIN_VERSION=10.8 2 | OSX_SDK_VERSION=10.11 3 | OSX_SDK=$(SDK_PATH)/MacOSX$(OSX_SDK_VERSION).sdk 4 | LD64_VERSION=253.9 5 | 6 | clang_prog=$(build_prefix)/bin/clang 7 | clangxx_prog=$(clang_prog)++ 8 | 9 | darwin_CC=$(build_prefix)/bin/clang -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION) 10 | darwin_CXX=$(clang_prog)++ -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION) -stdlib=libc++ 11 | 12 | darwin_CFLAGS=-pipe 13 | darwin_CXXFLAGS=$(darwin_CFLAGS) 14 | 15 | darwin_release_CFLAGS=-O2 16 | darwin_release_CXXFLAGS=$(darwin_release_CFLAGS) 17 | 18 | darwin_debug_CFLAGS=-O1 19 | darwin_debug_CXXFLAGS=$(darwin_debug_CFLAGS) 20 | 21 | darwin_native_toolchain=native_cctools 22 | -------------------------------------------------------------------------------- /src/qt/openuridialog.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2015 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 Q_SLOTS: 25 | void accept(); 26 | 27 | private Q_SLOTS: 28 | void on_selectFileButton_clicked(); 29 | 30 | private: 31 | Ui::OpenURIDialog *ui; 32 | }; 33 | 34 | #endif // BITCOIN_QT_OPENURIDIALOG_H 35 | -------------------------------------------------------------------------------- /src/test/data/txcreatemultisig3.json: -------------------------------------------------------------------------------- 1 | { 2 | "txid": "ccc552220b46a3b5140048b03395987ce4f0fa1ddf8c635bba1fa44e0f8c1d7f", 3 | "hash": "ccc552220b46a3b5140048b03395987ce4f0fa1ddf8c635bba1fa44e0f8c1d7f", 4 | "version": 1, 5 | "locktime": 0, 6 | "vin": [ 7 | ], 8 | "vout": [ 9 | { 10 | "value": 1.00, 11 | "n": 0, 12 | "scriptPubKey": { 13 | "asm": "0 e15a86a23178f433d514dbbce042e87d72662b8b5edcacfd2e37ab7a2d135f05", 14 | "hex": "0020e15a86a23178f433d514dbbce042e87d72662b8b5edcacfd2e37ab7a2d135f05", 15 | "type": "witness_v0_scripthash" 16 | } 17 | } 18 | ], 19 | "hex": "01000000000100e1f50500000000220020e15a86a23178f433d514dbbce042e87d72662b8b5edcacfd2e37ab7a2d135f0500000000" 20 | } 21 | -------------------------------------------------------------------------------- /src/test/data/txcreatescript3.json: -------------------------------------------------------------------------------- 1 | { 2 | "txid": "8a234037b088e987c877030efc83374a07441c321bf9dc6dd2f206bc26507df8", 3 | "hash": "8a234037b088e987c877030efc83374a07441c321bf9dc6dd2f206bc26507df8", 4 | "version": 1, 5 | "locktime": 0, 6 | "vin": [ 7 | ], 8 | "vout": [ 9 | { 10 | "value": 0.00, 11 | "n": 0, 12 | "scriptPubKey": { 13 | "asm": "0 0bfe935e70c321c7ca3afc75ce0d0ca2f98b5422e008bb31c00c6d7f1f1c0ad6", 14 | "hex": "00200bfe935e70c321c7ca3afc75ce0d0ca2f98b5422e008bb31c00c6d7f1f1c0ad6", 15 | "type": "witness_v0_scripthash" 16 | } 17 | } 18 | ], 19 | "hex": "01000000000100000000000000002200200bfe935e70c321c7ca3afc75ce0d0ca2f98b5422e008bb31c00c6d7f1f1c0ad600000000" 20 | } 21 | -------------------------------------------------------------------------------- /depends/packages/fontconfig.mk: -------------------------------------------------------------------------------- 1 | package=fontconfig 2 | $(package)_version=2.12.6 3 | $(package)_download_path=http://www.freedesktop.org/software/fontconfig/release/ 4 | $(package)_file_name=$(package)-$($(package)_version).tar.bz2 5 | $(package)_sha256_hash=cf0c30807d08f6a28ab46c61b8dbd55c97d2f292cf88f3a07d3384687f31f017 6 | $(package)_dependencies=freetype expat 7 | $(package)_patches=gperf_header_regen.patch 8 | 9 | define $(package)_set_vars 10 | $(package)_config_opts=--disable-docs --disable-static 11 | endef 12 | 13 | define $(package)_preprocess_cmds 14 | patch -p1 < $($(package)_patch_dir)/gperf_header_regen.patch 15 | endef 16 | 17 | define $(package)_config_cmds 18 | $($(package)_autoconf) 19 | endef 20 | 21 | define $(package)_stage_cmds 22 | $(MAKE) DESTDIR=$($(package)_staging_dir) install 23 | endef 24 | -------------------------------------------------------------------------------- /doc/build-fedora.md: -------------------------------------------------------------------------------- 1 | Fedora build guide 2 | ------------------ 3 | 4 | **Last tested with:** 1.2.0.0-dev 5 | **Tested on:** Fedora 35-39 (x86 & ARM) 6 | 7 | ### Build requirements 8 | 9 | ```sh 10 | sudo dnf install gcc-c++ libtool which diffutils make autoconf automake \ 11 | openssl-devel libevent-devel boost-devel libdb-cxx-devel 12 | ``` 13 | ### Optional elements 14 | 15 | #### MiniUPNP 16 | 17 | Useful when your node is running behind a NAT router. 18 | 19 | ```sh 20 | sudo dnf install miniupnpc-devel 21 | ``` 22 | 23 | #### ZeroMQ 24 | 25 | ```sh 26 | sudo dnf install zeromq-devel 27 | ``` 28 | 29 | #### GUI requirements 30 | 31 | To build the GUI with Qt 5 you need the following: 32 | 33 | ```sh 34 | sudo dnf install qt5-qttools-devel qt5-qtbase-devel protobuf-devel qrencode-devel 35 | ``` 36 | -------------------------------------------------------------------------------- /src/crypto/ripemd160.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014-2016 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 | uint64_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/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) || defined(LEVELDB_PLATFORM_WINDOWS) 14 | #include "port/port_stdcxx.h" 15 | #elif defined(LEVELDB_PLATFORM_CHROMIUM) 16 | #include "port/port_chromium.h" 17 | #endif 18 | 19 | #endif // STORAGE_LEVELDB_PORT_PORT_H_ 20 | -------------------------------------------------------------------------------- /src/rpc/blockchain.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2017-2018 The Bitcoin Core developers 2 | // Copyright (c) 2023 The Dogecoin 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_RPC_BLOCKCHAIN_H 7 | #define BITCOIN_RPC_BLOCKCHAIN_H 8 | 9 | #include 10 | #include 11 | #include 12 | 13 | class CBlock; 14 | class CBlockIndex; 15 | class UniValue; 16 | 17 | static constexpr int NUM_GETBLOCKSTATS_PERCENTILES = 5; 18 | 19 | /** Used by getblockstats to get feerates at different percentiles by weight */ 20 | void CalculatePercentilesBySize(CAmount result[NUM_GETBLOCKSTATS_PERCENTILES], std::vector>& scores, int64_t total_size); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /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 https://www.opensource.org/licenses/mit-license.php.* 5 | ***********************************************************************/ 6 | 7 | #ifndef SECP256K1_SCALAR_REPR_H 8 | #define SECP256K1_SCALAR_REPR_H 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; 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 /* SECP256K1_SCALAR_REPR_H */ 20 | -------------------------------------------------------------------------------- /src/qt/res/src/clock_1.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/crypto/sha1.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014-2016 The Bitcoin Core developers 2 | // Copyright (c) 2022 The Dogecoin 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_CRYPTO_SHA1_H 7 | #define BITCOIN_CRYPTO_SHA1_H 8 | 9 | #include 10 | #include 11 | 12 | /** A hasher class for SHA1. */ 13 | class CSHA1 14 | { 15 | private: 16 | uint32_t s[5]; 17 | unsigned char buf[64]; 18 | uint64_t bytes; 19 | 20 | public: 21 | static const size_t OUTPUT_SIZE = 20; 22 | 23 | CSHA1(); 24 | CSHA1& Write(const unsigned char* data, size_t len); 25 | void Finalize(unsigned char hash[OUTPUT_SIZE]); 26 | CSHA1& Reset(); 27 | }; 28 | 29 | #endif // BITCOIN_CRYPTO_SHA1_H 30 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported versions 4 | 5 | Currently, version 1.14.7 is supported on this repository. 6 | 7 | ## Reporting a Vulnerability 8 | 9 | To report security issues, please send pgp encrypted email to the following 10 | developers: 11 | 12 | 13 | | Name | E-mail | PGP key fingerprint 14 | | :------------- | :---------------------- | :------------------- 15 | | Chromatic | chromatic@wgz.org | E343 7979 A840 E43F 7BB5 A579 2C48 E041 36C2 B580 16 | | Michi Lumin | michi@luskwood.org | 6DB4 66B1 7BD2 60F4 4950 F6AF 520B 53AE 29E9 8861 17 | | Patrick Lodder | patricklodder@proton.me | E324 9D4E E7F3 7C7F 8B30 676F 603E F476 B796 1EA7 18 | 19 | Keys can be imported by running the following command: 20 | 21 | ```bash 22 | gpg --recv-keys "" 23 | ``` 24 | -------------------------------------------------------------------------------- /qa/rpc-tests/create_cache.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # Copyright (c) 2016 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 | # Helper script to create the cache 8 | # (see BitcoinTestFramework.setup_chain) 9 | # 10 | 11 | from test_framework.test_framework import BitcoinTestFramework 12 | 13 | class CreateCache(BitcoinTestFramework): 14 | 15 | def __init__(self): 16 | super().__init__() 17 | 18 | # Test network and test nodes are not required: 19 | self.num_nodes = 0 20 | self.nodes = [] 21 | 22 | def setup_network(self): 23 | pass 24 | 25 | def run_test(self): 26 | pass 27 | 28 | if __name__ == '__main__': 29 | CreateCache().main() 30 | -------------------------------------------------------------------------------- /depends/packages/native_biplist.mk: -------------------------------------------------------------------------------- 1 | package=native_biplist 2 | $(package)_version=0.9 3 | $(package)_download_path=https://pypi.python.org/packages/source/b/biplist 4 | $(package)_file_name=biplist-$($(package)_version).tar.gz 5 | $(package)_sha256_hash=b57cadfd26e4754efdf89e9e37de87885f9b5c847b2615688ca04adfaf6ca604 6 | $(package)_install_libdir=$(build_prefix)/lib/python/dist-packages 7 | $(package)_patches=sorted_list.patch 8 | 9 | define $(package)_preprocess_cmds 10 | patch -p1 < $($(package)_patch_dir)/sorted_list.patch 11 | endef 12 | 13 | define $(package)_build_cmds 14 | python3 setup.py build 15 | endef 16 | 17 | define $(package)_stage_cmds 18 | mkdir -p $($(package)_install_libdir) && \ 19 | python3 setup.py install --root=$($(package)_staging_dir) --prefix=$(build_prefix) --install-lib=$($(package)_install_libdir) 20 | endef 21 | -------------------------------------------------------------------------------- /src/crypto/sha256.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014-2016 The Bitcoin Core developers 2 | // Copyright (c) 2022 The Dogecoin 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_CRYPTO_SHA256_H 7 | #define BITCOIN_CRYPTO_SHA256_H 8 | 9 | #include 10 | #include 11 | 12 | /** A hasher class for SHA-256. */ 13 | class CSHA256 14 | { 15 | private: 16 | uint32_t s[8]; 17 | unsigned char buf[64]; 18 | uint64_t bytes; 19 | 20 | public: 21 | static const size_t OUTPUT_SIZE = 32; 22 | 23 | CSHA256(); 24 | CSHA256& Write(const unsigned char* data, size_t len); 25 | void Finalize(unsigned char hash[OUTPUT_SIZE]); 26 | CSHA256& Reset(); 27 | }; 28 | 29 | #endif // BITCOIN_CRYPTO_SHA256_H 30 | -------------------------------------------------------------------------------- /src/crypto/sha512.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014-2016 The Bitcoin Core developers 2 | // Copyright (c) 2022 The Dogecoin 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_CRYPTO_SHA512_H 7 | #define BITCOIN_CRYPTO_SHA512_H 8 | 9 | #include 10 | #include 11 | 12 | /** A hasher class for SHA-512. */ 13 | class CSHA512 14 | { 15 | private: 16 | uint64_t s[8]; 17 | unsigned char buf[128]; 18 | uint64_t bytes; 19 | 20 | public: 21 | static const size_t OUTPUT_SIZE = 64; 22 | 23 | CSHA512(); 24 | CSHA512& Write(const unsigned char* data, size_t len); 25 | void Finalize(unsigned char hash[OUTPUT_SIZE]); 26 | CSHA512& Reset(); 27 | }; 28 | 29 | #endif // BITCOIN_CRYPTO_SHA512_H 30 | -------------------------------------------------------------------------------- /depends/packages/intel-ipsec-mb.mk: -------------------------------------------------------------------------------- 1 | package=intel-ipsec-mb 2 | $(package)_version=1.2 3 | $(package)_download_path=https://github.com/intel/intel-ipsec-mb/archive/refs/tags 4 | $(package)_file_name=v$($(package)_version).tar.gz 5 | $(package)_sha256_hash=f680b28369d02dc0978eb9b4bee6da9a132d66c666298e087a2b3e247548d99e 6 | $(package)_patches=remove_digest_init.patch 7 | $(package)_dependencies=native_nasm 8 | 9 | define $(package)_set_vars 10 | $(package)_build_opts_mingw32+=CC=$(host)-gcc 11 | $(package)_build_opts+=LDFLAGS="-fstack-protector" 12 | endef 13 | 14 | define $(package)_preprocess_cmds 15 | patch -p1 < $($(package)_patch_dir)/remove_digest_init.patch 16 | endef 17 | 18 | define $(package)_stage_cmds 19 | $(MAKE) NASM=$(build_prefix)/bin/nasm PREFIX=$($(package)_staging_prefix_dir) SHARED=n NOLDCONFIG=y install $($(package)_build_opts) 20 | endef 21 | -------------------------------------------------------------------------------- /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 | #include "leveldb/export.h" 9 | 10 | namespace leveldb { 11 | 12 | class Env; 13 | 14 | // Returns a new environment that stores its data in memory and delegates 15 | // all non-file-storage tasks to base_env. The caller must delete the result 16 | // when it is no longer needed. 17 | // *base_env must remain live while the result is in use. 18 | LEVELDB_EXPORT Env* NewMemEnv(Env* base_env); 19 | 20 | } // namespace leveldb 21 | 22 | #endif // STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_ 23 | -------------------------------------------------------------------------------- /src/test/bswap_tests.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 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/byteswap.h" 6 | #include "test/test_bitcoin.h" 7 | 8 | #include 9 | 10 | BOOST_FIXTURE_TEST_SUITE(bswap_tests, BasicTestingSetup) 11 | 12 | BOOST_AUTO_TEST_CASE(bswap_tests) 13 | { 14 | // Sibling in bitcoin/src/qt/test/compattests.cpp 15 | uint16_t u1 = 0x1234; 16 | uint32_t u2 = 0x56789abc; 17 | uint64_t u3 = 0xdef0123456789abc; 18 | uint16_t e1 = 0x3412; 19 | uint32_t e2 = 0xbc9a7856; 20 | uint64_t e3 = 0xbc9a78563412f0de; 21 | BOOST_CHECK(bswap_16(u1) == e1); 22 | BOOST_CHECK(bswap_32(u2) == e2); 23 | BOOST_CHECK(bswap_64(u3) == e3); 24 | } 25 | 26 | BOOST_AUTO_TEST_SUITE_END() 27 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/qt/res/src/clock_3.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/support/experimental.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2022 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 | #ifndef TRUMPOW_SUPPORT_EXPERIMENTAL_H 6 | #define TRUMPOW_SUPPORT_EXPERIMENTAL_H 7 | 8 | // include config for experimental flag 9 | #if defined(HAVE_CONFIG_H) 10 | #include "config/bitcoin-config.h" 11 | #endif //HAVE_CONFIG_H 12 | 13 | #if defined(ALLOW_DOGECOIN_EXPERIMENTAL) 14 | #define EXPERIMENTAL_FEATURES_ALLOWED 1 15 | #else 16 | #define EXPERIMENTAL_FEATURES_ALLOWED 0 17 | #endif // ALLOW_DOGECOIN_EXPERIMENTAL 18 | 19 | #define EXPERIMENTAL_FEATURE static_assert(EXPERIMENTAL_FEATURES_ALLOWED == 1, \ 20 | "Experimental features need to be explicitly enabled during configuration."); 21 | 22 | #endif //BITCOIN_SUPPORT_EXPERIMENTAL_H 23 | -------------------------------------------------------------------------------- /src/qt/transactiondescdialog.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_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-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_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 | Trumpow-Qt.app 26 | 27 | 128 28 | 156 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/qt/res/src/clock_0.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /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 https://www.opensource.org/licenses/mit-license.php.* 5 | ***********************************************************************/ 6 | 7 | #ifndef SECP256K1_SCALAR_REPR_H 8 | #define SECP256K1_SCALAR_REPR_H 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; 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 /* SECP256K1_SCALAR_REPR_H */ 20 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /depends/patches/fontconfig/gperf_header_regen.patch: -------------------------------------------------------------------------------- 1 | commit 7b6eb33ecd88768b28c67ce5d2d68a7eed5936b6 2 | Author: fanquake 3 | Date: Tue Aug 25 14:34:53 2020 +0800 4 | 5 | Remove rule that causes inadvertent header regeneration 6 | 7 | Otherwise the makefile will needlessly attempt to re-generate the 8 | headers with gperf. This can be dropped once the upstream build is fixed. 9 | 10 | See #10851. 11 | 12 | diff --git a/src/Makefile.in b/src/Makefile.in 13 | index f4626ad..4ae1b00 100644 14 | --- a/src/Makefile.in 15 | +++ b/src/Makefile.in 16 | @@ -912,7 +912,7 @@ 17 | ' - > $@.tmp && \ 18 | mv -f $@.tmp fcobjshash.gperf && touch $@ || ( $(RM) $@.tmp && false ) 19 | 20 | -fcobjshash.h: Makefile fcobjshash.gperf 21 | +fcobjshash.h: 22 | $(AM_V_GEN) $(GPERF) --pic -m 100 fcobjshash.gperf > $@.tmp && \ 23 | mv -f $@.tmp $@ || ( $(RM) $@.tmp && false ) 24 | 25 | -------------------------------------------------------------------------------- /depends/packages/native_mac_alias.mk: -------------------------------------------------------------------------------- 1 | package=native_mac_alias 2 | $(package)_version=1.1.0 3 | $(package)_download_path=https://github.com/al45tair/mac_alias/archive/ 4 | $(package)_download_file=v$($(package)_version).tar.gz 5 | $(package)_file_name=mac_alias-$($(package)_version).tar.gz 6 | $(package)_sha256_hash=b10cb44ecb64fc25283fae7a9cf365d2829377d84e37b9c21100aca8757509be 7 | $(package)_install_libdir=$(build_prefix)/lib/python/dist-packages 8 | $(package)_patches=python3.patch 9 | 10 | define $(package)_preprocess_cmds 11 | patch -p1 < $($(package)_patch_dir)/python3.patch 12 | endef 13 | 14 | define $(package)_build_cmds 15 | python3 setup.py build 16 | endef 17 | 18 | define $(package)_stage_cmds 19 | mkdir -p $($(package)_install_libdir) && \ 20 | python3 setup.py install --root=$($(package)_staging_dir) --prefix=$(build_prefix) --install-lib=$($(package)_install_libdir) 21 | endef 22 | -------------------------------------------------------------------------------- /src/chainparamsseeds.h: -------------------------------------------------------------------------------- 1 | #ifndef BITCOIN_CHAINPARAMSSEEDS_H 2 | #define BITCOIN_CHAINPARAMSSEEDS_H 3 | /** 4 | * List of fixed seed nodes for the bitcoin network 5 | * AUTOGENERATED by contrib/seeds/generate-seeds.py 6 | * 7 | * Each line contains a 16-byte IPv6 address and a port. 8 | * IPv4 as well as onion addresses are wrapped inside a IPv6 address accordingly. 9 | */ 10 | static SeedSpec6 pnSeed6_main[] = { 11 | {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xc2,0xa3,0x95,0x9a}, 33884}, 12 | {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xc2,0xa3,0x96,0xbf}, 33884}, 13 | {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x51,0x00,0xf7,0xfd}, 33884} 14 | }; 15 | 16 | static SeedSpec6 pnSeed6_test[] = { 17 | {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x7f,0x00,0x00,0x01}, 44884} 18 | }; 19 | #endif // BITCOIN_CHAINPARAMSSEEDS_H 20 | -------------------------------------------------------------------------------- /src/qt/qvaluecombobox.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2016 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 | Q_EMIT valueChanged(); 31 | } 32 | -------------------------------------------------------------------------------- /src/test/data/txcreatemultisig2.json: -------------------------------------------------------------------------------- 1 | { 2 | "txid": "0d861f278a3b7bce7cb5a88d71e6e6a903336f95ad5a2c29b295b63835b6eee3", 3 | "hash": "0d861f278a3b7bce7cb5a88d71e6e6a903336f95ad5a2c29b295b63835b6eee3", 4 | "version": 1, 5 | "locktime": 0, 6 | "vin": [ 7 | ], 8 | "vout": [ 9 | { 10 | "value": 1.00, 11 | "n": 0, 12 | "scriptPubKey": { 13 | "asm": "OP_HASH160 1c6fbaf46d64221e80cbae182c33ddf81b9294ac OP_EQUAL", 14 | "hex": "a9141c6fbaf46d64221e80cbae182c33ddf81b9294ac87", 15 | "reqSigs": 1, 16 | "type": "scripthash", 17 | "addresses": [ 18 | "9u2dRvBhFGJDfKkT9bZvQSNqJUejBBgsLa" 19 | ] 20 | } 21 | } 22 | ], 23 | "hex": "01000000000100e1f5050000000017a9141c6fbaf46d64221e80cbae182c33ddf81b9294ac8700000000" 24 | } 25 | -------------------------------------------------------------------------------- /src/test/data/txcreatemultisig4.json: -------------------------------------------------------------------------------- 1 | { 2 | "txid": "5e8b1cc73234e208d4b7ca9075f136b908c34101be7a048df4ba9ac758b61567", 3 | "hash": "5e8b1cc73234e208d4b7ca9075f136b908c34101be7a048df4ba9ac758b61567", 4 | "version": 1, 5 | "locktime": 0, 6 | "vin": [ 7 | ], 8 | "vout": [ 9 | { 10 | "value": 1.00, 11 | "n": 0, 12 | "scriptPubKey": { 13 | "asm": "OP_HASH160 6edf12858999f0dae74f9c692e6694ee3621b2ac OP_EQUAL", 14 | "hex": "a9146edf12858999f0dae74f9c692e6694ee3621b2ac87", 15 | "reqSigs": 1, 16 | "type": "scripthash", 17 | "addresses": [ 18 | "A2YWDq5LxuVGX3qvyMk2S9GdQUvJ8zaCmF" 19 | ] 20 | } 21 | } 22 | ], 23 | "hex": "01000000000100e1f5050000000017a9146edf12858999f0dae74f9c692e6694ee3621b2ac8700000000" 24 | } 25 | -------------------------------------------------------------------------------- /src/test/data/txcreateoutpubkey3.json: -------------------------------------------------------------------------------- 1 | { 2 | "txid": "bfc7e898ee9f6a9652d7b8cca147e2da134502e2ada0f279ed634fc8cf833f8c", 3 | "hash": "bfc7e898ee9f6a9652d7b8cca147e2da134502e2ada0f279ed634fc8cf833f8c", 4 | "version": 1, 5 | "locktime": 0, 6 | "vin": [ 7 | ], 8 | "vout": [ 9 | { 10 | "value": 0.00, 11 | "n": 0, 12 | "scriptPubKey": { 13 | "asm": "OP_HASH160 a5ab14c9804d0d8bf02f1aea4e82780733ad0a83 OP_EQUAL", 14 | "hex": "a914a5ab14c9804d0d8bf02f1aea4e82780733ad0a8387", 15 | "reqSigs": 1, 16 | "type": "scripthash", 17 | "addresses": [ 18 | "A7YF6yKjkzRAT15CYWAWiWbLCVRWprcqiC" 19 | ] 20 | } 21 | } 22 | ], 23 | "hex": "010000000001000000000000000017a914a5ab14c9804d0d8bf02f1aea4e82780733ad0a838700000000" 24 | } 25 | -------------------------------------------------------------------------------- /src/test/data/txcreatescript2.json: -------------------------------------------------------------------------------- 1 | { 2 | "txid": "6e07a7cc075e0703f32ee8c4e5373fe654bfbc315148fda364e1be286ff290d0", 3 | "hash": "6e07a7cc075e0703f32ee8c4e5373fe654bfbc315148fda364e1be286ff290d0", 4 | "version": 1, 5 | "locktime": 0, 6 | "vin": [ 7 | ], 8 | "vout": [ 9 | { 10 | "value": 0.00, 11 | "n": 0, 12 | "scriptPubKey": { 13 | "asm": "OP_HASH160 71ed53322d470bb96657deb786b94f97dd46fb15 OP_EQUAL", 14 | "hex": "a91471ed53322d470bb96657deb786b94f97dd46fb1587", 15 | "reqSigs": 1, 16 | "type": "scripthash", 17 | "addresses": [ 18 | "A2pfKhJAmDYYDxamTYFmuAAkSMjqqvitJd" 19 | ] 20 | } 21 | } 22 | ], 23 | "hex": "010000000001000000000000000017a91471ed53322d470bb96657deb786b94f97dd46fb158700000000" 24 | } 25 | -------------------------------------------------------------------------------- /src/test/data/txcreatescript4.json: -------------------------------------------------------------------------------- 1 | { 2 | "txid": "24225cf5e9391100d6b218134b9f03383ca4c880a1f634ac12990cf28b66adbc", 3 | "hash": "24225cf5e9391100d6b218134b9f03383ca4c880a1f634ac12990cf28b66adbc", 4 | "version": 1, 5 | "locktime": 0, 6 | "vin": [ 7 | ], 8 | "vout": [ 9 | { 10 | "value": 0.00, 11 | "n": 0, 12 | "scriptPubKey": { 13 | "asm": "OP_HASH160 6a2c482f4985f57e702f325816c90e3723ca81ae OP_EQUAL", 14 | "hex": "a9146a2c482f4985f57e702f325816c90e3723ca81ae87", 15 | "reqSigs": 1, 16 | "type": "scripthash", 17 | "addresses": [ 18 | "A27fLVKYNN9F5LbRp5Ap9yam4S7uJt2jsu" 19 | ] 20 | } 21 | } 22 | ], 23 | "hex": "010000000001000000000000000017a9146a2c482f4985f57e702f325816c90e3723ca81ae8700000000" 24 | } 25 | -------------------------------------------------------------------------------- /src/qt/transactiondescdialog.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2016 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 | setWindowTitle(tr("Details for %1").arg(idx.data(TransactionTableModel::TxIDRole).toString())); 18 | QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString(); 19 | ui->detailText->setHtml(desc); 20 | } 21 | 22 | TransactionDescDialog::~TransactionDescDialog() 23 | { 24 | delete ui; 25 | } 26 | -------------------------------------------------------------------------------- /doc/release-notes.md: -------------------------------------------------------------------------------- 1 | ## Trumpow Core 1.0.0 Release Notes 2 | 3 | This is a new minor release which includes improvements from recent Dogecoin releases. All users are **strongly recommended** to upgrade. 4 | 5 | #### Technical Changes 6 | 7 | * Merged several upstream improvements from Dogecoin `1.14.7`, `1.14.8`, and `1.14.9` 8 | * Add new DNS seeder for mainnet and testnet (seeds.trumpow.meme and seeds-testnet.trumpow.meme) 9 | * Update `chainparamsseeds.h` with more nodes to make the network more resilient 10 | * Various security fixes 11 | 12 | #### Design Changes 13 | 14 | * Update P logo for "About Trumpow Core" in the help menu 15 | * Add Chinese translation fix in Trumpow Core 16 | * Add German, Japanese, and French translations for README.md 17 | 18 | #### Credits 19 | 20 | * Chromatic 21 | * MasterKush 22 | * YingZheng 23 | * Emgi 24 | * Zordiak 25 | * MadSpring 26 | * Eltociear 27 | * Omahs 28 | * Thunderrabbit -------------------------------------------------------------------------------- /src/bench/perf.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 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 | /** Functions for measurement of CPU cycles */ 6 | #ifndef H_PERF 7 | #define H_PERF 8 | 9 | #include 10 | 11 | #if defined(__i386__) 12 | 13 | static inline uint64_t perf_cpucycles(void) 14 | { 15 | uint64_t x; 16 | __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x)); 17 | return x; 18 | } 19 | 20 | #elif defined(__x86_64__) 21 | 22 | static inline uint64_t perf_cpucycles(void) 23 | { 24 | uint32_t hi, lo; 25 | __asm__ __volatile__ ("rdtsc" : "=a"(lo), "=d"(hi)); 26 | return ((uint64_t)lo)|(((uint64_t)hi)<<32); 27 | } 28 | #else 29 | 30 | uint64_t perf_cpucycles(void); 31 | 32 | #endif 33 | 34 | void perf_init(void); 35 | void perf_fini(void); 36 | 37 | #endif // H_PERF 38 | -------------------------------------------------------------------------------- /src/leveldb/util/env_windows_test_helper.h: -------------------------------------------------------------------------------- 1 | // Copyright 2018 (c) 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_ENV_WINDOWS_TEST_HELPER_H_ 6 | #define STORAGE_LEVELDB_UTIL_ENV_WINDOWS_TEST_HELPER_H_ 7 | 8 | namespace leveldb { 9 | 10 | class EnvWindowsTest; 11 | 12 | // A helper for the Windows Env to facilitate testing. 13 | class EnvWindowsTestHelper { 14 | private: 15 | friend class CorruptionTest; 16 | friend class EnvWindowsTest; 17 | 18 | // Set the maximum number of read-only files that will be mapped via mmap. 19 | // Must be called before creating an Env. 20 | static void SetReadOnlyMMapLimit(int limit); 21 | }; 22 | 23 | } // namespace leveldb 24 | 25 | #endif // STORAGE_LEVELDB_UTIL_ENV_WINDOWS_TEST_HELPER_H_ 26 | -------------------------------------------------------------------------------- /src/reverselock.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015-2016 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_REVERSELOCK_H 6 | #define BITCOIN_REVERSELOCK_H 7 | 8 | /** 9 | * An RAII-style reverse lock. Unlocks on construction and locks on destruction. 10 | */ 11 | template 12 | class reverse_lock 13 | { 14 | public: 15 | 16 | explicit reverse_lock(Lock& _lock) : lock(_lock) { 17 | _lock.unlock(); 18 | _lock.swap(templock); 19 | } 20 | 21 | ~reverse_lock() { 22 | templock.lock(); 23 | templock.swap(lock); 24 | } 25 | 26 | private: 27 | reverse_lock(reverse_lock const&); 28 | reverse_lock& operator=(reverse_lock const&); 29 | 30 | Lock& lock; 31 | Lock templock; 32 | }; 33 | 34 | #endif // BITCOIN_REVERSELOCK_H 35 | -------------------------------------------------------------------------------- /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/pow.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2016 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 | 17 | unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params&); 18 | unsigned int CalculateNextWorkRequired(const CBlockIndex* pindexLast, int64_t nFirstBlockTime, const Consensus::Params&); 19 | 20 | /** Check whether a block hash satisfies the proof-of-work requirement specified by nBits */ 21 | bool CheckProofOfWork(uint256 hash, unsigned int nBits, const Consensus::Params&); 22 | 23 | #endif // BITCOIN_POW_H 24 | -------------------------------------------------------------------------------- /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/importkeysdialog.ui \ 9 | ../src/qt/forms/intro.ui \ 10 | ../src/qt/forms/openuridialog.ui \ 11 | ../src/qt/forms/optionsdialog.ui \ 12 | ../src/qt/forms/overviewpage.ui \ 13 | ../src/qt/forms/receivecoinsdialog.ui \ 14 | ../src/qt/forms/receiverequestdialog.ui \ 15 | ../src/qt/forms/debugwindow.ui \ 16 | ../src/qt/forms/sendcoinsdialog.ui \ 17 | ../src/qt/forms/sendcoinsentry.ui \ 18 | ../src/qt/forms/signverifymessagedialog.ui \ 19 | ../src/qt/forms/transactiondescdialog.ui \ 20 | 21 | RESOURCES += \ 22 | ../src/qt/bitcoin.qrc 23 | 24 | 25 | QT += \ 26 | printsupport 27 | -------------------------------------------------------------------------------- /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 | 10 | #include "db/dbformat.h" 11 | #include "leveldb/db.h" 12 | 13 | namespace leveldb { 14 | 15 | class DBImpl; 16 | 17 | // Return a new iterator that converts internal keys (yielded by 18 | // "*internal_iter") that were live at the specified "sequence" number 19 | // into appropriate user keys. 20 | Iterator* NewDBIterator(DBImpl* db, const Comparator* user_key_comparator, 21 | Iterator* internal_iter, SequenceNumber sequence, 22 | uint32_t seed); 23 | 24 | } // namespace leveldb 25 | 26 | #endif // STORAGE_LEVELDB_DB_DB_ITER_H_ 27 | -------------------------------------------------------------------------------- /depends/patches/zeromq/0002-disable-pthread_set_name_np.patch: -------------------------------------------------------------------------------- 1 | From 6e6b47d5ab381c3df3b30bb0b0a6cf210dfb1eba Mon Sep 17 00:00:00 2001 2 | From: Cory Fields 3 | Date: Mon, 5 Mar 2018 14:22:05 -0500 4 | Subject: [PATCH] disable pthread_set_name_np 5 | 6 | pthread_set_name_np adds a Glibc requirement on >= 2.12. 7 | --- 8 | src/thread.cpp | 4 +++- 9 | 1 file changed, 3 insertions(+), 1 deletion(-) 10 | 11 | --- zeromq-4.3.4-orig/src/thread.cpp 2021-01-03 21:46:01.000000000 +0000 12 | +++ zeromq-4.3.4/src/thread.cpp 2021-07-01 22:42:49.850117319 +0100 13 | @@ -393,6 +393,7 @@ 14 | return; 15 | #endif 16 | 17 | +#if 0 18 | #if defined(ZMQ_HAVE_PTHREAD_SETNAME_1) 19 | int rc = pthread_setname_np (_name); 20 | if (rc) 21 | @@ -408,6 +409,8 @@ 22 | #elif defined(ZMQ_HAVE_PTHREAD_SET_NAME) 23 | pthread_set_name_np (pthread_self (), _name); 24 | #endif 25 | +#endif 26 | + return; 27 | } 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /src/bench/Examples.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015-2016 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 "bench.h" 6 | #include "validation.h" 7 | #include "utiltime.h" 8 | 9 | // Sanity test: this should loop ten times, and 10 | // min/max/average should be close to 100ms. 11 | static void Sleep100ms(benchmark::State& state) 12 | { 13 | while (state.KeepRunning()) { 14 | MilliSleep(100); 15 | } 16 | } 17 | 18 | BENCHMARK(Sleep100ms); 19 | 20 | // Extremely fast-running benchmark: 21 | #include 22 | 23 | volatile double sum = 0.0; // volatile, global so not optimized away 24 | 25 | static void Trig(benchmark::State& state) 26 | { 27 | double d = 0.01; 28 | while (state.KeepRunning()) { 29 | sum += sin(d); 30 | d += 0.000001; 31 | } 32 | } 33 | 34 | BENCHMARK(Trig); 35 | -------------------------------------------------------------------------------- /src/test/testutil.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2016 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 "testutil.h" 6 | 7 | #include "fs.h" 8 | 9 | #ifdef WIN32 10 | #include 11 | #endif 12 | 13 | fs::path GetTempPath() { 14 | #if BOOST_FILESYSTEM_VERSION == 3 15 | return fs::temp_directory_path(); 16 | #else 17 | // TODO: remove when we don't support filesystem v2 anymore 18 | fs::path path; 19 | #ifdef WIN32 20 | char pszPath[MAX_PATH] = ""; 21 | 22 | if (GetTempPathA(MAX_PATH, pszPath)) 23 | path = fs::path(pszPath); 24 | #else 25 | path = fs::path("/tmp"); 26 | #endif 27 | if (path.empty() || !fs::is_directory(path)) { 28 | LogPrintf("GetTempPath(): failed to find temp path\n"); 29 | return fs::path(""); 30 | } 31 | return path; 32 | #endif 33 | } 34 | -------------------------------------------------------------------------------- /src/ui_interface.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2016 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 "ui_interface.h" 6 | #include "util.h" 7 | 8 | CClientUIInterface uiInterface; 9 | 10 | bool InitError(const std::string& str) 11 | { 12 | uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_ERROR); 13 | return false; 14 | } 15 | 16 | void InitWarning(const std::string& str) 17 | { 18 | uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_WARNING); 19 | } 20 | 21 | std::string AmountHighWarn(const std::string& optname) 22 | { 23 | return strprintf(_("%s is set very high!"), optname); 24 | } 25 | 26 | std::string AmountErrMsg(const char* const optname, const std::string& strValue) 27 | { 28 | return strprintf(_("Invalid amount for -%s=: '%s'"), optname, strValue); 29 | } 30 | -------------------------------------------------------------------------------- /src/test/data/txcreateoutpubkey1.json: -------------------------------------------------------------------------------- 1 | { 2 | "txid": "f42b38ac12e3fafc96ba1a9ba70cbfe326744aef75df5fb9db5d6e2855ca415f", 3 | "hash": "f42b38ac12e3fafc96ba1a9ba70cbfe326744aef75df5fb9db5d6e2855ca415f", 4 | "version": 1, 5 | "locktime": 0, 6 | "vin": [ 7 | ], 8 | "vout": [ 9 | { 10 | "value": 0.00, 11 | "n": 0, 12 | "scriptPubKey": { 13 | "asm": "02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397 OP_CHECKSIG", 14 | "hex": "2102a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397ac", 15 | "reqSigs": 1, 16 | "type": "pubkey", 17 | "addresses": [ 18 | "Pnj3A7pE1MywxaEzx71ksF7PDLYQ9tZ7U7" 19 | ] 20 | } 21 | } 22 | ], 23 | "hex": "0100000000010000000000000000232102a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397ac00000000" 24 | } 25 | -------------------------------------------------------------------------------- /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 | void CPureBlockHeader::SetBaseVersion(int32_t nBaseVersion, int32_t nChainId) 14 | { 15 | assert(nBaseVersion >= 1 && nBaseVersion < VERSION_AUXPOW); 16 | assert(!IsAuxpow()); 17 | nVersion = nBaseVersion | (nChainId * VERSION_CHAIN_START); 18 | } 19 | 20 | uint256 CPureBlockHeader::GetHash() const 21 | { 22 | return SerializeHash(*this); 23 | } 24 | 25 | uint256 CPureBlockHeader::GetPoWHash() const 26 | { 27 | uint256 thash; 28 | scrypt_1024_1_1_256(BEGIN(nVersion), BEGIN(thash)); 29 | return thash; 30 | } 31 | -------------------------------------------------------------------------------- /src/rpc/client.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2016 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 10 | 11 | /** Convert positional arguments to command-specific RPC representation */ 12 | UniValue RPCConvertValues(const std::string& strMethod, const std::vector& strParams); 13 | 14 | /** Convert named arguments to command-specific RPC representation */ 15 | UniValue RPCConvertNamedValues(const std::string& strMethod, const std::vector& strParams); 16 | 17 | /** Non-RFC4627 JSON parser, accepts internal values (such as numbers, true, false, null) 18 | * as well as objects and arrays. 19 | */ 20 | UniValue ParseNonRFCJSONValue(const std::string& strVal); 21 | 22 | #endif // BITCOIN_RPCCLIENT_H 23 | -------------------------------------------------------------------------------- /src/secp256k1/src/ecmult_const.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Copyright (c) 2015 Andrew Poelstra * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or https://www.opensource.org/licenses/mit-license.php.* 5 | ***********************************************************************/ 6 | 7 | #ifndef SECP256K1_ECMULT_CONST_H 8 | #define SECP256K1_ECMULT_CONST_H 9 | 10 | #include "scalar.h" 11 | #include "group.h" 12 | 13 | /** 14 | * Multiply: R = q*A (in constant-time) 15 | * Here `bits` should be set to the maximum bitlength of the _absolute value_ of `q`, plus 16 | * one because we internally sometimes add 2 to the number during the WNAF conversion. 17 | * A must not be infinity. 18 | */ 19 | static void secp256k1_ecmult_const(secp256k1_gej *r, const secp256k1_ge *a, const secp256k1_scalar *q, int bits); 20 | 21 | #endif /* SECP256K1_ECMULT_CONST_H */ 22 | -------------------------------------------------------------------------------- /depends/packages/zlib.mk: -------------------------------------------------------------------------------- 1 | package=zlib 2 | $(package)_version=1.3.1 3 | $(package)_download_path=http://www.zlib.net 4 | $(package)_file_name=$(package)-$($(package)_version).tar.gz 5 | $(package)_sha256_hash=9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23 6 | 7 | define $(package)_set_vars 8 | $(package)_build_opts= CC="$($(package)_cc)" 9 | $(package)_build_opts+=CFLAGS="$($(package)_cflags) $($(package)_cppflags) -fPIC" 10 | $(package)_build_opts+=RANLIB="$($(package)_ranlib)" 11 | $(package)_build_opts+=AR="$($(package)_ar)" 12 | $(package)_build_opts_darwin+=AR="$($(package)_libtool)" 13 | $(package)_build_opts_darwin+=ARFLAGS="-o" 14 | endef 15 | 16 | define $(package)_config_cmds 17 | ./configure --static --prefix=$(host_prefix) 18 | endef 19 | 20 | define $(package)_build_cmds 21 | $(MAKE) $($(package)_build_opts) libz.a 22 | endef 23 | 24 | define $(package)_stage_cmds 25 | $(MAKE) DESTDIR=$($(package)_staging_dir) install $($(package)_build_opts) 26 | endef 27 | -------------------------------------------------------------------------------- /src/secp256k1/doc/release-process.md: -------------------------------------------------------------------------------- 1 | # Release Process 2 | 3 | 1. Open PR to master that 4 | 1. adds release notes to `doc/CHANGELOG.md` and 5 | 2. if this is **not** a patch release, updates `_PKG_VERSION_{MAJOR,MINOR}` and `_LIB_VERSIONS_*` in `configure.ac` 6 | 2. After the PR is merged, 7 | * if this is **not** a patch release, create a release branch with name `MAJOR.MINOR`. 8 | Make sure that the branch contains the right commits. 9 | Create commit on the release branch that sets `_PKG_VERSION_IS_RELEASE` in `configure.ac` to `true`. 10 | * if this **is** a patch release, open a pull request with the bugfixes to the `MAJOR.MINOR` branch. 11 | Also include the release note commit bump `_PKG_VERSION_BUILD` and `_LIB_VERSIONS_*` in `configure.ac`. 12 | 4. Tag the commit with `git tag -s vMAJOR.MINOR.PATCH`. 13 | 5. Push branch and tag with `git push origin --tags`. 14 | 6. Create a new GitHub release with a link to the corresponding entry in `doc/CHANGELOG.md`. 15 | -------------------------------------------------------------------------------- /src/wallet/test/wallet_test_fixture.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 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 "wallet/test/wallet_test_fixture.h" 6 | 7 | #include "rpc/server.h" 8 | #include "wallet/db.h" 9 | #include "wallet/wallet.h" 10 | 11 | WalletTestingSetup::WalletTestingSetup(const std::string& chainName): 12 | TestingSetup(chainName) 13 | { 14 | bitdb.MakeMock(); 15 | 16 | bool fFirstRun; 17 | pwalletMain = new CWallet("wallet_test.dat"); 18 | pwalletMain->LoadWallet(fFirstRun); 19 | RegisterValidationInterface(pwalletMain); 20 | 21 | RegisterWalletRPCCommands(tableRPC); 22 | } 23 | 24 | WalletTestingSetup::~WalletTestingSetup() 25 | { 26 | UnregisterValidationInterface(pwalletMain); 27 | delete pwalletMain; 28 | pwalletMain = NULL; 29 | 30 | bitdb.Flush(true); 31 | bitdb.Reset(); 32 | } 33 | -------------------------------------------------------------------------------- /doc/release-notes/dogecoin/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 | -------------------------------------------------------------------------------- /src/qt/test/paymentservertests.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2015 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 Q_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 Q_SLOTS: 29 | void getRecipient(SendCoinsRecipient r); 30 | 31 | public: 32 | SendCoinsRecipient recipient; 33 | }; 34 | 35 | #endif // BITCOIN_QT_TEST_PAYMENTSERVERTESTS_H 36 | -------------------------------------------------------------------------------- /src/httprpc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 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_HTTPRPC_H 6 | #define BITCOIN_HTTPRPC_H 7 | 8 | #include 9 | #include 10 | 11 | class HTTPRequest; 12 | 13 | /** Start HTTP RPC subsystem. 14 | * Precondition; HTTP and RPC has been started. 15 | */ 16 | bool StartHTTPRPC(); 17 | /** Interrupt HTTP RPC subsystem. 18 | */ 19 | void InterruptHTTPRPC(); 20 | /** Stop HTTP RPC subsystem. 21 | * Precondition; HTTP and RPC has been stopped. 22 | */ 23 | void StopHTTPRPC(); 24 | 25 | /** Start HTTP REST subsystem. 26 | * Precondition; HTTP and RPC has been started. 27 | */ 28 | bool StartREST(); 29 | /** Interrupt RPC REST subsystem. 30 | */ 31 | void InterruptREST(); 32 | /** Stop HTTP REST subsystem. 33 | * Precondition; HTTP and RPC has been stopped. 34 | */ 35 | void StopREST(); 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /depends/patches/zeromq/remove_libstd_link.patch: -------------------------------------------------------------------------------- 1 | commit 47d4cd12a2c051815ddda78adebdb3923b260d8a 2 | Author: fanquake 3 | Date: Tue Aug 18 14:45:40 2020 +0800 4 | 5 | Remove needless linking against libstdc++ 6 | 7 | This is broken for a number of reasons, including: 8 | - g++ understands "static-libstdc++ -lstdc++" to mean "link against 9 | whatever libstdc++ exists, probably shared", which in itself is buggy. 10 | - another stdlib (libc++ for example) may be in use 11 | 12 | See #11981. 13 | 14 | diff --git a/src/libzmq.pc.in b/src/libzmq.pc.in 15 | index 233bc3a..3c2bf0d 100644 16 | --- a/src/libzmq.pc.in 17 | +++ b/src/libzmq.pc.in 18 | @@ -7,6 +7,6 @@ Name: libzmq 19 | Description: 0MQ c++ library 20 | Version: @VERSION@ 21 | Libs: -L${libdir} -lzmq 22 | -Libs.private: -lstdc++ @pkg_config_libs_private@ 23 | +Libs.private: @pkg_config_libs_private@ 24 | Requires.private: @pkg_config_names_private@ 25 | Cflags: -I${includedir} @pkg_config_defines@ 26 | -------------------------------------------------------------------------------- /doc/intl/README.md: -------------------------------------------------------------------------------- 1 | Internationalized documentation 2 | -------------------------------- 3 | 4 | This folder contains all internationalized documentation, such as README files. 5 | 6 | ### Contents 7 | 8 | Chinese: 9 | 10 | - [README](zh_CN/README.md) 11 | 12 | Deutsch: 13 | 14 | - [README](de/README.md) 15 | 16 | Farsi: 17 | 18 | - [README](fa_IR/README.md) 19 | 20 | French: 21 | 22 | - [README](fr/README.md) 23 | 24 | Portuguese (Brazilian): 25 | 26 | - [README](pt_BR/README.md) 27 | 28 | Português (Portugal): 29 | 30 | - [Leia-me](pt_PT/README.md) 31 | 32 | Vietnamese: 33 | 34 | - [README](vi_VN/README.md) 35 | 36 | ### Contributing 37 | 38 | You can contribute to the internationalization of documentation by creating a 39 | folder for your language or dialect, putting the translated file there, and 40 | linking the translated file in the index above. 41 | 42 | See [CONTRIBUTING.md](../../CONTRIBUTING.md) for generic information and 43 | processes on how to interact with this repository. 44 | -------------------------------------------------------------------------------- /src/test/base64_tests.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2015 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= 0 21 | Iterator* NewMergingIterator(const Comparator* comparator, Iterator** children, 22 | int n); 23 | 24 | } // namespace leveldb 25 | 26 | #endif // STORAGE_LEVELDB_TABLE_MERGER_H_ 27 | -------------------------------------------------------------------------------- /src/checkpoints.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2016 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 "checkpoints.h" 6 | 7 | #include "chain.h" 8 | #include "chainparams.h" 9 | #include "validation.h" 10 | #include "uint256.h" 11 | 12 | #include 13 | 14 | #include 15 | 16 | namespace Checkpoints { 17 | 18 | CBlockIndex* GetLastCheckpoint(const CCheckpointData& data) 19 | { 20 | const MapCheckpoints& checkpoints = data.mapCheckpoints; 21 | 22 | BOOST_REVERSE_FOREACH(const MapCheckpoints::value_type& i, checkpoints) 23 | { 24 | const uint256& hash = i.second; 25 | BlockMap::const_iterator t = mapBlockIndex.find(hash); 26 | if (t != mapBlockIndex.end()) 27 | return t->second; 28 | } 29 | return NULL; 30 | } 31 | 32 | } // namespace Checkpoints 33 | -------------------------------------------------------------------------------- /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 | #include // for HWND 13 | 14 | #include 15 | 16 | class WinShutdownMonitor : public QAbstractNativeEventFilter 17 | { 18 | public: 19 | /** Implements QAbstractNativeEventFilter interface for processing Windows messages */ 20 | bool nativeEventFilter(const QByteArray &eventType, void *pMessage, long *pnResult); 21 | 22 | /** Register the reason for blocking shutdown on Windows to allow clean client exit */ 23 | static void registerShutdownBlockReason(const QString& strReason, const HWND& mainWinId); 24 | }; 25 | #endif 26 | 27 | #endif // BITCOIN_QT_WINSHUTDOWNMONITOR_H 28 | -------------------------------------------------------------------------------- /src/univalue/test/pass4.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] 2 | -------------------------------------------------------------------------------- /src/policy/rbf.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 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_POLICY_RBF_H 6 | #define BITCOIN_POLICY_RBF_H 7 | 8 | #include "txmempool.h" 9 | 10 | enum RBFTransactionState { 11 | RBF_TRANSACTIONSTATE_UNKNOWN, 12 | RBF_TRANSACTIONSTATE_REPLACEABLE_BIP125, 13 | RBF_TRANSACTIONSTATE_FINAL 14 | }; 15 | 16 | // Check whether the sequence numbers on this transaction are signaling 17 | // opt-in to replace-by-fee, according to BIP 125 18 | bool SignalsOptInRBF(const CTransaction &tx); 19 | 20 | // Determine whether an in-mempool transaction is signaling opt-in to RBF 21 | // according to BIP 125 22 | // This involves checking sequence numbers of the transaction, as well 23 | // as the sequence numbers of all in-mempool ancestors. 24 | RBFTransactionState IsRBFOptIn(const CTransaction &tx, CTxMemPool &pool); 25 | 26 | #endif // BITCOIN_POLICY_RBF_H 27 | --------------------------------------------------------------------------------