Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
85ce0ef
Merge #8697: fix op order to append first alert
laanwj Sep 13, 2016
93e857e
Merge #8652: [qa]: remove root test directory for RPC tests
Sep 13, 2016
eae44bd
Merge #8712: Remove maxuploadtargets recommended minimum
jonasschnelli Sep 14, 2016
c46c480
Merge #8714: [qa] gitignore: Remove unused lines
Sep 14, 2016
9d86487
Merge #8713: [qa] create_cache: Delete temp dir when done
Sep 16, 2016
9e0976e
Merge #8724: [qa] walletbackup: Sync blocks inside the loop
Sep 19, 2016
9432e19
Merge #8494: [init, wallet] ParameterInteraction() iff wallet enabled
laanwj Sep 19, 2016
81a8e05
Merge #8754: [Doc] Target protobuf 2.6 in OS X build notes.
laanwj Sep 19, 2016
e031570
Merge #8720: Minor change in section name
laanwj Sep 19, 2016
2a13321
Merge #8742: Specify Protobuf version 2 in paymentrequest.proto
laanwj Sep 19, 2016
699db99
Merge #8716: [qa] wallet: Check legacy wallet as well
laanwj Sep 19, 2016
af5d18a
Merge #8707: net: fix maxuploadtarget setting
laanwj Sep 19, 2016
412f790
Merge #8737: Trivial: UndoReadFromDisk works on undo files (rev), not…
laanwj Sep 19, 2016
45fe44e
Merge #8701: [copyright] add MIT License copyright header to zmq_sub.py
laanwj Sep 19, 2016
473ffa0
Merge #8702: [copyright] add MIT License copyright header to remainin…
laanwj Sep 19, 2016
b04e32c
Merge #8688: Move static global randomizer seeds into CConnman
laanwj Sep 19, 2016
d95a972
Merge #8676: Add missing copyright headers
laanwj Sep 19, 2016
a5a9e46
Merge #8700: [copyright] add MIT license headers to .sh scripts where…
laanwj Sep 20, 2016
fbbddf8
Merge #8760: [init] Get rid of some ENABLE_WALLET
laanwj Sep 20, 2016
630c699
Merge #8696: [Wallet] Remove last external reference to CWalletDB
laanwj Sep 20, 2016
3872017
Merge #7783: [Qt] RPC-Console: support nested commands and simple val…
laanwj Sep 20, 2016
36fcd5c
Merge #8762: Trivial: Fix typo
laanwj Sep 20, 2016
e02b48c
Merge #8765: [Wallet] remove "unused" ThreadFlushWalletDB from remove…
laanwj Sep 21, 2016
ac3fdd3
Merge #8769: Trivial: Fix ISO URL, capitalization
laanwj Sep 21, 2016
06f41f3
Merge #8768: init: Get rid of fDisableWallet
laanwj Sep 21, 2016
bd9449c
Merge #8773: Trivial Bugfix: doc/gitian-building.md: Link to release-…
Sep 21, 2016
bfa539a
Merge #8777: [qt] WalletModel: Expose disablewallet
laanwj Sep 21, 2016
97b6342
Merge #8656: Trivial: Do not shadow global variable fileout
laanwj Sep 21, 2016
24c6969
Merge #8781: [contrib] delete qt_translations.py
laanwj Sep 22, 2016
0dfb934
Merge #8783: [share] remove qt/protobuf.pri
laanwj Sep 22, 2016
801c9e2
Merge #8423: [depends] expat 2.2.0, ccache 3.3.1, fontconfig 2.12.1
laanwj Sep 22, 2016
9ad1f3f
Merge #8779: [contrib] Delete spendfrom
laanwj Sep 22, 2016
17e110f
Merge #8785: Comment on CNode::nLocalServices meaning
laanwj Sep 22, 2016
c7a0b91
Merge #8793: Do not shadow in src/qt
laanwj Sep 23, 2016
39d2131
Merge #8661: Do not set an addr time penalty when a peer advertises i…
laanwj Sep 23, 2016
7f4439f
Merge #8789: [qa] pull-tester: Only print output when failed
Sep 24, 2016
5470389
Merge #8790: [test] Remove redundant debug print in addrman_tests
Sep 24, 2016
ce73b83
Merge #8786: Mandatory copyright agreement
laanwj Sep 25, 2016
24c4116
Merge #8787: [Doc] Add missing autogen to example builds
laanwj Sep 25, 2016
fdc87ce
Merge #8771: CONTRIBUTING: Mention not to open several pulls
laanwj Sep 25, 2016
18218aa
Merge #8802: Fix future copyright year
laanwj Sep 25, 2016
6262f79
Merge #8807: [univalue] Pull subtree from upstream
laanwj Sep 25, 2016
8edc2a7
Merge #8249: Enable (and check for) 64-bit ASLR on Windows
laanwj Sep 26, 2016
d87c156
Merge #8486: [wallet] Add high transaction fee warnings
laanwj Sep 26, 2016
8e610c0
Merge #8722: bitcoin-cli: More detailed error reporting
laanwj Sep 26, 2016
0028dbf
Merge #8780: [rpc] Deprecate getinfo
laanwj Sep 26, 2016
4a917b1
Merge #8796: [trivial] fix mempool comment (outdated by BIP125)
laanwj Sep 26, 2016
ec9de93
Merge #8655: Do not shadow variables (trivials)
laanwj Sep 27, 2016
acf0295
Merge #8810: tests: Add exception error message for JSONRPCException
laanwj Sep 27, 2016
faf52c5
Fix rpcnestedtests
codablock Jan 11, 2018
205ff35
Fix wallet.py test by redirecting stderr to stdout
codablock Jan 11, 2018
9b1d1c6
Move AutoBackup initialization into CWallet::InitAutoBackup
codablock Jan 11, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,7 @@ linux-build
win32-build
qa/pull-tester/run-bitcoind-for-test.sh
qa/pull-tester/tests_config.py
qa/pull-tester/test.*/*
qa/tmp
qa/cache/*
share/BitcoindComparisonTool.jar

!src/leveldb*/Makefile

Expand Down
17 changes: 17 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ before it will be merged. The basic squashing workflow is shown below.
# save and quit
git push -f # (force push to GitHub)

If you have problems with squashing (or other workflows with `git`), you can
alternatively enable "Allow edits from maintainers" in the right GitHub
sidebar and ask for help in the pull request.

Please refrain from creating several pull requests for the same change.
Use the pull request that is already open (or was created earlier) to amend
changes. This preserves the discussion and review that happened earlier for
the respective change set.

The length of time required for peer review is unpredictable and will vary from
pull request to pull request.

Expand Down Expand Up @@ -198,3 +207,11 @@ Release Policy
--------------

The project leader is the release manager for each Dash Core release.

Copyright
---------

By contributing to this repository, you agree to license your work under the
MIT license unless specified otherwise in `contrib/debian/copyright` or at
the top of the file itself. Any work contributed where you are not the original
author must contain its license header with the original author(s) and source.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ if test x$use_hardening != xno; then

AX_CHECK_LINK_FLAG([[-Wl,--dynamicbase]], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS -Wl,--dynamicbase"])
AX_CHECK_LINK_FLAG([[-Wl,--nxcompat]], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS -Wl,--nxcompat"])
AX_CHECK_LINK_FLAG([[-Wl,--high-entropy-va]], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS -Wl,--high-entropy-va"])
AX_CHECK_LINK_FLAG([[-Wl,-z,relro]], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS -Wl,-z,relro"])
AX_CHECK_LINK_FLAG([[-Wl,-z,now]], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS -Wl,-z,now"])

Expand Down
8 changes: 0 additions & 8 deletions contrib/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
Wallet Tools
---------------------

### [SpendFrom](/contrib/spendfrom) ###

Use the raw transactions API to send coins received on a particular
address (or addresses).

Repository Tools
---------------------

Expand Down
3 changes: 3 additions & 0 deletions contrib/devtools/git-subtree-check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
# Copyright (c) 2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

DIR="$1"
COMMIT="$2"
Expand Down
3 changes: 3 additions & 0 deletions contrib/devtools/optimize-pngs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Run this script every time you change one of the png files. Using pngcrush, it will optimize the png files, remove various color profiles, remove ancillary chunks (alla) and text chunks (text).
#pngcrush -brute -ow -rem gAMA -rem cHRM -rem iCCP -rem sRGB -rem alla -rem text
Expand Down
51 changes: 43 additions & 8 deletions contrib/devtools/security-check.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python
# Copyright (c) 2015-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Perform basic ELF security checks on a series of executables.
Exit status will be 0 if successful, and the program will be silent.
Expand All @@ -12,6 +15,7 @@

READELF_CMD = os.getenv('READELF', '/usr/bin/readelf')
OBJDUMP_CMD = os.getenv('OBJDUMP', '/usr/bin/objdump')
NONFATAL = {'HIGH_ENTROPY_VA'} # checks which are non-fatal for now but only generate a warning

def check_ELF_PIE(executable):
'''
Expand Down Expand Up @@ -114,26 +118,50 @@ def check_ELF_Canary(executable):

def get_PE_dll_characteristics(executable):
'''
Get PE DllCharacteristics bits
Get PE DllCharacteristics bits.
Returns a tuple (arch,bits) where arch is 'i386:x86-64' or 'i386'
and bits is the DllCharacteristics value.
'''
p = subprocess.Popen([OBJDUMP_CMD, '-x', executable], stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
(stdout, stderr) = p.communicate()
if p.returncode:
raise IOError('Error opening file')
arch = ''
bits = 0
for line in stdout.split('\n'):
tokens = line.split()
if len(tokens)>=2 and tokens[0] == 'architecture:':
arch = tokens[1].rstrip(',')
if len(tokens)>=2 and tokens[0] == 'DllCharacteristics':
return int(tokens[1],16)
return 0
bits = int(tokens[1],16)
return (arch,bits)

IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA = 0x0020
IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE = 0x0040
IMAGE_DLL_CHARACTERISTICS_NX_COMPAT = 0x0100

def check_PE_PIE(executable):
def check_PE_DYNAMIC_BASE(executable):
'''PIE: DllCharacteristics bit 0x40 signifies dynamicbase (ASLR)'''
return bool(get_PE_dll_characteristics(executable) & 0x40)
(arch,bits) = get_PE_dll_characteristics(executable)
reqbits = IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE
return (bits & reqbits) == reqbits

# On 64 bit, must support high-entropy 64-bit address space layout randomization in addition to DYNAMIC_BASE
# to have secure ASLR.
def check_PE_HIGH_ENTROPY_VA(executable):
'''PIE: DllCharacteristics bit 0x20 signifies high-entropy ASLR'''
(arch,bits) = get_PE_dll_characteristics(executable)
if arch == 'i386:x86-64':
reqbits = IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA
else: # Unnecessary on 32-bit
assert(arch == 'i386')
reqbits = 0
return (bits & reqbits) == reqbits

def check_PE_NX(executable):
'''NX: DllCharacteristics bit 0x100 signifies nxcompat (DEP)'''
return bool(get_PE_dll_characteristics(executable) & 0x100)
(arch,bits) = get_PE_dll_characteristics(executable)
return (bits & IMAGE_DLL_CHARACTERISTICS_NX_COMPAT) == IMAGE_DLL_CHARACTERISTICS_NX_COMPAT

CHECKS = {
'ELF': [
Expand All @@ -143,7 +171,8 @@ def check_PE_NX(executable):
('Canary', check_ELF_Canary)
],
'PE': [
('PIE', check_PE_PIE),
('DYNAMIC_BASE', check_PE_DYNAMIC_BASE),
('HIGH_ENTROPY_VA', check_PE_HIGH_ENTROPY_VA),
('NX', check_PE_NX)
]
}
Expand All @@ -168,12 +197,18 @@ def identify_executable(executable):
continue

failed = []
warning = []
for (name, func) in CHECKS[etype]:
if not func(filename):
failed.append(name)
if name in NONFATAL:
warning.append(name)
else:
failed.append(name)
if failed:
print('%s: failed %s' % (filename, ' '.join(failed)))
retval = 1
if warning:
print('%s: warning %s' % (filename, ' '.join(warning)))
except IOError:
print('%s: cannot open' % filename)
retval = 1
Expand Down
3 changes: 3 additions & 0 deletions contrib/devtools/test-security-check.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python2
# Copyright (c) 2015-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Test script for security-check.py
'''
Expand Down
4 changes: 4 additions & 0 deletions contrib/gitian-build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

# What to do
sign=false
verify=false
Expand Down
4 changes: 4 additions & 0 deletions contrib/macdeploy/detached-sig-apply.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

set -e

UNSIGNED="$1"
Expand Down
4 changes: 4 additions & 0 deletions contrib/macdeploy/detached-sig-create.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

set -e

ROOTDIR=dist
Expand Down
4 changes: 4 additions & 0 deletions contrib/macdeploy/extract-osx-sdk.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright (c) 2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

set -e

INPUTFILE="Xcode_7.3.1.dmg"
Expand Down
4 changes: 4 additions & 0 deletions contrib/qos/tc.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2013 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

#network interface on which to limit traffic
IF="eth0"
#limit of the network interface in question
Expand Down
22 changes: 0 additions & 22 deletions contrib/qt_translations.py

This file was deleted.

3 changes: 3 additions & 0 deletions contrib/seeds/makeseeds.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python
# Copyright (c) 2013-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Generate seeds.txt from Pieter's DNS seeder
#
Expand Down
35 changes: 0 additions & 35 deletions contrib/spendfrom/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions contrib/spendfrom/setup.py

This file was deleted.

Loading