README.md 2.89 KB
Newer Older
Gavin Andresen's avatar
Gavin Andresen committed
1
Bitcoin integration/staging tree
Colin Dean's avatar
Colin Dean committed
2
3
4
5
================================

http://www.bitcoin.org

gladoscc's avatar
gladoscc committed
6
Copyright (c) 2009-2013 Bitcoin Developers
Colin Dean's avatar
Colin Dean committed
7
8
9
10
11
12
13
14
15
16
17

What is Bitcoin?
----------------

Bitcoin is an experimental new digital currency that enables instant payments to
anyone, anywhere in the world. Bitcoin uses peer-to-peer technology to operate
with no central authority: managing transactions and issuing money are carried
out collectively by the network. Bitcoin is also the name of the open source
software which enables the use of this currency.

For more information, as well as an immediately useable, binary version of
Mark Friedenbach's avatar
Mark Friedenbach committed
18
the Bitcoin client software, see http://www.bitcoin.org.
Colin Dean's avatar
Colin Dean committed
19
20
21
22

License
-------

super3's avatar
super3 committed
23
Bitcoin is released under the terms of the MIT license. See [COPYING](COPYING) for more
Colin Dean's avatar
Colin Dean committed
24
information or see http://opensource.org/licenses/MIT.
Gavin Andresen's avatar
Gavin Andresen committed
25

26
Development process
Colin Dean's avatar
Colin Dean committed
27
-------------------
Gavin Andresen's avatar
Gavin Andresen committed
28

Colin Dean's avatar
Colin Dean committed
29
30
Developers work in their own trees, then submit pull requests when they think
their feature or bug fix is ready.
Jeff Garzik's avatar
Jeff Garzik committed
31

Colin Dean's avatar
Colin Dean committed
32
33
If it is a simple/trivial/non-controversial change, then one of the Bitcoin
development team members simply pulls it.
Jeff Garzik's avatar
Jeff Garzik committed
34

Colin Dean's avatar
Colin Dean committed
35
36
37
If it is a *more complicated or potentially controversial* change, then the patch
submitter will be asked to start a discussion (if they haven't already) on the
[mailing list](http://sourceforge.net/mailarchive/forum.php?forum_name=bitcoin-development).
Gavin Andresen's avatar
Gavin Andresen committed
38

Colin Dean's avatar
Colin Dean committed
39
40
The patch will be accepted if there is broad consensus that it is a good thing.
Developers should expect to rework and resubmit patches if the code doesn't
super3's avatar
super3 committed
41
match the project's coding conventions (see [doc/coding.md](doc/coding.md)) or are
Colin Dean's avatar
Colin Dean committed
42
controversial.
Gavin Andresen's avatar
Gavin Andresen committed
43

Colin Dean's avatar
Colin Dean committed
44
45
46
The `master` branch is regularly built and tested, but is not guaranteed to be
completely stable. [Tags](https://github.com/bitcoin/bitcoin/tags) are created
regularly to indicate new official, stable release versions of Bitcoin.
Gavin Andresen's avatar
Gavin Andresen committed
47

48
Testing
Colin Dean's avatar
Colin Dean committed
49
50
51
52
53
54
55
56
-------

Testing and code review is the bottleneck for development; we get more pull
requests than we can review and test. Please be patient and help out, and
remember this is a security-critical project where any mistake might cost people
lots of money.

### Automated Testing
Alex Waters's avatar
Alex Waters committed
57

Colin Dean's avatar
Colin Dean committed
58
Developers are strongly encouraged to write unit tests for new code, and to
super3's avatar
super3 committed
59
submit new unit tests for old code. Unit tests can be compiled and run (assuming they weren't disabled in configure) with: `make check`
60

Colin Dean's avatar
Colin Dean committed
61
62
Every pull request is built for both Windows and Linux on a dedicated server,
and unit and sanity tests are automatically run. The binaries produced may be
63
64
used for manual QA testing — a link to them will appear in a comment on the
pull request posted by [BitcoinPullTester](https://github.com/BitcoinPullTester). See https://github.com/TheBlueMatt/test-scripts
Colin Dean's avatar
Colin Dean committed
65
for the build/test scripts.
66

Colin Dean's avatar
Colin Dean committed
67
### Manual Quality Assurance (QA) Testing
68

Colin Dean's avatar
Colin Dean committed
69
70
Large changes should have a test plan, and should be tested by somebody other
than the developer who wrote the code.
71
See https://github.com/bitcoin/QA/ for how to create a test plan.