263 Commits

Author SHA1 Message Date
Matt Smith
037b5110fe Modified Client module and web views to use plublic consensus methods
for creating/signing/verifying instead of the functions in utils.py --
those are now only called by the the BaseConsensusRules class in
consensus.py.
2016-03-13 22:26:35 -07:00
Matt Smith
5c4529f120 Merge remote-tracking branch 'upstream/develop' into modular-consensus-rules
Conflicts:
	setup.py
2016-03-08 18:43:48 -08:00
Matt Smith
79a66bdf9b Added consensus doc stub 2016-03-08 18:42:26 -08:00
Matt Smith
a5243e43f6 This large (sorry) commit
1. switches from a composable plugin model to a single-plugin model
2. switches class methods to static methods in the BaseConsensusRules class
3. adds create_transaction, sign_transaction, and verify_transaction to
the plugin API

TODO: If we adopt this model, all references in e.g. client.py to util
methods like `sign_tx` need to be routed through the plugin methods, and
possibly need to be added to the plugin interface.
2016-03-08 18:33:31 -08:00
Matt Smith
14b71537d6 Made AbstractConsensusRules use python's abc and enforcing that ConsensusRules plugins subclass it 2016-03-08 18:32:25 -08:00
Matt Smith
01d706ac56 Moved consensus package files into single consensus.py module 2016-03-08 18:24:21 -08:00
Troy McConaghy
533d792e97 Merge pull request #117 from bigchaindb/feat/51/add-changelog-md-file
Feat/51/add CHANGELOG.md file
2016-03-08 16:27:10 +01:00
Troy McConaghy
7519901245 Merge branch 'develop' into feat/51/add-changelog-md-file 2016-03-08 14:42:00 +01:00
Alberto Granzotto
aa78310b30 Merge pull request #120 from crazyquark/develop
Add missing package form installer
2016-03-08 13:27:34 +01:00
Cristian S
9e1ff01057 Add missing package form installer
Without this running blockchaindb yields:
Traceback (most recent call last):
  File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.4/trace.py", line 858, in <module>
    main()
  File "/usr/lib/python3.4/trace.py", line 804, in main
    t.runctx(code, globs, globs)
  File "/usr/lib/python3.4/trace.py", line 510, in runctx
    exec(cmd, globals, locals)
  File "/usr/local/bin/bigchaindb", line 9, in <module>
    load_entry_point('BigchainDB==0.1.4', 'console_scripts', 'bigchaindb')()
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 549, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 2542, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 2202, in load
    return self.resolve()
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 2208, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.4/dist-packages/BigchainDB-0.1.4-py3.4.egg/bigchaindb/commands/bigchain.py", line 14, in <module>
    from bigchaindb.processes import Processes
  File "/usr/local/lib/python3.4/dist-packages/BigchainDB-0.1.4-py3.4.egg/bigchaindb/processes.py", line 9, in <module>
    from bigchaindb.web import server
ImportError: No module named 'bigchaindb.web'
2016-03-08 14:06:18 +02:00
Troy McConaghy
c77223ff8c Merge pull request #118 from bigchaindb/bug/104/re-add-license-notification-to-docs
Re-add link to licenses in the docs
2016-03-08 11:59:26 +01:00
troymc
17f7ba3894 Re-add link to licenses in the docs 2016-03-08 10:30:43 +01:00
troymc
6eb2fa463e First revision of CHANGELOG.md 2016-03-07 14:06:30 +01:00
troymc
e34dd01d2b In CONTRIBUTING.md, ask contributors to update CHANGELOG.md 2016-03-07 13:57:45 +01:00
troymc
62c47209e6 First version of CHANGELOG.md 2016-03-07 11:03:48 +01:00
troymc
11c2a515d8 Mention CHANGELOG.md in docs Release Notes 2016-03-07 11:03:09 +01:00
Matt Smith
9644df07f7 Merge remote-tracking branch 'upstream/develop' into
modular-consensus-rules
Resolves conflicts from module reorg in PR #102

Conflicts:
	bigchaindb/__init__.py
	bigchaindb/core.py
2016-03-04 18:07:23 -08:00
troymc
e90f8907dc Remove Done/Past section from ROADMAP.md 2016-03-04 18:45:14 +01:00
Troy McConaghy
8392065fff Merge pull request #115 from bigchaindb/update-roadmap-md
Update ROADMAP.md
2016-03-04 18:37:39 +01:00
Troy McConaghy
d99dd8046f Merge branch 'develop' into update-roadmap-md 2016-03-04 18:11:34 +01:00
Alberto Granzotto
5abf88452a Merge pull request #102 from bigchaindb/feat/17/provide-a-restful-api
Add HTTP API
2016-03-04 17:34:55 +01:00
vrde
fa842acfd4 Merge branch 'feat/17/provide-a-restful-api' of github.com:bigchaindb/bigchaindb into feat/17/provide-a-restful-api 2016-03-04 16:02:17 +01:00
vrde
8ed937aecc Simplify code for client 2016-03-04 16:00:30 +01:00
troymc
7d3bca5cb0 Add Fault Tolerance to ROADMAP.md 2016-03-04 11:15:33 +01:00
troymc
280859651e Update ROADMAP.md 2016-03-03 15:50:14 +01:00
Alberto Granzotto
cf082887f7 Merge branch 'develop' into feat/17/provide-a-restful-api 2016-03-03 14:29:50 +01:00
Dimitri De Jonghe
d8a1c4a3ec Update README.md 2016-03-03 12:55:11 +01:00
vrde
1fa47d4b5f Move last methods to util 2016-03-03 03:09:54 +01:00
vrde
90ccadde29 Merge remote-tracking branch 'origin/develop' into feat/17/provide-a-restful-api 2016-03-03 02:58:53 +01:00
vrde
1475a3cbb1 Move hash_data to the crypto module 2016-03-03 02:02:17 +01:00
vrde
2bafabdfe2 Rename api doc 2016-03-03 01:55:33 +01:00
vrde
0d30747ea7 Bind to localhost 2016-03-03 01:54:12 +01:00
vrde
fc33cf850a Update skipped test 2016-03-03 01:52:38 +01:00
vrde
3a714a7f8e Add config to blueprint and fix tests madness
There was a problem related to the import of the module
`bigchaindb.web.views`.
The module, when imported, inizialises a new `Bigchain` instance, and
this is wrong for testing and because it's a bad practice.

I spent more or less 2h finding out the problem.
2016-03-03 01:40:40 +01:00
Alberto Granzotto
16d78bb2fb Merge pull request #103 from bigchaindb/change-docs-theme
Use the default ReadTheDocs theme
2016-03-02 14:59:49 +01:00
vrde
1fd3e5e59e Add new dep to docs/requirements.txt 2016-03-02 14:18:11 +01:00
vrde
909e011140 Revert "Remove useless requirements.txt"
This reverts commit a5ee9c1f5591f68b80f7e506f85aab9babd692db.
2016-03-02 14:17:23 +01:00
vrde
a5ee9c1f55 Remove useless requirements.txt 2016-03-02 12:28:54 +01:00
vrde
dd694f18fe Use the default ReadTheDocs theme 2016-03-02 01:12:42 +01:00
vrde
456517443a Add more docs 2016-03-01 17:55:37 +01:00
Troy McConaghy
cf2d94db13 Merge pull request #101 from bigchaindb/feat/23/list-fedora-dependencies-in-docs
Docs: note OS-level dependencies on Fedora
2016-03-01 13:16:08 +01:00
troymc
f7bfbdf457 Change yum to dnf in Fedora install notes 2016-03-01 12:20:29 +01:00
troymc
b051fc1639 Docs: note OS-level dependencies on Fedora 2016-03-01 11:45:04 +01:00
Troy McConaghy
cfbce45fa3 In PyStyleGuide: hard-max line-length is 119 chars
Added the following sentence to the Python Style Guide section on Maximum Line Length:

"As a hard limit, keep all lines less than 119 characters (which is the width of GitHub code review)."
2016-03-01 11:31:39 +01:00
vrde
6f689b0ac3 Update URL in temp_client 2016-03-01 10:32:31 +01:00
Matt Smith
2c8cea11eb Added some nonsense consensus rules to demonstrate a simpler plugin. 2016-02-29 19:22:04 -08:00
Matt Smith
380482b967 Added an abstract base class so plugins don't need to add stubs for functions they don't care about. 2016-02-29 19:19:08 -08:00
Matt Smith
ee4720d1a5 Pulled validate_transaction and validate_block out into a base ConsensusRules plugin class 2016-02-29 18:39:23 -08:00
Matt Smith
8a9030e5c0 Added a simple plugin system for consensus rules using setuputils entry_points 2016-02-29 18:38:33 -08:00
vrde
8938811c67 Update endpoints names 2016-02-29 18:28:04 +01:00