Zach Ramsay
d6e03d2368
linting: add to Makefile & do some fixes
2017-09-22 11:42:29 -04:00
Ethan Buchman
191c4b6d17
Merge pull request #111 from tendermint/develop
...
Develop
2017-09-22 11:16:23 -04:00
Ethan Buchman
88cb73d95a
changelog
2017-09-22 11:16:09 -04:00
Ethan Buchman
667c2543ea
use request struct for Info
2017-09-22 11:10:55 -04:00
Ethan Buchman
3d1fd4cefa
Merge pull request #110 from tendermint/update-readme
...
readme: re-organize & update docs links
2017-09-22 10:45:59 -04:00
Ethan Buchman
39b206f2c1
version bump, changelog, glide
2017-09-22 10:38:45 -04:00
Ethan Buchman
311e8c1bf0
Merge pull request #30 from tendermint/develop
...
Develop
2017-09-22 10:29:28 -04:00
Ethan Buchman
e6ea9499ff
glide and changelog
2017-09-22 10:22:55 -04:00
Ethan Buchman
628791e5a5
Merge pull request #665 from tendermint/no-internet
...
p2p: allow listener with no external connection
2017-09-22 10:16:50 -04:00
Ethan Buchman
df857266b6
update glide
2017-09-22 10:14:05 -04:00
Ethan Buchman
ddb3d8945d
p2p: allow listener with no external connection
2017-09-22 10:13:23 -04:00
Zach Ramsay
47d6f71e5a
Makefile: remove redundant lint
2017-09-22 10:11:22 -04:00
Zach Ramsay
96d2a2c92f
readme: re-organize & update docs links
2017-09-22 10:10:56 -04:00
Ethan Buchman
94d1b8d364
Merge pull request #109 from tendermint/metalinter
...
Metalinter
2017-09-22 09:52:15 -04:00
Zach Ramsay
fe426de5d4
lint: couple more fixes
2017-09-22 09:45:50 -04:00
Ethan Buchman
2130c329eb
Merge pull request #46 from tendermint/develop
...
v0.3.0
2017-09-22 09:41:12 -04:00
Ethan Buchman
bffe6744ec
changelog
2017-09-22 09:38:58 -04:00
Ethan Buchman
c3108f14c8
Merge pull request #52 from tendermint/573-wal-issues
...
call fsync after flush
2017-09-22 09:35:52 -04:00
Ethan Buchman
a3ac825490
small fix
2017-09-22 09:14:45 -04:00
Zach Ramsay
0e7d974410
install
2017-09-22 09:14:42 -04:00
Zach Ramsay
65eb7e8974
linted, somewhat
2017-09-22 09:14:25 -04:00
Zach Ramsay
36e96c5bf1
linting: catch some errors
2017-09-22 09:14:25 -04:00
Zach Ramsay
6a378d30f3
linting: cover the basics
2017-09-22 09:14:25 -04:00
Zach Ramsay
bd9f1d0d4c
metalinter: add linter to Makefile like tendermint
2017-09-22 09:14:25 -04:00
Ethan Buchman
7f5908b622
Merge pull request #637 from tendermint/feature/hsm
...
PrivValidator Interface
2017-09-22 00:28:40 -04:00
Ethan Buchman
34e70090e6
Merge pull request #108 from tendermint/app-interface-upgrade
...
use request structs for InitChain and BeginBlock
2017-09-22 00:18:52 -04:00
Ethan Buchman
318345f996
fix tests
2017-09-22 00:10:13 -04:00
Ethan Buchman
24f7b9387a
more tests
2017-09-22 00:05:39 -04:00
Ethan Buchman
756818f940
fixes from review
2017-09-21 21:44:36 -04:00
Anton Kaliaev
d71d1394ec
call fsync after flush (Refs #573 )
...
short: flushing the bufio buffer is not enough to ensure data
consistency.
long:
Saving an entry to the WAL calls writeLine to append data to the
autofile group backing the WAL, then calls group.Flush() to flush that
data to persistent storage. group.Flush() in turn proxies to
headBuf.flush(), flushing the active bufio.BufferedWriter. However,
BufferedWriter wraps a Writer, not another BufferedWriter, and the way
it flushes is by calling io.Writer.Write() to clear the BufferedWriter's
buffer. The io.Writer we're wrapping here is AutoFile, whose Write
method calls os.File.Write(), performing an unbuffered write to the
operating system, where, I assume, it sits in the OS buffers awaiting
sync. This means that Wal.Save does not, in fact, ensure the saved
operation is synced to disk before returning.
2017-09-21 16:11:28 -07:00
Ethan Buchman
2131f8d330
some fixes from review
2017-09-21 17:21:20 -04:00
Ethan Buchman
8ae2ffda89
put funcs back in order to simplify review
2017-09-21 16:59:25 -04:00
Ethan Buchman
75b97a5a65
PrivValidatorFS is like old PrivValidator, for now
2017-09-21 16:46:31 -04:00
Ethan Buchman
7b99039c34
make signBytesHRS a method on LastSignedInfo
2017-09-21 15:54:33 -04:00
Ethan Buchman
3ca7b10ad4
types: more . -> cmn
2017-09-21 15:54:33 -04:00
Ethan Buchman
779c2a22d0
node: NewNode takes DBProvider and GenDocProvider
2017-09-21 15:54:33 -04:00
Ethan Buchman
147a18b34a
fix some comments
2017-09-21 15:52:25 -04:00
Ethan Buchman
4382c8d28b
fix tests
2017-09-21 15:52:25 -04:00
Ethan Buchman
944ebccfe9
more PrivValidator interface
2017-09-21 15:51:20 -04:00
Ethan Buchman
fd1b0b997a
PrivValidator interface
2017-09-21 15:51:20 -04:00
Ethan Buchman
abe912c610
FuncSignerAndApp allows custom signer and abci app
2017-09-21 15:50:43 -04:00
Ethan Buchman
66fcdf7c7a
minor fixes
2017-09-21 15:50:43 -04:00
Adrian Brink
4e13a19339
Add ability to construct new instance of Tendermint core from scratch
2017-09-21 15:50:43 -04:00
Adrian Brink
7dd3c007c7
Refactor priv_validator
...
Users can now just pass an object that implements the Signer interface.
2017-09-21 15:50:43 -04:00
Duncan Jones
0d392a0442
Allow Signer to be generated with priv key
...
Prior to this change, a custom Signer would have no knowledge of the private
key stored in the configuration file. This changes introduces a generator
function, which creates a Signer based on the private key. This provides an
opportunity for customer Signers to adjust behaviour based on the key
contents. (E.g. imagine key contents are a key label, rather than the key
itself).
2017-09-21 15:50:43 -04:00
Duncan Jones
7e4a704bd1
Remove reliance on default Signer
...
This change allows the default privValidator to use a custom Signer
implementation with no reliance on the default Signer implementation.
2017-09-21 15:50:43 -04:00
Adrian Brink
bf5e956087
Change capitalisation
2017-09-21 15:50:43 -04:00
Adrian Brink
2ccc3326ec
Remove redundant file
2017-09-21 15:50:43 -04:00
Adrian Brink
83f7d5c95a
Setup custom tendermint node
...
By exporting all of the commands, we allow users to setup their own
tendermint node cli. This enables users to provide a different
pivValidator without the need to fork tendermint.
2017-09-21 15:50:43 -04:00
Adrian Brink
2c129447fd
Example that showcases how to build your own tendermint node
...
This example shows how a user of the tendermint library can build their
own node and supply it with its own commands. It includes two todos in
order to make it easier for library users to use tendermint.
2017-09-21 15:50:43 -04:00