Ethan Buchman
dfa9a9a30a
Merge pull request #1840 from tendermint/release/v0.22.0
...
Release/v0.22.0
2018-07-02 14:39:30 -04:00
Ethan Buchman
5923b6288f
update changelog
2018-07-02 14:40:59 -04:00
Ethan Buchman
0f6f6bd3c0
Merge pull request #1606 from tendermint/bucky/hash
...
Bucky/hash
2018-07-02 14:30:24 -04:00
Ethan Buchman
ca3e337ef9
remove libs/merkle
2018-07-02 14:32:27 -04:00
Ethan Buchman
ec710395b7
RIPEMD160 -> SHA256
2018-07-02 14:27:43 -04:00
Ethan Buchman
d47b4ef12d
update some docs
2018-07-02 14:20:27 -04:00
Ethan Buchman
72475c800b
Merge pull request #1843 from tendermint/bucky/external_address
...
Bucky/external address
2018-07-02 13:48:09 -04:00
Ethan Buchman
c3504c111e
add test
2018-07-02 13:04:34 -04:00
Ethan Buchman
737c5c065d
fixes from review
2018-07-02 12:46:02 -04:00
Ethan Buchman
1c018d3fd2
p2p: external address
...
* new config option for external address to advertise
* if blank, defaults to best guess from listener
* if laddr ip address is also blank, default to IPv4
2018-07-02 12:44:48 -04:00
Ethan Buchman
60f233a4bc
Merge pull request #1842 from tendermint/bucky/merge-tmlibs
...
Bucky/merge tmlibs
2018-07-02 12:31:39 -04:00
Ethan Buchman
eccdce11c5
make linter happy
2018-07-02 12:06:43 -04:00
Ethan Buchman
3f4847331f
update grpc version. fix remotedb tests
2018-07-01 23:15:14 -04:00
Ethan Buchman
ff73e0aa55
fix test folder mishap
2018-07-01 22:50:31 -04:00
Ethan Buchman
965a55d2a8
remove tmlibs from dep
2018-07-01 22:39:41 -04:00
Ethan Buchman
d55243f0e6
fix import paths
2018-07-01 22:36:49 -04:00
Ethan Buchman
233b35a2a9
Revert "delete some things for the merge"
...
This reverts commit 2902ab1a14
.
2018-07-01 22:36:13 -04:00
Ethan Buchman
ae3bf81833
mv tmlibs files to libs dir
2018-07-01 22:36:03 -04:00
Ethan Buchman
2d7ffdd72b
Merge remote-tracking branch 'tmlibs/master' into bucky/merge-tmlibs
2018-07-01 22:32:33 -04:00
Ethan Buchman
2902ab1a14
delete some things for the merge
2018-07-01 22:32:06 -04:00
Ethan Buchman
9ff99114b1
update for tmlibs v0.9.0
2018-07-01 22:12:58 -04:00
Ethan Buchman
af703620d4
consensus: stop wal
2018-07-01 12:53:51 -04:00
Ethan Buchman
3a0dff7db2
fix changelog
2018-07-01 11:51:06 -04:00
Ethan Buchman
59145eca62
Merge pull request #1824 from tendermint/1762-tm-stops-producing-blocks
...
Fix emptyPacketMsgSize calc. plus limit max request body size and other mics. changes
2018-07-01 11:39:56 -04:00
Ethan Buchman
d6394bcbfd
Merge branch 'release/v0.22.0' into 1762-tm-stops-producing-blocks
2018-07-01 11:39:43 -04:00
Anton Kaliaev
2d98899b9b
set MaxTxs to 10000 (the same that was used in the config before)
2018-07-01 09:44:12 +04:00
Ethan Buchman
da4632c651
docs/spec: update address spec to sha2 for ed25519
2018-07-01 01:29:28 -04:00
Ethan Buchman
f35ebd5cf7
docs: minor fix for abci query peer filter
2018-07-01 01:23:38 -04:00
Ethan Buchman
6e5a01ccec
changelog and version
2018-07-01 00:50:49 -04:00
Ethan Buchman
b2c3f6f737
Merge pull request #1836 from tendermint/1830-nil-pointer-in-pex
...
fix nil pointer panic by checking if peer is nil
2018-06-29 17:55:06 -04:00
Lawrence Tran
bb0313d060
Fix typo ( #1837 )
...
The base64 encoding for 'abcd' is incorrect for the python decoding examples.
2018-06-29 22:09:50 +04:00
Anton Kaliaev
9752e059e1
fix nil pointer panic by checking if peer is nil
...
Fixes #1830
remember that PeerSet#Get can return nil
2018-06-29 16:03:31 +04:00
Anton Kaliaev
399e2fbdac
update changelog
2018-06-29 12:57:17 +04:00
Anton Kaliaev
61c5791fa3
revert back to Jae's original payload size limit
...
except now we calculate the max size using the maxPacketMsgSize()
function, which frees developers from having to know amino encoding
details.
plus, 10 additional bytes are added to leave the room for amino upgrades
(both making it more efficient / less efficient)
2018-06-29 12:57:17 +04:00
Anton Kaliaev
ab04201c3d
fix empty packet size calculation
...
Fixes #1762#issuecomment-398940107
2018-06-29 12:40:32 +04:00
Anton Kaliaev
297cd4cfe8
limit HTTP request body and WS read msg size to 1MB
2018-06-29 12:40:32 +04:00
Anton Kaliaev
f760c24ff0
[config] remove MaxBlockSizeTxs and MaxBlockSizeBytes in favor of consensus params
2018-06-29 12:40:32 +04:00
Anton Kaliaev
2a7602c4ed
[tendermint init] add default consensus params to genesis
2018-06-29 12:40:32 +04:00
Anton Kaliaev
9563927bbd
print only tx's hash and size when logging blocks
...
Closes #1799
2018-06-29 12:40:32 +04:00
Anton Kaliaev
ac12432603
[rpc/client/http] set codec on rpc client
2018-06-29 12:40:32 +04:00
Anton Kaliaev
ada5ef0669
[p2p] add godoc comments to Listener ( #1828 )
...
* update changelog
* document p2p/listener
* do not expose underlying net.Listener
* add a TODO
* replace todo with a comment
2018-06-29 11:48:52 +04:00
Rigel
58acbf5ee3
contributing guide typos ( #1831 )
...
* contributing guide typos
* fix git remote cmd
2018-06-29 11:09:16 +04:00
Dev Ojha
41733b46b9
crypto: Abstract pubkey / signature size when known to constants ( #1808 )
...
* crypto: Abstract pubkey / signature size when known to constants
* Created PubKeyEd25519Size as 32
* Created PubkeySecp256k1Size as 33
* Created SignatureEd25519Size as 64
* Remove extraneous message from changelog
2018-06-29 11:08:01 +04:00
Dev Ojha
e26d6ed448
Update ISSUE_TEMPLATE to mention using pastebin ( #1832 )
...
* Update ISSUE_TEMPLATE to mention using pastebin
closes #1826
* Update ISSUE_TEMPLATE
2018-06-29 11:01:11 +04:00
kph7
e556e3336e
Adding IPv6 support to peering ( #1818 )
2018-06-28 11:29:27 +04:00
Max Levy
69356a60b5
Broken link to docs/terraform-and-ansible corrected ( #1823 )
...
Fixed rst -> md
2018-06-28 11:28:41 +04:00
Dev Ojha
b1d6deaf0b
config: rename skip_upnp to upnp ( #1827 )
...
* config: rename skip_upnp to upnp
Change default option to enable upnp.
Closes #1806
* doc updates
- fix comment and set UPNP to false in TestP2PConfig
- add UPNP to config template
- update changelog
2018-06-28 11:09:39 +04:00
Anton Kaliaev
aa20c45ae9
log total when adding new txs to the mempool
2018-06-27 18:14:45 +04:00
Ethan Buchman
70d314312c
consensus: fix addProposalBlockPart
...
* When create_empty_blocks=false, we don't enterPropose until we
* receive a transaction, but if we then receive a complete proposal,
* we should enterPrevote. A guard in addProposalBlockPart was checking if
* step==Propose before calling enterPrevote, but we need it to be step<=Propose,
* since we may not have seen a tx.
* This was discovered by disabling mempool broadcast, sending txs to
* peers one a time, and observing their consensus logs.
2018-06-27 18:14:45 +04:00
Ethan Buchman
fa3bd05d44
mempool: log hashes, not whole tx
2018-06-27 18:14:45 +04:00
Roman Useinov
f0e5332b1f
Feature/support https rpc client ( #1816 )
...
* Implement support for https in rpc client
* Update changelog
* update comment
* support wss protocol
* fixed changelog
* if -> switch
* fix lint
* protocol constants introduced
2018-06-27 15:03:47 +04:00
Max Levy
231812c875
proper link to a docs module ( #1822 )
...
Fixed rst -> md
2018-06-27 10:54:01 +04:00
Ricardo Domingos
e6abdb8b9d
p2p/trust: Fix nil pointer error on TrustMetric Copy() ( #1819 )
2018-06-27 08:37:30 +04:00
Anton Kaliaev
8412b75b10
Merge pull request #1800 from tendermint/zach/more-docs-fixes
...
docs cleanup
2018-06-26 11:33:25 +04:00
Anton Kaliaev
9f656e1239
add a link to full node guide
...
Refs https://github.com/tendermint/tendermint/pull/1800/files#r197919542
2018-06-26 11:21:25 +04:00
Zach Ramsay
c6626f94de
the last RTD version is archived
2018-06-25 10:33:18 -04:00
Zach
fd55ccdd99
Merge branch 'develop' into zach/more-docs-fixes
2018-06-25 10:27:33 -04:00
Zach Ramsay
516b3399f3
docs: update js-abci example
...
closes https://github.com/tendermint/js-abci/issues/21
2018-06-25 10:14:32 -04:00
Jae Kwon
e09e3a56f3
Merge pull request #225 from tendermint/develop
...
0.9.0 release
2018-06-24 19:41:18 -07:00
Jae Kwon
49596e0a1f
Bump version to 0.9.0
2018-06-24 19:40:24 -07:00
Jeremiah Andrews
cb08d28d40
Reverse iterators ( #224 )
...
with passing tests
2018-06-24 19:37:32 -07:00
Ethan Buchman
ce0d0b312f
Merge pull request #1711 from tendermint/bucky/adrs
...
Bucky/adrs
2018-06-23 09:22:14 -04:00
Ethan Buchman
1215081951
adr: update readme
2018-06-23 09:29:46 -04:00
Ethan Buchman
500fca8efe
fixes from review
2018-06-23 09:29:46 -04:00
Anton Kaliaev
f6ff6b0e15
use consistent naming for protobuf
...
protobuf -> proto
protobuf version X -> protoX
2018-06-23 09:29:46 -04:00
Ethan Buchman
956e6d3435
change BeginBlock validators to LastCommitInfo
2018-06-23 09:28:44 -04:00
Ethan Buchman
3e1684d2a2
adr-010-crypto-changes
2018-06-23 09:28:44 -04:00
Ethan Buchman
a25d181074
adr-009: add references
2018-06-23 09:28:44 -04:00
Ethan Buchman
7d82bdb3e6
adr-009: no pubkeys in beginblock
2018-06-23 09:28:44 -04:00
Ethan Buchman
c48ff031cd
add ADR-009 for ABCI design upgrade
2018-06-23 09:28:44 -04:00
zramsay
835af6fcb9
link fixes
2018-06-23 00:06:04 +00:00
zramsay
6c92a6f99a
prepare RTD dismantling
2018-06-23 00:00:42 +00:00
Alexander Simmerl
f62d6651e3
Merge pull request #1781 from tendermint/1740-node-crashes-when-too-many-rpc-connections
...
limit number of open connections
2018-06-23 01:15:03 +02:00
Alexander Simmerl
0d35d722cb
rpc: Break up long lines
2018-06-23 01:01:31 +02:00
Alexander Simmerl
e39e43f86f
Merge pull request #1790 from tendermint/xla/merge-abci-tmlibs
...
Merge abci
2018-06-23 00:55:31 +02:00
Alexander Simmerl
e9e00c4db7
Merge pull request #1797 from SamuelSarle/develop
...
Rename sync_info.syncing to sync_info.catching_up
2018-06-23 00:49:47 +02:00
Zach Ramsay
003d8956a5
rm dead docs file
2018-06-22 18:23:45 -04:00
Zach
867550dd8b
docs: update abci links ( #1796 )
2018-06-23 00:16:51 +02:00
Zach Ramsay
c1548c7861
docs readme is vuepress landing page
2018-06-22 18:13:25 -04:00
Zach Ramsay
8ff95bf32c
remove old code
2018-06-22 18:10:50 -04:00
Samuel Sarle
8554a6dcd8
Renamed sync_info.syncing to sync_info.catching_up.
2018-06-23 00:20:49 +03:00
Anton Kaliaev
f5b8849106
bump max connections number to 900
2018-06-22 22:48:20 +04:00
Alexander Simmerl
01f6009518
abci: Add comment for doc update
2018-06-22 20:36:29 +02:00
Alexander Simmerl
3f34deab90
abci: Remove LICENSE
2018-06-22 20:29:23 +02:00
Alexander Simmerl
693a973997
abci: Remove nested .gitignore
2018-06-22 20:28:54 +02:00
Alexander Simmerl
02e5cbaa07
abci: Remove old repo docs
2018-06-22 20:23:37 +02:00
Alexander Simmerl
77573a1bad
ci: Move over abci-cli tests
2018-06-22 20:09:44 +02:00
Alexander Simmerl
3ff3a8ec37
ci: Setup abci in dependency step
2018-06-22 19:29:44 +02:00
Anton Kaliaev
936a655990
limit number of open connections
...
Refs #1740
also, expose limit option for number concurrent streams for gRPC
(unlimited by default)
2018-06-22 19:25:11 +04:00
Alexander Simmerl
a605b66c5a
Move abci imports
2018-06-22 07:28:07 +02:00
Alexander Simmerl
3e1baf68f8
crypto: Rename last traces of go-crypto ( #1786 )
...
Follow-up to #1782
2018-06-22 08:24:36 +04:00
Alexander Simmerl
4bee228ba7
Add abci repo
2018-06-22 02:36:54 +02:00
Alexander Simmerl
7e3de2027e
Merge pull request #1787 from tendermint/dev/hkdfchachapoly_testvector_seal
...
crypto/hkdfchachapoly: Add testing seal to the test vector
2018-06-22 01:59:35 +02:00
ValarDragon
3ae878b229
crypto/hkdfchachapoly: Add testing seal to the test vector
2018-06-21 16:47:48 -07:00
Ethan Buchman
2b5229dd5e
Merge pull request #1782 from Liamsi/merge-city
...
Merge go-crypto into tendermint
2018-06-21 15:53:02 -07:00
Ethan Buchman
9cd9f3338b
Merge branch 'master' into develop
2018-06-21 12:57:09 -07:00
Ethan Buchman
46369a1ab7
Merge pull request #1779 from tendermint/release/v0.21.0
...
Release/v0.21.0
2018-06-21 12:44:31 -07:00
Ethan Buchman
1e3951c61c
update changelog
2018-06-21 12:47:29 -07:00
Liamsi
9803f18494
review comments:
...
gofmt
2018-06-21 12:21:33 -07:00
Liamsi
a39b2522d5
review comments:
...
- re-add test
- add TODO
- err instead of panic where possible
2018-06-21 11:51:46 -07:00
Liamsi
c96b27136f
remove go-crypto from go-crypto:
...
use tendermint/crypto :-)
2018-06-20 21:05:38 -07:00
Liamsi
80ab7bfe99
fix p2p test in circleci
2018-06-20 20:59:33 -07:00
Liamsi
f3d755f5e8
please the linter gods:
...
crypto/hkdfchacha20poly1305/hkdfchachapoly_test.go:36:25⚠️ should use make([]byte, 24) instead (S1019) (gosimple)
2018-06-20 20:29:12 -07:00
Liamsi
8329b86570
more changes from #1721
2018-06-20 20:25:08 -07:00
Liamsi
4fb40e5437
cherry pick @melekes changes
2018-06-20 20:04:43 -07:00
Liamsi
25397fb9f8
more changes from #1721
2018-06-20 18:30:14 -07:00
Liamsi
6677f81ffb
revert change from #1721
...
makes TestListener never quit
2018-06-20 17:48:04 -07:00
Liamsi
5a70fa6f35
fix typos
2018-06-20 17:42:52 -07:00
Liamsi
d2c05bc5b9
Revert "delete everything" (includes everything non-go-crypto)
...
This reverts commit 96a3502
2018-06-20 17:35:30 -07:00
Liamsi
587505d4d2
fix crypto tests
2018-06-20 17:34:28 -07:00
Liamsi
eedd20f4d5
Revert "delete everything"
...
This reverts commit 96a3502126
.
# Conflicts:
# CHANGELOG.md
# Gopkg.lock
# Gopkg.toml
# LICENSE
# Makefile
# README.md
2018-06-20 15:37:45 -07:00
Liamsi
368c236c75
mv go-crypto files to crypto dir
2018-06-20 15:30:44 -07:00
Liamsi
96a3502126
delete everything
2018-06-20 15:19:08 -07:00
Christopher Goes
edb36d38b2
Merge PR #142 : Delete keys package & Ledger integration; update tests
2018-06-20 23:33:33 +02:00
Christopher Goes
c7a842a4e2
Update Gopkg.lock
2018-06-20 23:31:57 +02:00
Liamsi
7ebc7c08e7
delete keys package
...
- also delete ledger code and deps (thx cwgoes)
Signed-off-by: Liamsi <Liamsi@users.noreply.github.com >
2018-06-20 14:30:57 -07:00
Liamsi
a589e0eabd
delete keys package
...
- it will be moved to cosmos-sdk
2018-06-20 14:09:24 -07:00
Ismail Khoffi
4634063698
keys package: fundraiser compatibility and HD keys (BIP 39 & BIP 32 / BIP 44) ( #118 )
...
- fundraiser compatibility for HD keys (BIP 39 & BIP 32 / BIP 44)
2018-06-20 13:30:22 -07:00
Alexander Simmerl
37385cb1d4
Merge pull request #1737 from tendermint/986-monitoring
...
metrics
2018-06-20 20:43:20 +02:00
Anton Kaliaev
8c1ca9d64a
updates to docs/specification/configuration.md after rebase
2018-06-20 12:42:43 +04:00
Anton Kaliaev
205d8b8062
fixes after @xla review
...
- move prometheus metrics into internal packages
- *Option structs
- misc. format changes
2018-06-20 12:40:25 +04:00
Anton Kaliaev
e4bb3566a0
move metrics constructors to a separate package
2018-06-20 12:40:25 +04:00
Anton Kaliaev
829342a82d
make StartPrometheusServer func private
...
we don't really need to export it
2018-06-20 12:40:25 +04:00
Anton Kaliaev
84812145cb
friendly apis for constructors
2018-06-20 12:40:25 +04:00
Anton Kaliaev
cd11a54f7a
add since column to list of available metrics table
2018-06-20 12:40:25 +04:00
Anton Kaliaev
d8fea3ec9d
separate http server for metrics
2018-06-20 12:40:23 +04:00
Anton Kaliaev
b10b0da3fd
bundle imports
2018-06-20 12:40:11 +04:00
Anton Kaliaev
bba2862498
add one useful query
2018-06-20 12:40:11 +04:00
Anton Kaliaev
e90cb4f5fa
add docs
2018-06-20 12:40:11 +04:00
Anton Kaliaev
1bdff076ad
add config option
2018-06-20 12:40:08 +04:00
Anton Kaliaev
c958b5319c
update ADR
2018-06-20 12:38:45 +04:00
Anton Kaliaev
7efb73aa18
mempool size metric
2018-06-20 12:38:45 +04:00
Anton Kaliaev
19699d644f
p2p metric, make height and totalTxs gauges
2018-06-20 12:38:45 +04:00
Anton Kaliaev
0cb50c05fc
add rounds metric
2018-06-20 12:38:45 +04:00
Anton Kaliaev
e58d674f4c
add validators power gauges
2018-06-20 12:38:45 +04:00
Anton Kaliaev
fad76e103b
extract metrics to provider, remove height label
2018-06-20 12:38:45 +04:00
Anton Kaliaev
489d9b9184
more metrics
2018-06-20 12:38:45 +04:00
Anton Kaliaev
3cdf3b670d
serve metrics under /metrics
2018-06-20 12:38:45 +04:00
Anton Kaliaev
5c869b5888
validator metrics
2018-06-20 12:38:45 +04:00
Anton Kaliaev
9e14dc21a9
add labels column
2018-06-20 12:38:45 +04:00
Anton Kaliaev
5c7093cc9f
go-kit metrics plus prometheus: one metric
2018-06-20 12:38:45 +04:00
Anton Kaliaev
03079185d4
metrics ADR
...
Refs #986
2018-06-20 12:38:45 +04:00
Zach
63e2f43b72
updates to docs for vuepress ( #1763 )
...
* fix docs for vue, #1640
* docs: clean up re-install instructions
2018-06-20 11:51:16 +04:00
Ethan Buchman
d220a1ef13
changelog
2018-06-20 00:22:07 -07:00
Ethan Buchman
c6c468c341
update changelog
2018-06-20 00:13:23 -07:00
Ethan Buchman
1d86270e20
version
2018-06-20 00:09:55 -07:00
Ethan Buchman
43745c83db
Merge branch 'release/v0.20.1' into develop
2018-06-20 00:08:51 -07:00
Ethan Buchman
c793a72ac5
Merge pull request #1769 from tendermint/1755-possible-memory-leak
...
Memory leak in Websocket
2018-06-19 23:57:29 -07:00
Dev Ojha
fed8807a32
Switch xchachapoly to hkdfchachapoly ( #135 )
...
* Switch from xchachapoly to hkdfchachapoly
2018-06-19 22:18:36 -07:00
Anton Kaliaev
cfff83fa3d
update changelog
2018-06-19 20:20:30 +04:00
Anton Kaliaev
4fc06e9d2a
[libs/pubsub] fix memory leak
...
Refs #1755
I started with writing a test for wsConnection (WebsocketManager) where
I:
- create a WS connection
- do a simple echo call
- close it
No leaking goroutines, nor any leaking memory were detected.
For useful shortcuts see my blog post
https://blog.cosmos.network/debugging-the-memory-leak-in-tendermint-210186711420
Then I went to the rpc tests to see if calling Subscribe results in
memory growth. It did.
I used a slightly modified version of TestHeaderEvents function:
```
func TestHeaderEvents(t *testing.T) {
// memory heap before
f, err := os.Create("/tmp/mem1.mprof")
if err != nil {
t.Fatal(err)
}
pprof.WriteHeapProfile(f)
f.Close()
for i := 0; i < 100; i++ {
c := getHTTPClient()
err = c.Start()
require.Nil(t, err)
evtTyp := types.EventNewBlockHeader
evt, err := client.WaitForOneEvent(c, evtTyp, waitForEventTimeout)
require.Nil(t, err)
_, ok := evt.(types.EventDataNewBlockHeader)
require.True(t, ok)
c.Stop()
c = nil
}
runtime.GC()
// memory heap before
f, err = os.Create("/tmp/mem2.mprof")
if err != nil {
t.Fatal(err)
}
pprof.WriteHeapProfile(f)
f.Close()
// dump all running goroutines
time.Sleep(10 * time.Second)
pprof.Lookup("goroutine").WriteTo(os.Stdout, 1)
}
```
```
Showing nodes accounting for 35159.16kB, 100% of 35159.16kB total
Showing top 10 nodes out of 48
flat flat% sum% cum cum%
32022.23kB 91.08% 91.08% 32022.23kB 91.08% github.com/tendermint/tendermint/libs/pubsub/query.(*QueryParser).Init
1056.33kB 3.00% 94.08% 1056.33kB 3.00% bufio.NewReaderSize
528.17kB 1.50% 95.58% 528.17kB 1.50% bufio.NewWriterSize
528.17kB 1.50% 97.09% 528.17kB 1.50% github.com/tendermint/tendermint/consensus.NewConsensusState
512.19kB 1.46% 98.54% 512.19kB 1.46% runtime.malg
512.08kB 1.46% 100% 512.08kB 1.46% syscall.ByteSliceFromString
0 0% 100% 512.08kB 1.46% github.com/tendermint/tendermint/consensus.(*ConsensusState).(github.com/tendermint/tendermint/consensus.defaultDecideProposal)-fm
0 0% 100% 512.08kB 1.46% github.com/tendermint/tendermint/consensus.(*ConsensusState).addVote
0 0% 100% 512.08kB 1.46% github.com/tendermint/tendermint/consensus.(*ConsensusState).defaultDecideProposal
0 0% 100% 512.08kB 1.46% github.com/tendermint/tendermint/consensus.(*ConsensusState).enterNewRound
```
100 subscriptions produce 32MB.
Again, no additional goroutines are running after the end of the test
(wsConnection readRoutine and writeRoutine both finishes). **It means
that some exiting goroutine or object is holding a reference to the
*Query objects, which are leaking.**
One of them is pubsub#loop. It's using state.queries to map queries to
clients and state.clients to map clients to queries.
Before this commit, we're not thoroughly cleaning state.queries, which
was the reason for memory leakage.
2018-06-19 19:59:21 +04:00
Anton Kaliaev
aaddf5d32f
set pubsub default capacity to 0
...
Refs #951
Jae: I don't know a good way to catch these errors in general, but
forcing pubsub's internal channel to have a capacity of 0 will reveal
bugs sooner, if the subscriber also has a 0 or small capacity ch to pull
from.
2018-06-19 17:07:21 +04:00
Anton Kaliaev
26b2e808f7
[rpc/lib/server] wrote a basic test for WebsocketManager
2018-06-19 17:06:48 +04:00
Anton Kaliaev
3d30a42943
add config to issue template
2018-06-19 11:59:14 +04:00
Anton Kaliaev
4f5492c831
add nopTxCache (Nil Object Pattern)
...
to better handle zero cache size
2018-06-19 11:59:07 +04:00
Anton Kaliaev
70d973016e
output msg only once during start
2018-06-19 11:40:40 +04:00
Ethan Buchman
4b2348f697
mempool: fix cache_size==0. closes #1761
2018-06-18 18:21:19 -07:00
Ethan Buchman
6a324764ac
fix circle
2018-06-18 17:18:35 -07:00
Ethan Buchman
3470e5d7b3
changelog and version
2018-06-18 17:15:41 -07:00
Ethan Buchman
a519825bf8
consensus: fixes #1754
...
* updateToState exits early if the state isn't new, which happens after
* fast syncing. This results in not sending a NewRoundStep message. The mempool
* reactor depends on PeerState, which is updated by NewRoundStep
* messages. If the peer never sends a NewRoundStep, the mempool reactor
* will think they're behind, and never forward transactions. Note this
* only happens when `create_empty_blocks = false`, because otherwise
* peers will move through the consensus state and send a NewRoundStep
* for a new step soon anyways. Simple fix is just to send the
* NewRoundStep message during updateToState even if exit early
2018-06-18 17:08:09 -07:00
Ethan Buchman
d457887dd6
Merge pull request #1759 from tendermint/bucky/readme
...
update README
2018-06-16 22:56:35 -07:00
Ethan Buchman
adb6a94f18
contact us at riot
2018-06-16 23:05:24 -07:00
Ethan Buchman
b8bfc041d3
update README
2018-06-16 19:00:42 -07:00
Ethan Buchman
9bad770f21
Merge pull request #1757 from tendermint/bucky/update-spec
...
docs/spec: some organizational cleanup
2018-06-16 13:03:00 -07:00
Ethan Buchman
d3b53e62a5
fix circle
2018-06-15 23:46:43 -07:00
Ethan Buchman
506cf6c9c7
docs/spec: DuplicateVoteEvidence
2018-06-15 23:19:42 -07:00
Ethan Buchman
b8f340afd0
docs/spec: some organizational cleanup
2018-06-15 22:56:26 -07:00
Ismail Khoffi
1a2f468695
fix circleci 2.0 config ( #139 )
2018-06-15 15:17:40 -07:00
Ethan Buchman
c84be3b8dd
Merge pull request #1751 from tendermint/bucky/codeowner-alex
...
add xla as codeowner
2018-06-14 20:22:04 -07:00
Ethan Buchman
050636d5ce
add xla as codeowner
2018-06-14 17:04:45 -07:00
ia
b5775b56c6
all: gofmt ( #1743 )
...
* all: gofmt
Run 'gofmt -w .' from project root.
* Update changelog to say that I ran gofmt
* Revert "Update changelog to say that I ran gofmt"
This reverts commit 956f133ff0354fd7338e7df7c823e6f98b655da6.
2018-06-15 02:03:50 +02:00
Alexander Simmerl
19af3e9733
Merge pull request #1738 from tendermint/zarko/add-blockchain-reactor-algorithm-spec
...
Add algorithm for Blockchain Reactor
2018-06-15 01:47:36 +02:00
Ismail Khoffi
41369d7529
circleci 2.0 ( #134 )
...
* circleci 2.0
2018-06-14 00:04:30 -07:00
Jae Kwon
fb7ec62b29
Fix comment
2018-06-13 23:45:44 -07:00
Jae Kwon
21726a6853
Add ColoredBytes() and update DebugDB
2018-06-13 23:45:44 -07:00
Jae Kwon
1b1c4cd94d
Reduce Errors T/Cause/Message into single Data
2018-06-13 23:45:44 -07:00
Ethan Buchman
917bf4d428
Merge pull request #1732 from maxim-levy/patch-2
...
typo fix
2018-06-13 17:42:29 -07:00
Anton Kaliaev
696e8c6f9e
[docs] write about addr_book_strict in production notes ( #1741 )
...
Refs #1736
2018-06-13 18:24:12 +04:00
Zarko Milosevic
ce73884857
Add spec for Blockchain Reactor algorithm
2018-06-13 14:05:17 +02:00
Alexander Simmerl
fa32dc5181
Merge pull request #1739 from tendermint/dev/bump_version
...
Bump abci version
2018-06-13 01:48:13 +02:00
Alexander Simmerl
da4d1c2038
Merge pull request #270 from tendermint/xla/update-develop-v0120
...
Xla/update develop v0120
2018-06-13 01:32:14 +02:00
ValarDragon
ec0c901bec
Bump abci version
2018-06-12 16:30:24 -07:00
Dev Ojha
198dccf0dd
Merge pull request #269 from tendermint/release/v0.12.0
...
Release/v0.12.0
2018-06-12 16:22:00 -07:00
Alexander Simmerl
1eeebabb0b
Update version and changelog
2018-06-13 01:20:21 +02:00
Christopher Goes
8e273220a3
Remove error from priv.PubKey() ( #131 )
...
* Remove error from priv.PubKey()
* Update changelog
2018-06-12 13:35:22 -07:00
Dev Ojha
b84f788f36
Switch ports 466xx to 266xx ( #1735 )
...
* Switch ports 466xx to be 266xx
This is done so the default ports aren't in the linux kernel's default ephemeral port range.
* Update ABCI import
* Bump cache on circleci
* Get more verbose output for debugging
* Bump abci dependency
* Fix accidental change of a block header's hash
* pin abci release
2018-06-12 13:25:52 +04:00
Adrian Brink
ac80b93b60
unsafe_reset_all
also resets addrbook.json (#1731 )
...
* `unsafe_reset_all` also resets addrbook.json
When executing `unsafe_reset_all` it also clear all IP addresses from
addrbook.json. This is the expected behaviour of `unsafe_reset_all`.
* Fix tests
* improve logging statements
* use correct file
2018-06-12 12:55:10 +04:00
Dev Ojha
887bd8be08
Merge pull request #268 from tendermint/xla/resolve-divergence
...
Resolve divergence
2018-06-11 19:51:48 -07:00
Alexander Simmerl
514065a3c4
Merge branch 'master' into xla/resolve-divergence
2018-06-12 04:50:20 +02:00
Ismail Khoffi
42c6a64e04
version bump ( #128 )
...
version bump
2018-06-11 17:27:32 -07:00
Alexander Simmerl
260d69f372
Merge pull request #110 from tendermint/bucky/sig-name
...
SignatureKey -> Signature
2018-06-12 01:57:26 +02:00
Liamsi
e552d344e3
forgot PrivKeyLedgerSecp256k1
2018-06-11 16:51:38 -07:00
Liamsi
c4484c4a1b
Merge remote-tracking branch 'remotes/origin/develop' into bucky/sig-name
...
# Conflicts:
# Gopkg.lock
# keys/keybase_test.go
# signature_test.go
2018-06-11 16:46:08 -07:00
Liamsi
f4663e5bb7
fix tests, bump amino version, move encoding to encode_test.go,
...
include an example, do not err check on info ... bur for empty info
instead
2018-06-11 16:37:14 -07:00
Liamsi
45a1c8aef3
fix tests, move encoding to encode_test.go, include an example
2018-06-11 16:23:34 -07:00
Alexander Simmerl
dfc5aefd5f
Merge pull request #1726 from tendermint/1717-panic-in-netaddress
...
return an error if we fail to parse external IP
2018-06-12 01:08:16 +02:00
Alexander Simmerl
eb4a8e0e7a
Merge pull request #1719 from Slamper/develop
...
Escape paths in config template
2018-06-12 01:06:22 +02:00
Ethan Buchman
e694c309ba
update ed25519 address scheme ( #112 )
...
make PubKeyEd25519.Address() returns the first 20 bytes of the hash of the raw 32-byte pubkey, no amino required
2018-06-11 15:43:32 -07:00
Dev Ojha
0c98d10b4f
Merge pull request #222 from tendermint/dev/bech32_err_msg
...
Bech32: Wrap error messages
2018-06-11 10:20:51 -07:00
Max Levy
708ddb30f7
typo fix
...
And typo fix
2018-06-11 22:53:48 +09:00
Joon
66794a174a
Move from tmlibs #213 ( #115 )
...
* move from tmlibs 213
* expose KVPair, simpleproofsfrommap returns keys
2018-06-10 20:43:40 -07:00
Christopher Goes
c21f67c5af
Unify local and external keys in keybase interface ( #117 )
...
* Return errors on priv.Sign(), priv.PubKey()
* Add CreateLedger, CreateOffline
* Add switch on .Sign() for Ledger wallets
* Add offline signing switch on .Sign()
* Use MustUnmarshalBinaryBare()
* Add confirmation to delete offline/Ledger keys
* Lowercase error message
* Add human-readable .GetType() function to Info interface
* Rename CryptoAlgo => SignAlgo
* assert.Nil(t, err) => assert.NoError(t, err)
2018-06-10 01:01:41 -07:00
ValarDragon
1d66e34dc8
Bech32: Wrap error messages
2018-06-09 16:22:52 -07:00
Anton Kaliaev
cd3a240c9f
return an error if we fail to parse external IP
...
```
I[06-08|11:51:57.234] Getting UPNP external address module=p2p
I[06-08|11:51:58.867] Got UPNP external address module=p2p address=
```
Fixes #1717
```
I[06-08|11:51:56.952] Starting multiAppConn module=proxy impl=multiAppConn
I[06-08|11:51:56.952] Starting localClient module=abci-client connection=query impl=localClient
I[06-08|11:51:56.952] Starting localClient module=abci-client connection=mempool impl=localClient
I[06-08|11:51:56.952] Starting localClient module=abci-client connection=consensus impl=localClient
I[06-08|11:51:56.952] ABCI Handshake module=consensus appHeight=0 appHash=
I[06-08|11:51:56.952] ABCI Replay Blocks module=consensus appHeight=0 storeHeight=0 stateHeight=0
I[06-08|11:51:57.053] Completed ABCI Handshake - Tendermint and App are synced module=consensus appHeight=0 appHash=
I[06-08|11:51:57.053] This node is a validator module=consensus addr=6816B5D9BAC32A3CDF07884D9D3D2650694C371D pubKey=PubKeyEd25519{27A40CD032DD2467342D0CF27C5EC92052D966FEC714B6CF2F3BF3146AFD0D51}
I[06-08|11:51:57.234] Starting Node module=main impl=Node
I[06-08|11:51:57.234] Starting EventBus module=events impl=EventBus
I[06-08|11:51:57.234] Local listener module=p2p ip=:: port=46656
I[06-08|11:51:57.234] Getting UPNP external address module=p2p
I[06-08|11:51:58.867] Got UPNP external address module=p2p address=
I[06-08|11:51:58.867] Starting DefaultListener module=p2p impl=Listener(@<nil>:46656)
I[06-08|11:51:58.867] P2P Node ID module=main ID=3629b516392e494ae717ac4c6a1ea7eb0fe421c3 file=/home/tpb/.tendermint/config/node_key.json
I[06-08|11:51:58.868] Add our address to book module=p2p book=/home/tpb/.tendermint/config/addrbook.json addr=null
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x89fb86]
goroutine 1 [running]:
github.com/tendermint/tendermint/p2p.(*NetAddress).String(0x0, 0xc96e24, 0x17)
/home/tpb/code/go/src/github.com/tendermint/tendermint/p2p/netaddress.go:171 +0x26
github.com/tendermint/tendermint/p2p/pex.(*addrBook).AddOurAddress(0xc420190620, 0x0)
/home/tpb/code/go/src/github.com/tendermint/tendermint/p2p/pex/addrbook.go:160 +0x116
github.com/tendermint/tendermint/node.(*Node).OnStart(0xc420286d00, 0xc4201b8010, 0xd)
/home/tpb/code/go/src/github.com/tendermint/tendermint/node/node.go:402 +0x547
github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common.(*BaseService).Start(0xc420286d00, 0xe51c40, 0xc42000bd40)
/home/tpb/code/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common/service.go:130 +0x3bd
github.com/tendermint/tendermint/cmd/tendermint/commands.NewRunNodeCmd.func1(0xc42022e000, 0xc4200acdc0, 0x0, 0x1, 0x0, 0x0)
/home/tpb/code/go/src/github.com/tendermint/tendermint/cmd/tendermint/commands/run_node.go:58 +0xfe
github.com/tendermint/tendermint/vendor/github.com/spf13/cobra.(*Command).execute(0xc42022e000, 0xc4200acda0, 0x1, 0x1, 0xc42022e000, 0xc4200acda0)
/home/tpb/code/go/src/github.com/tendermint/tendermint/vendor/github.com/spf13/cobra/command.go:762 +0x468
github.com/tendermint/tendermint/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x1289280, 0xbbdda0, 0xc420015e01, 0xc4201bc640)
/home/tpb/code/go/src/github.com/tendermint/tendermint/vendor/github.com/spf13/cobra/command.go:852 +0x30a
github.com/tendermint/tendermint/vendor/github.com/spf13/cobra.(*Command).Execute(0x1289280, 0xc4201bc640, 0xc420015e98)
/home/tpb/code/go/src/github.com/tendermint/tendermint/vendor/github.com/spf13/cobra/command.go:800 +0x2b
github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/cli.Executor.Execute(0x1289280, 0xde5798, 0x2, 0xc4200332c0)
/home/tpb/code/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/cli/setup.go:89 +0x4e
main.main()
/home/tpb/code/go/src/github.com/tendermint/tendermint/cmd/tendermint/main.go:45 +0x24d
```
2018-06-09 15:03:38 +04:00
Hendrik Hofstadt
e93865f7de
escape paths in config template
2018-06-08 20:44:54 -07:00
Ethan Buchman
f6c960c3d3
Merge branch 'develop' of https://github.com/tendermint/go-crypto into develop
2018-06-08 17:29:20 -07:00
Ethan Buchman
854eb323dd
dev version bump
2018-06-08 17:28:50 -07:00
Ethan Buchman
710efe576a
Merge pull request #113 from tendermint/release/v0.7.0
...
Release/v0.7.0
2018-06-08 17:17:35 -07:00
Alexander Simmerl
2e0466d1c8
Merge pull request #1722 from tendermint/dev/document_peer_types
...
Update description of seed and persistent peer nodes
2018-06-09 02:14:48 +02:00
ValarDragon
fd9375c35b
Docs: Update description of seeds and persistent peers
2018-06-09 01:25:46 +02:00
Ethan Buchman
5ebf9b816b
Merge pull request #1698 from tendermint/zach/rst-2-md
...
docs to markdown
2018-06-07 21:46:18 -07:00
Christopher Goes
361277f9be
Merge branch 'develop' into dev/ephemeral_ports
2018-06-08 04:14:45 +02:00
Zach Ramsay
724b6c39b8
style fixes/typos/etc from PR review
2018-06-07 10:01:31 -04:00
Zach Ramsay
9aef3fa610
docs: pretty fixes
2018-06-07 09:41:57 -04:00
Zach Ramsay
e82ab1c374
moar fixes
2018-06-07 09:41:57 -04:00
Zach Ramsay
ffa8b5f620
oomph
2018-06-07 09:41:57 -04:00
Zach Ramsay
df07f8b36a
moar
2018-06-07 09:41:57 -04:00
Zach Ramsay
d4d91d7781
running in prod
2018-06-07 09:41:57 -04:00
Zach Ramsay
3039aa1e67
intro
2018-06-07 09:41:57 -04:00
Zach Ramsay
d4d79886b2
indexing txns
2018-06-07 09:41:57 -04:00
Zach Ramsay
b429d65f9f
how to read logs
2018-06-07 09:41:57 -04:00
Zach Ramsay
20e1eadcf1
getting started
2018-06-07 09:41:57 -04:00
Zach Ramsay
2e18a4e633
determinism & ecosystem
2018-06-07 09:41:57 -04:00
Zach Ramsay
b860018975
deploy tesnets
2018-06-07 09:41:57 -04:00
Zach Ramsay
44c88805a7
app devel
2018-06-07 09:41:57 -04:00
Zach Ramsay
a9b6fcdbc4
docs: cleanup/clarify build process
2018-06-07 09:41:57 -04:00
Zach Ramsay
14a5dfd945
docs: start move back to md
2018-06-07 09:41:57 -04:00
Ethan Buchman
24fa2a62b0
dev version bump
2018-06-06 20:57:19 -07:00
Ethan Buchman
27bd1deabe
Merge pull request #1703 from tendermint/release/v0.20.0
...
Release/v0.20.0
2018-06-06 20:47:17 -07:00
Ethan Buchman
76c82fd433
add more tests
2018-06-06 20:49:00 -07:00
Ethan Buchman
640af0205d
Merge pull request #219 from tendermint/include-group-close-in-tests
...
[autofile] include call to group#Close in tests
2018-06-06 20:46:39 -07:00
Ethan Buchman
9481cabd50
fixes from review
2018-06-06 20:45:20 -07:00
Ethan Buchman
46b957929c
Merge branch 'develop' into release/v0.20.0
2018-06-06 19:24:36 -07:00
Ethan Buchman
512e563d4b
Merge pull request #1694 from tendermint/dev/bsd_install_script
...
docs: Add BSD install script
2018-06-06 19:14:46 -07:00
ValarDragon
a6a4fc7784
docs: Add BSD install script
2018-06-06 17:57:25 -07:00
Ethan Buchman
bfcec02423
Merge pull request #1702 from tendermint/xla/fix-racy-config
...
Fix race when mutating MConnConfig
2018-06-06 17:15:53 -07:00
Ethan Buchman
fcf61b8088
check addrs match pubkeys in abci Validator. version bump
2018-06-06 16:35:35 -07:00
Ethan Buchman
46fb179605
Merge pull request #1701 from tendermint/bucky/abci-fixes
...
Bucky/abci fixes
2018-06-06 16:12:12 -07:00
Ethan Buchman
89925501f3
p2p/filter/pubkey -> p2p/filter/id
2018-06-06 16:13:51 -07:00
Ethan Buchman
6b8613b3e7
ResponseEndBlock: ensure Address matches PubKey if provided
2018-06-06 16:12:14 -07:00
Ethan Buchman
8be27494bb
update abci spec. add address spec
2018-06-06 16:11:58 -07:00
Alexander Simmerl
c661a3ec21
Fix race when mutating MConnConfig
...
Instead of mutating the passed in MConnConfig part of P2PConfig we just
use the default and override the values, the same as before as it was
always the default version. This is yet another good reason to not embed
information and access to config structs in our components and will go
away with the ongoing refactoring in #1325 .
2018-06-07 01:09:13 +02:00
Ethan Buchman
8e45348737
update for abci v0.11.0 release. let InitChain update validators
2018-06-06 15:47:04 -07:00
Ethan Buchman
0b0d9d0029
Merge pull request #262 from tendermint/changelog-date
...
date in changelog
2018-06-06 14:56:15 -07:00
Ethan Buchman
aaeeb76808
date in changelog
2018-06-06 13:22:57 -07:00
Ethan Buchman
7dfc74a6b6
Merge pull request #1667 from tendermint/bucky/abci-11
...
Update ABCI for new PubKey type and changes to BeginBlock and InitChain
2018-06-06 13:16:09 -07:00
Ethan Buchman
ebee2fe114
Merge pull request #261 from tendermint/release/v0.11.0
...
Release/v0.11.0
2018-06-06 13:13:20 -07:00
Ethan Buchman
084f2e5b8c
update readme
2018-06-06 13:17:11 -07:00
Ethan Buchman
2edc68c59b
use all fields in abci types
2018-06-06 13:07:17 -07:00
Ethan Buchman
3f6da94d55
update Makefile
2018-06-06 12:52:11 -07:00
Ethan Buchman
72330e6609
val_set_hash -> validators_hash
2018-06-06 12:29:05 -07:00
Dev Ojha
fe4123684d
Change reset messages ( #1699 )
2018-06-06 22:07:10 +04:00
Anton Kaliaev
f0c44d1bd0
[autofile] include call to group#Close in tests
2018-06-06 11:52:59 +04:00
Ethan Buchman
2897685c57
abci header takes ValidatorsHash
2018-06-06 00:28:12 -07:00
Ethan Buchman
8fa7c493bc
add val_set_hash to header
2018-06-06 00:01:38 -07:00
Ethan Buchman
bc07d06647
update changelog, version, spec
2018-06-05 23:37:15 -07:00
Ethan Buchman
71556c62eb
fixes from rebase
2018-06-05 22:14:37 -07:00
Ethan Buchman
0e02e45ac7
Merge pull request #254 from tendermint/bucky/genesi
...
include genesis file structure
2018-06-05 22:07:15 -07:00
Ethan Buchman
54e61468d4
fixes from review
2018-06-05 22:04:38 -07:00
Ethan Buchman
5c7ccbd4a7
use const for abci type strings
2018-06-05 22:04:38 -07:00
Ethan Buchman
e2f5a6fbe4
update abci
2018-06-05 22:04:38 -07:00
Ethan Buchman
aa8be33da1
fix fmt
2018-06-05 22:04:27 -07:00
Ethan Buchman
909f66e841
remove extra eventBus
2018-06-05 22:04:27 -07:00
Ethan Buchman
3d2c4fd309
update Evidence type - requires pubkey and valset to verify and convert to abci.Evidence
2018-06-05 22:04:26 -07:00
Ethan Buchman
e5bca1df6f
update godep for abci
2018-06-05 22:00:43 -07:00
Ethan Buchman
866bcceb35
fix consensus tests
2018-06-05 22:00:25 -07:00
Ethan Buchman
e1e6878a4d
fix state tests
2018-06-05 22:00:25 -07:00
Ethan Buchman
e4147b6f1a
state test runs
2018-06-05 22:00:25 -07:00
Ethan Buchman
7606b7595f
compiles
2018-06-05 22:00:25 -07:00
Ethan Buchman
5480fd4a67
Merge branch 'develop' into bucky/genesi
2018-06-05 22:00:11 -07:00
Ethan Buchman
485b4a0c6f
revert gogo
2018-06-05 21:59:52 -07:00
Ethan Buchman
575d94dbb9
state compiles
2018-06-05 21:59:52 -07:00
Ethan Buchman
ebd2fe7a68
more types
2018-06-05 21:59:52 -07:00
Ethan Buchman
f28eae7816
update types
2018-06-05 21:59:52 -07:00
Ethan Buchman
e13c1ab735
update for new abci
2018-06-05 21:59:52 -07:00
Ethan Buchman
8bbe43aa33
update changelog
2018-06-05 21:53:09 -07:00
Ethan Buchman
a7e049a228
Merge branch 'master' into develop
2018-06-05 21:39:23 -07:00
Ethan Buchman
0e0461d9bc
dev version bump
2018-06-05 18:54:30 -07:00
Ethan Buchman
057e076ca9
Merge pull request #1693 from tendermint/release/v0.19.9
...
Release/v0.19.9
2018-06-05 18:00:02 -07:00
Ethan Buchman
775fef31c2
remove go-wire from test/app/grpc_client
2018-06-05 17:43:39 -07:00
Ethan Buchman
9cb079dcc6
dep, version, changelog
2018-06-05 17:38:54 -07:00
Ethan Buchman
67180344b7
Merge pull request #1663 from tendermint/zach/quick-install
...
quick install script
2018-06-05 17:17:47 -07:00
Ethan Buchman
825fdf2c24
Merge pull request #1679 from tendermint/flush-wal-on-stop
...
Flush cs.wal on stop
2018-06-05 17:14:19 -07:00
Ethan Buchman
692f1d86a6
Merge pull request #218 from tendermint/release/v0.8.4
...
Release/v0.8.4
2018-06-05 17:11:19 -07:00
Ethan Buchman
22541b881d
changelog and version
2018-06-05 17:12:33 -07:00
Anton Kaliaev
e0985bf566
flush on stop & function to close group
...
as opposite to OpenGroup
2018-06-05 17:11:06 -07:00
Ethan Buchman
61002ad264
Merge pull request #1628 from tendermint/bucky/selective-evidence-broadcast
...
evidence: dont send evidence to unsynced peers
2018-06-05 17:07:29 -07:00
Ethan Buchman
41e847ec97
linter
2018-06-05 17:02:05 -07:00
Ethan Buchman
55bae62d71
fix test
2018-06-05 16:54:58 -07:00
Ethan Buchman
d2259696af
Merge pull request #1689 from tendermint/1688-tx-search-panic
...
validate per_page before page
2018-06-05 07:52:49 -07:00
Ethan Buchman
32719123d9
Merge pull request #1687 from tendermint/sdk-1045-memory-leak
...
do not drain the channel because there is no channel, duh
2018-06-05 07:51:21 -07:00
Zach
80e7807cae
move spec to markdown ( #260 )
2018-06-05 10:27:55 -04:00
Anton Kaliaev
2ce8179c8b
validate per_page before page
...
plus an additional check just in case
Closes #1688
2018-06-05 16:20:48 +04:00
Anton Kaliaev
b8c076ca79
do not drain the channel because there is no channel, duh
...
Fixes https://github.com/cosmos/cosmos-sdk/issues/1045
2018-06-05 14:57:20 +04:00
Ethan Buchman
1b2e34738a
checkSendEvidenceMessage
2018-06-05 00:01:01 -07:00
Ethan Buchman
566024b64f
use Hash as map key
2018-06-04 21:50:29 -07:00
Ethan Buchman
932381effa
evidence: give each peer a go-routine
2018-06-04 21:20:23 -07:00
Ethan Buchman
2007c66091
fix test
2018-06-04 21:20:23 -07:00
Ethan Buchman
97c5533c35
update some comments
2018-06-04 21:20:23 -07:00
Ethan Buchman
3d33226e80
move types/services.go to state pkg. pass State to evpool.Update
2018-06-04 21:20:23 -07:00
Ethan Buchman
edb851280a
state: b -> block
2018-06-04 21:20:23 -07:00
Ethan Buchman
dd62f06994
state: s -> state
2018-06-04 21:20:23 -07:00
Ethan Buchman
19d95b5410
evidence: check peerstate exists; dont send old evidence
2018-06-04 21:20:23 -07:00
Ethan Buchman
53937a8129
changelog
2018-06-04 21:20:23 -07:00
Ethan Buchman
f1c53c7358
evidence: dont send evidence to unsynced peers
...
* only send evidence to peers that are synced enough to validate it all
* closes #1624
2018-06-04 21:20:23 -07:00
Ethan Buchman
3445f1206e
Merge pull request #1683 from tendermint/bucky/test
...
fix byz-test
2018-06-04 21:09:10 -07:00
Ethan Buchman
097f778c1e
fix byz-test
2018-06-04 20:48:35 -07:00
Ethan Buchman
c85c21d1bc
Merge pull request #1670 from tendermint/xla/extract-privval
...
Extract priv_validator into first class package
2018-06-04 18:57:09 -07:00
Ethan Buchman
fd4db8dfdc
Merge pull request #1676 from tendermint/xla/collapse-peerconfig
...
Collapse PeerConfig into P2PConfig
2018-06-04 18:50:41 -07:00
Alexander Simmerl
1318bd18cd
Merge pull request #1680 from Slamper/develop
...
Return 404 for unknown RPC endpoints
2018-06-05 02:14:16 +02:00
Alexander Simmerl
ea896865a7
Collapse PeerConfig into P2PConfig
...
As both configs are concerned with the p2p packaage and PeerConfig is
only used inside of the package there is no good reason to keep the
couple of fields separate, therefore it is collapsed into the more
general P2PConifg. This is a stepping stone towards a setup where the
components inside of p2p do not have any knowledge about the config.
follow-up to #1325
2018-06-05 02:07:56 +02:00
Ethan Buchman
aeb91dfc22
dev version bump
2018-06-04 15:57:57 -07:00
Ethan Buchman
5727916c5b
Merge pull request #1681 from tendermint/release/v0.19.8
...
Release/v0.19.8
2018-06-04 15:48:22 -07:00
Ethan Buchman
876c8f14e7
changelog and version
2018-06-04 14:16:58 -07:00
Hendrik Hofstadt
67416feb3a
return 404 for unknown RPC endpoints
2018-06-04 22:14:20 +02:00
Zach Ramsay
8706ae765c
docs: a link to quick install script
2018-06-04 10:42:28 -04:00
Zach Ramsay
954a8941ff
scripts: quickest/easiest fresh install
2018-06-04 10:42:28 -04:00
Anton Kaliaev
1f22f34edf
flush wal group on stop
...
Refs #1659
Refs https://github.com/tendermint/tmlibs/pull/217
2018-06-04 16:47:44 +04:00
Anton Kaliaev
0562009275
bring back assert
2018-06-04 16:33:57 +04:00
idoor88
fedd07c522
removed assertion to avoid confusion ( #1626 )
2018-06-04 14:30:46 +04:00
Anton Kaliaev
3fa734ef5a
recheck only if there are txs left in the mempool ( #1645 )
2018-06-04 14:28:47 +04:00
Ethan Buchman
cd6bfdc42f
Merge pull request #1673 from tendermint/bucky/mempool
...
fix possible mempool deadlock
2018-06-03 16:14:58 -04:00
Ethan Buchman
98b0c51b5f
fix possible mempool deadlock
2018-06-03 16:11:52 -04:00
Ethan Buchman
c777be256a
changelog, version
2018-06-03 16:11:21 -04:00
Ethan Buchman
d66f8bf829
Merge branch 'master' into develop
2018-06-03 16:10:04 -04:00
Alexander Simmerl
bf370d36c2
Extract priv_validator into first class package
...
This is a maintenance change to move the private validator package out
of the types and to a top-level location. There is no good reason to
keep it under the types and it will more clearly coommunicate where
additions related to the privval belong. It leaves the interface and the
mock in types for now as it would introduce circular dependency between
privval and types, this should be resolved eventually.
* mv priv_validator to privval pkg
* use consistent `privval` as import
Follow-up to #1255
2018-06-03 13:51:58 +02:00
Ethan Buchman
1c643701f5
Merge pull request #1662 from Liamsi/develop
...
WIP: simplify & update documentation, fix typo
2018-06-02 18:39:36 -04:00
Alexander Simmerl
0b0290bdb2
Merge pull request #1675 from tendermint/xla/disable-slate-ci
...
Disable slate step in CI workflow
2018-06-02 15:56:43 +02:00
Alexander Simmerl
a4779fdf51
Disable slate step in CI workflow
...
It's currently breaking for unknown reasons, until fixed we going to
disable it, to not block on it for unrelated PRs.
2018-06-02 15:49:25 +02:00
Liamsi
7030d5c2a7
remove notes column
...
according to: https://github.com/tendermint/go-crypto/pull/110#issuecomment-394048086
2018-06-02 13:04:40 +01:00
Ethan Buchman
9af8b7a7c8
fix tests file
2018-06-01 22:03:47 -04:00
Ethan Buchman
f34d1009c4
Merge pull request #1671 from tendermint/1518-xla/remove-auth_enc-option
...
Remove auth_enc config option
2018-06-01 21:07:14 -04:00
Alexander Simmerl
0e3dc32b3d
Merge pull request #1672 from tendermint/xla/store-ci-test-logs
...
Store CI test logs
2018-06-02 02:44:01 +02:00
Alexander Simmerl
d292fa4541
Store CI test logs
...
For post-mortem introspection it is helpful to have the full logs of
test runs available for download.
2018-06-02 02:33:31 +02:00
Alexander Simmerl
3255c076e5
Remove auth_enc config option
...
As we didn't hear any voices requesting this feature, we removed the
option to disable it and always have peer connection auth encrypted.
closes #1518
follow-up #1325
2018-06-01 21:07:20 +02:00
Zaki Manian
44f1bdb0d5
Bech32 ( #216 )
...
* Add support for regular bech32 to tmlibs
* Add bech32 to gopkg.toml
2018-06-01 13:56:00 +04:00
ValarDragon
72543092a0
Switch usage of port 46658 to 26658
2018-05-31 21:50:22 -07:00
Ethan Buchman
c681347ee3
move genesis fields into RequestInitChain. some nullable=false
2018-05-31 23:58:02 -04:00
Ethan Buchman
512b3121a7
include genesis file structure
2018-05-31 21:59:20 -04:00
Ethan Buchman
355fde16fe
Merge pull request #255 from tendermint/bucky/gogo
...
Revert "Merge pull request #247 from tendermint/bucky/no-gogo"
2018-05-31 21:43:11 -04:00
Ethan Buchman
90c3a469ff
Revert "Merge pull request #247 from tendermint/bucky/no-gogo"
...
This reverts commit ef79007433
, reversing
changes made to bcfdd6dbaf
.
2018-05-31 21:45:14 -04:00
Christopher Goes
2bbad9d496
Merge pull request #85 from tendermint/cwgoes/ledger-integration
...
Ledger integration
2018-05-31 21:45:00 +02:00
Liamsi
978277a4c1
make slightly more readable
2018-05-31 20:40:01 +01:00
Christopher Goes
80e9752250
Move TODOs to #114
2018-05-31 21:30:20 +02:00
Christopher Goes
63aac65590
Remove Ledger ed25519 support, for now
2018-05-31 21:21:50 +02:00
Liamsi
58eb76f34d
simplify & update documentation, fiy typo
2018-05-31 20:13:41 +01:00
Ethan Buchman
e1ce3ffe0f
changelog and version
2018-05-30 20:48:52 -04:00
Ethan Buchman
eadc7b137b
Merge branch 'master' into develop
2018-05-30 18:58:39 -04:00
Ethan Buchman
9706935233
fix link in readme
2018-05-30 18:57:53 -04:00
Ethan Buchman
21b821d661
SignatureKey -> Signature
2018-05-30 18:41:08 -04:00
Ethan Buchman
434759e17b
Merge pull request #94 from Liamsi/const_time
...
Use constant-time comparator to compare signatures
2018-05-30 18:27:05 -04:00
Ethan Buchman
20fdec6c0e
fix comment
2018-05-30 18:34:11 -04:00
Ethan Buchman
aa3212180f
Merge pull request #80 from alessio/keymanager
...
Add import/export of public keys #79
2018-05-30 18:24:53 -04:00
Ethan Buchman
f9d094dc1a
Merge pull request #97 from Liamsi/prng_seed
...
safer PRNG seeding
2018-05-30 18:17:58 -04:00
Ethan Buchman
251041ce09
Merge pull request #105 from tendermint/bucky/merkle
...
Bring in merkle and tmhash from tmlibs
2018-05-30 18:08:25 -04:00
Ethan Buchman
52bd867fd9
merkle: use amino for byteslice encoding
2018-05-30 17:50:17 -04:00
Liamsi
862d3c342a
commit doc.go
2018-05-30 17:44:20 -04:00
Ethan Buchman
9f04935caa
merkle: remove unused funcs. unexport simplemap. improv docs
2018-05-30 17:44:02 -04:00
Christopher Goes
bb81e4aa5f
Pin to an upstream revision
2018-05-30 22:16:30 +02:00
Christopher Goes
c689f38cb5
Implement PubKeyLedgerEd25519
2018-05-30 22:07:20 +02:00
Ethan Buchman
ef79007433
Merge pull request #247 from tendermint/bucky/no-gogo
...
Bucky/no gogo
2018-05-30 08:41:03 -04:00
Ethan Buchman
6e3191fd6c
Merge branch 'develop' into bucky/no-gogo
2018-05-30 08:34:16 -04:00
Ethan Buchman
21951dd5b3
update tmlibs dep
2018-05-30 08:42:07 -04:00
Ethan Buchman
e0acf357bb
Merge pull request #214 from tendermint/bucky/no-gogo
...
no gogo proto
2018-05-30 08:30:54 -04:00
Christopher Goes
ee411daa17
Add ed25519, tests will fail until ed25519 verification fix
2018-05-30 03:42:57 +02:00
Christopher Goes
3186dc4cef
Clarify function names
2018-05-30 03:29:42 +02:00
Christopher Goes
e534559bdc
Update upstream Ledger code
2018-05-30 01:39:50 +02:00
Zach
bcfdd6dbaf
Merge pull request #249 from tendermint/zach/fix-test
...
fix cli test
2018-05-28 18:34:58 -04:00
Zach Ramsay
b73157141b
fix make test_cli, #244
2018-05-25 16:22:27 -04:00
vrde
707d27c11e
Fix dead link in README.md ( #106 )
...
* Fix dead link in README.md
2018-05-24 16:57:37 +02:00
Ethan Buchman
6334b3a501
fix makefile
2018-05-24 00:17:46 -04:00
Ethan Buchman
01f87fd8d3
remove gogoproto
2018-05-24 00:13:43 -04:00
Ethan Buchman
d24a30858e
no gogo proto
2018-05-24 00:10:35 -04:00
Ethan Buchman
cfdec76020
update everything for Params and Result types
2018-05-23 23:27:46 -04:00
Ethan Buchman
5830c338ae
Application uses new ParamsXxx and ResultXxx Types
2018-05-23 22:49:46 -04:00
Ethan Buchman
07a9ddb2d5
result.go is json.go and codetype.go
2018-05-23 22:49:13 -04:00
Ethan Buchman
fac6bcd19e
consolidate util.go and pubkey.go to validator.go
2018-05-23 22:46:15 -04:00
Ethan Buchman
3d4f3bbbdd
varint -> uvarint for length prefix
2018-05-23 22:46:13 -04:00
Ethan Buchman
927c16281c
Merge pull request #245 from tendermint/bucky/validator-types
...
Request/ResponseValidator, update Header
2018-05-23 22:18:45 -04:00
Ethan Buchman
3dbdc87edb
protoc and update everything
2018-05-23 22:24:39 -04:00
Ethan Buchman
8bb04d7ef7
Validator and SignedValidator
2018-05-23 22:20:24 -04:00
Ethan Buchman
f0b1f6e8ac
Merge pull request #98 from zmanian/xChaChaPoly1035
...
Implementation of xchacha20poly1035 aead
2018-05-23 18:42:17 -04:00
Zaki Manian
05a5294e52
Remove panic and check the round trip
2018-05-24 00:12:54 +02:00
Zaki Manian
384f1e399a
Fixed the directory name and added a test vector
2018-05-23 23:54:26 +02:00
Ethan Buchman
c2636c3c6b
tmhash: add Sum function
2018-05-22 13:04:42 -04:00
Ethan Buchman
4663ffdf08
add tmhash
2018-05-22 12:49:44 -04:00
Ethan Buchman
134fdf7169
bring in merkle from tmlibs
2018-05-22 12:43:44 -04:00
Ethan Buchman
c3b72ea708
Merge pull request #210 from tendermint/bucky/tmhash
...
tmhash
2018-05-22 12:09:52 -04:00
Zaki Manian
f9b0820752
Merge branch 'develop' into xChaChaPoly1035
2018-05-22 05:47:05 -07:00
Zaki Manian
8423f6ef5a
Add the libsodium test vector
2018-05-21 20:45:36 -07:00
Ethan Buchman
d468cee107
Merge branch 'master' into develop
2018-05-21 21:40:07 -04:00
Ethan Buchman
d970af8724
Merge pull request #212 from tendermint/release/v0.8.3
...
Release/v0.8.3
2018-05-21 21:30:52 -04:00
Ethan Buchman
06cffa6acb
changelog and version
2018-05-21 21:38:02 -04:00
Ethan Buchman
d72de8ba68
fix test
2018-05-21 20:26:54 -04:00
Ethan Buchman
d82699bf43
tmhash
2018-05-21 20:15:32 -04:00
Ethan Buchman
4fb515fa08
Merge pull request #208 from tendermint/bucky/remotedb
...
Move remotedb under db
2018-05-21 17:36:18 -04:00
Ethan Buchman
f27c358a8a
revert protobuf recompile
2018-05-21 17:37:53 -04:00
Ethan Buchman
3399ca9369
Merge pull request #101 from Liamsi/go-bindata
...
Get rid of go-bindata in Makefile
2018-05-20 21:52:21 -04:00
Ismail Khoffi
a8910a30e6
Merge branch 'develop' into go-bindata
2018-05-20 23:34:19 +02:00
Ethan Buchman
efbc2efb42
add proposer to header
2018-05-20 16:25:48 -04:00
Ethan Buchman
31576150ad
add total_voting_power to evidence
2018-05-20 16:24:21 -04:00
Ethan Buchman
459ee59e46
Request/ResponseValidator, update Header
2018-05-20 16:15:58 -04:00
Ethan Buchman
f9dce53728
Merge pull request #243 from tendermint/cwgoes/timestamp-in-evidence
...
Add evidence type and block timestamp to abci.Evidence
2018-05-20 15:00:51 -04:00
Ethan Buchman
a1b8579591
Merge branch 'develop' into cwgoes/timestamp-in-evidence
2018-05-20 14:58:48 -04:00
Ethan Buchman
bb68d7e7be
Merge pull request #177 from tendermint/jenkins
...
tests: slow is smooth, smooth is fast
2018-05-18 18:57:06 -04:00
Christopher Goes
e196dacf80
Add 'type' field to abci.Evidence
2018-05-18 20:29:32 +02:00
Zach Ramsay
e19cedc4b4
tests: more smoothness
2018-05-18 12:03:57 -04:00
Zach Ramsay
2adef2e8f8
less bash in tests
2018-05-18 11:51:56 -04:00
Zach Ramsay
de02ab4b3c
lil fix
2018-05-18 11:51:18 -04:00
Zach Ramsay
308ce8b235
tests: less bash
2018-05-18 11:50:57 -04:00
Christopher Goes
435eb273a4
Update changelog
2018-05-17 19:47:52 +02:00
Christopher Goes
4c73ceee08
Add time field to abci.Evidence
2018-05-17 19:46:00 +02:00
Ethan Buchman
906331a8d1
Merge pull request #100 from Liamsi/nano_wallet
...
Remove outdated non-building code in _nano
2018-05-16 11:20:57 -04:00
Zach
b161f0e8c9
Merge pull request #241 from tendermint/max/fix/l_addr
...
A redundant "listen address" flag removed
2018-05-16 11:14:35 -04:00
Max
64c796f1d2
A redundant "listen address" flag removed
2018-05-16 11:11:26 -04:00
Ethan Buchman
4780afcc58
Merge pull request #240 from tendermint/zach/fix-circle
...
circle: fix config.yml
2018-05-16 10:45:12 -04:00
Zach Ramsay
a13a2529bf
circle: fix config.yml
2018-05-16 10:27:44 -04:00
Zach
31c0c9555e
Merge pull request #209 from tendermint/tm-847
...
events and pubsub were moved to tendermint core
2018-05-16 08:49:23 -04:00
Anton Kaliaev
4a77eda368
events and pubsub were moved to tendermint core
...
Refs https://github.com/tendermint/tendermint/issues/847
2018-05-16 12:57:08 +04:00
Liamsi
3fe985e289
fix makefile
2018-05-15 12:23:33 +01:00
Liamsi
9136140719
get rid of go-bindata dependency in Makefile; hardcode its output instead
2018-05-15 12:07:05 +01:00
Liamsi
aa2b6b546f
Remove outdated non-building code in _nano
2018-05-15 11:39:48 +01:00
Ethan Buchman
ec8079089f
Merge pull request #237 from tendermint/bucky/begin-end-block-tags
...
add tags to begin/end block
2018-05-14 18:55:41 -04:00
Ethan Buchman
9b20287463
add tags to begin/end block
2018-05-14 19:01:49 -04:00
Ethan Buchman
4b080454bb
Merge pull request #236 from tendermint/bucky/absent-vals
...
absent_validators: repeated int -> repeated bytes
2018-05-14 18:48:04 -04:00
Ethan Buchman
f7d775337b
absent_validators: repeated int -> repeated bytes
2018-05-14 18:54:48 -04:00
Ethan Buchman
6f316db5de
Merge pull request #213 from tendermint/validators-type-assert-to-sortInterface
...
types: compile time assert to, and document sort.Interface
2018-05-14 18:37:57 -04:00
Ethan Buchman
453e8efe8a
Merge pull request #234 from tendermint/adrian/genesis_bytes
...
Change AppStateBytes to GenesisBytes
2018-05-14 18:34:27 -04:00
Ethan Buchman
063a7d83c1
Merge branch 'develop' into adrian/genesis_bytes
2018-05-14 18:32:47 -04:00
Ethan Buchman
49849de414
Merge pull request #233 from tendermint/adrian/requestinitchain
...
Allow ResponseInitChain to return the initial validator set
2018-05-14 18:23:40 -04:00
Ethan Buchman
43e72bbcc0
version bump
2018-05-14 18:30:41 -04:00
Ethan Buchman
cd24e92dcb
Merge pull request #235 from tendermint/develop
...
Develop
2018-05-14 18:22:02 -04:00
Ethan Buchman
da73fb87a4
Merge branch 'develop' into adrian/requestinitchain
2018-05-14 18:19:36 -04:00
Ethan Buchman
468be0f8d6
mv remotedb, proto, grpcdb all under db/remotedb
2018-05-14 15:49:00 -04:00
Ethan Buchman
45caff1a20
changelog and version
2018-05-14 15:21:29 -04:00
Ethan Buchman
e132e7842b
Merge pull request #223 from tendermint/adrian/circle2
...
Upgrade to Circle 2.0
2018-05-14 15:09:13 -04:00
Zach
52d6dfe074
Update specification.rst
2018-05-14 12:27:29 -04:00
Christopher Goes
e6d0ade0e1
Update to latest upstream, debugging information
2018-05-14 16:24:08 +02:00
Christopher Goes
337ad8e594
Update to new Ledger API in progress
2018-05-14 15:26:14 +02:00
Christopher Goes
49e03fb481
Update dependency versions
2018-05-14 15:26:14 +02:00
Christopher Goes
86b09b0cd7
Bugfix
2018-05-14 15:26:14 +02:00
Christopher Goes
391936b734
Prevent unnecessary signatures, improve error messages
2018-05-14 15:26:14 +02:00
Christopher Goes
e25a64fdf1
Fix testcases, all looks OK
2018-05-14 15:26:14 +02:00
Christopher Goes
065c3943b1
Fix no-Ledger testcase
2018-05-14 15:26:14 +02:00
Christopher Goes
1c9ff46e98
Ledger integration, WIP
2018-05-14 15:26:14 +02:00
Adrian Brink
9439306f0f
Change last instance of AppStateBytes to GenesisBytes
2018-05-13 20:05:45 -04:00
Adrian Brink
f80b3aee48
Change AppStateBytes to GenesisBytes
...
The consensus should pass the entire genesis file to the application.
That way the application has access to the chain_id, the timestap, ...
2018-05-13 19:50:15 -04:00
Adrian Brink
ef67705524
Allow ResponseInitChain to return the initial validator set
...
ResponseInitChain should be able to return an initial validator set that
is determined by some logic within the genesis.json file.
2018-05-13 19:04:03 -04:00
Zaki Manian
1c8dffaa28
Initial implementation of xchacha20poly1035 aead
2018-05-13 11:06:20 -04:00
Jae Kwon
a8fcf45624
Change defaults to 100M and 10G respectively
2018-05-10 20:58:28 -07:00
Jae Kwon
2e41756b55
Add logjack command
2018-05-10 20:43:50 -07:00
Christopher Goes
67faf556ed
Merge pull request #162 from tendermint/db-gRPC
...
DB as a service: remove database deployment with API
2018-05-10 18:46:05 +02:00
Jae Kwon
43570388a9
Update README.md
2018-05-09 13:48:49 -07:00
Jae Kwon
35cf21c6eb
Update README.md
2018-05-09 13:48:21 -07:00
Liamsi
3477dd7a90
safer PRNG seeding: hash concatenation of fresh seedBytes with current seedBytes
2018-05-09 15:04:51 +01:00
Liamsi
94ce56d243
Use constant-time comparator (sublte.ConstantTimeCompare) to compare
...
signatures
prevents potential signature forgery
resolves #91
2018-05-09 11:48:46 +01:00
Christopher Goes
20be8c75e5
Tweak testcases
2018-05-08 17:13:13 +02:00
Christopher Goes
0b6d101c77
Implement batch operations
2018-05-08 16:38:39 +02:00
Christopher Goes
45514a6013
Address PR comments
2018-05-08 15:47:06 +02:00
Christopher Goes
39e1567d0a
Add iterator tests
2018-05-08 00:53:33 +02:00
Christopher Goes
55f4ccd4fc
CI fix
2018-05-07 23:28:41 +02:00
Christopher Goes
2cca5a7a4c
Implement TLS/SSL
2018-05-07 23:16:06 +02:00
Christopher Goes
bf16d6453c
Address PR comments
2018-05-07 22:12:26 +02:00
Emmanuel T Odeke
5d12e1eb46
remotedb: a client package implementing the db.DB interface
...
Simplified the abstractions to remotedb, a package that
allows clients to use whatever database they can in client
code without having to switch out their code e.g
```go
client, err := remotedb.NewInsecure(":9888")
...
// Just like they'd initialize locally
in := &remotedb.Init{
Name: "test-remote-db",
Type: "leveldb",
Dir: "/tmp/dbs",
}
if err := client.InitRemote(in); err != nil {
log.Fatalf("Failed to initialize the database")
}
v1 := client.Get(k1)
client.Set(k9, dog)
for itr := client.Iterator(a1, z1); itr.Valid(); itr.Next() {
k, v := itr.Key(), itr.Value()
dom := itr.Domain()
...
}
```
2018-05-07 22:00:38 +02:00
Emmanuel T Odeke
1260b75f63
grpcdb: Better readability for docs and constructor names
...
* Added some docs for NewClient, BindServer, *server.Init
* Security level clarified, whether "secure" for https
or "insecure" for non-https gRPC connections.
2018-05-07 22:00:38 +02:00
Emmanuel T Odeke
11bee6194a
DB as a service
...
Fixes https://github.com/tendermint/tendermint/issues/1162
Databases as a service!
Can now access Databases as a remote service
via gRPC for performance and easy deployment.
The caveat is that each service is stateful in regards to
the DB i.e. each unique service uses only one unique DB
but nonetheless multiple clients can access it.
A full standalone example
```go
package main
import (
"bytes"
"context"
"log"
grpcdb "github.com/tendermint/tmlibs/grpcdb"
protodb "github.com/tendermint/tmlibs/proto"
)
func main() {
addr := ":8998"
go func() {
if err := grpcdb.BindRemoteDBServer(addr); err != nil {
log.Fatalf("BindRemoteDBServer: %v", err)
}
}()
client, err := grpcdb.NewClient(addr, false)
if err != nil {
log.Fatalf("Failed to create grpcDB client: %v", err)
}
ctx := context.Background()
// 1. Initialize the DB
in := &protodb.Init{
Type: "leveldb",
Name: "grpc-uno-test",
Dir: ".",
}
if _, err := client.Init(ctx, in); err != nil {
log.Fatalf("Init error: %v", err)
}
// 2. Now it can be used!
query1 := &protodb.Entity{Key: []byte("Project"), Value:
[]byte("Tmlibs-on-gRPC")}
if _, err := client.SetSync(ctx, query1); err != nil {
log.Fatalf("SetSync err: %v", err)
}
query2 := &protodb.Entity{Key: []byte("Project")}
read, err := client.Get(ctx, query2)
if err != nil {
log.Fatalf("Get err: %v", err)
}
if g, w := read.Value, []byte("Tmlibs-on-gRPC"); !bytes.Equal(g, w) {
log.Fatalf("got= (%q ==> % X)\nwant=(%q ==> % X)", g, g, w, w)
}
}
```
2018-05-07 22:00:33 +02:00
Ethan Buchman
aefb6c58b6
Merge pull request #87 from tendermint/bucky/fix-ed-gen
...
fix ed25519 Generate
2018-05-07 10:52:46 -04:00
Ethan Buchman
ad837a8183
fix ed25519 Generate
2018-05-05 19:17:21 -04:00
Ethan Buchman
da088e3ecd
Merge pull request #229 from tendermint/update-spec
...
specify DeliverTx/CheckTx Tags format
2018-04-25 23:39:29 -04:00
Anton Kaliaev
a6fe2a9854
specify DeliverTx/CheckTx Tags format
2018-04-25 22:52:11 +02:00
Jae Kwon
cc5f287c47
Add developer branch 0.8.3 to CHANGELOG
2018-04-23 02:36:49 -07:00
Jae Kwon
9b2a8f07a3
[common] Add ASCIITrim
2018-04-23 01:32:18 -07:00
Anton Kaliaev
d94e312673
add MarshalJSON and UnmarshalJSON to BitArray ( #200 )
...
See CHANGELOG
2018-04-23 00:16:05 -07:00
Jae Kwon
8fa4211bbd
Fixes TestParallelAbort nondeterministic failure #201 ( #202 )
2018-04-23 00:07:03 -07:00
Jae Kwon
e328006bfe
Jae/fixprefixdb ( #199 )
...
* Fix PrefixDB Iterator
* PrefixDB Iterator/ReverseIterator fixes
* Bump version 0.8.2
* Update CHANGELOG.md about DebugDB
* Keep invalid source to be closed
* Use prefixBatch instead of memBatch
2018-04-21 04:25:45 -07:00
Zach
d02e4f344f
Merge pull request #227 from tendermint/tm-1422-commit-hash
...
[docs/Commit] all application instances must return the same hash
2018-04-17 13:34:50 -04:00
Anton Kaliaev
44a8a23932
[docs/Commit] all application instances must return the same hash
...
Refs https://github.com/tendermint/tendermint/issues/1422
2018-04-16 13:40:19 +02:00
Ethan Buchman
78a8905690
update deps and version bump
2018-04-09 16:27:58 +03:00
Ethan Buchman
915416979b
update for latest amino. bump version
2018-04-09 16:21:58 +03:00
Ethan Buchman
357648b8d6
Merge branch 'master' into develop
2018-04-09 16:03:08 +03:00
Ethan Buchman
50ad19541d
Merge pull request #198 from tendermint/release/v0.8.1
...
Release/v0.8.1
2018-04-09 15:47:27 +03:00
Ethan Buchman
0f92a01737
changelog dates
2018-04-09 15:51:54 +03:00
Thomas Corbière
75345c2046
Use an interface for tags. ( #195 )
...
* Use an interface for tags.
* rename TagSet to TagMap.
* add documentation to TagMap.
2018-04-09 14:36:40 +02:00
Sunny Aggarwal
a807b5db57
added PrefixEndBytes ( #186 )
...
* added PrefixToBytes
* added test
* added comment
2018-04-09 12:51:24 +02:00
Anton Kaliaev
40a73fa75c
Merge pull request #196 from tendermint/joon/simple-proofs-from-map
...
add SimpleProofsFromMap
2018-04-09 12:40:22 +02:00
mossid
50c521e706
expose KVPair
2018-04-05 21:56:29 +02:00
mossid
2861f795f5
add SimpleProofsFromMap
2018-04-05 21:30:15 +02:00
Jae Kwon
2e24b64fc1
Add IsEmpty; Publish 0.8.1
2018-04-05 03:14:53 -07:00
Alessio Treglia
105847b7dd
Fix comments
2018-04-05 08:13:13 +01:00
Alessio Treglia
9c02c8ce93
Add import/export of public keys #79
2018-04-04 23:29:00 +01:00
Jae Kwon
fb7bde9c24
Add cause in Error.Error()
2018-04-04 13:43:19 -07:00
Jae Kwon
390de81bbc
Release version 0.8.0
2018-04-04 12:30:13 -07:00
Ethan Buchman
5c3d3f0875
Merge pull request #194 from Tilkal/random-missing-methods
...
Random missing methods
2018-04-03 23:52:16 +03:00
Thomas Corbière
74486f7f93
Add Int63n() and RandInt63n().
2018-04-03 16:24:38 +02:00
Thomas Corbière
d66d43d2ea
Add Int31n() and RandInt31n().
2018-04-03 16:23:36 +02:00
Jae Kwon
f457435199
HexBytes formatting; Make computeHashFromAunts more defensive
2018-04-03 07:02:19 -07:00
Ethan Buchman
3cd4dcf13b
changelog
2018-04-03 16:23:41 +03:00
Ethan Buchman
b5e6f8a446
Merge pull request #191 from Tilkal/random-float64
...
Add Float64() and RandFloat64().
2018-04-03 16:15:06 +03:00
Ethan Buchman
f664b020cd
Merge pull request #189 from mohanson/patch-2
...
bug fix: WriteFileAtomic
2018-04-03 16:13:56 +03:00
Thomas Corbière
3375dac049
add Float64() and RandFloat64().
2018-04-03 14:09:50 +02:00
Mohanson
b221ca0efa
refine comments
2018-04-03 19:04:09 +08:00
Thomas Corbière
ee67e34519
Fix lint errors ( #190 )
...
* use increment and decrement operators.
* remove unnecessary else branches.
* fix receiver names.
* remove omittable code.
* fix dot imports.
2018-04-03 12:23:28 +02:00
Mohanson
29a8cb8d87
add comments.
2018-04-03 16:51:30 +08:00
Mohanson
2fbd9f15fa
bug fix: WriteFileAtomic
...
Must close file before rename it.
2018-04-03 15:26:47 +08:00
Ethan Buchman
a557bb4d0b
Merge pull request #185 from tendermint/bucky/merge-master
...
Bucky/merge master
2018-04-02 22:26:22 +03:00
Jae Kwon
382e99d06e
Add IsTypedNil
2018-04-02 01:47:42 -07:00
Ethan Buchman
41302c206a
Merge branch 'master' into develop
...
* Update changelog
2018-03-31 19:36:05 +03:00
Anton Kaliaev
898216d419
add SplitAndTrim func ( #183 )
...
Refs https://github.com/tendermint/tendermint/issues/1380
2018-03-29 12:04:01 +02:00
Anton Kaliaev
0f2811441f
[pubsub] fix unsubscribing ( #181 )
...
* [pubsub] fix unsubscribing
by giving it the same exact query, which was used to subscribe
Refs https://github.com/tendermint/tendermint/issues/1368
* use original query to unsubscribe
Refs #1368
* modify the unit test the issue is fixed
2018-03-28 16:04:46 +02:00
Christopher Goes
6e26392209
Return config parse errors ( #182 )
2018-03-28 15:35:52 +02:00
Adrian Brink
eea93b8904
Upgrade to Circle 2.0
2018-03-28 12:37:42 +02:00
Jae Kwon
7fb3f704b3
Update README with examples; Add signature test
2018-03-26 10:59:10 +02:00
Jae Kwon
5d5f580f49
Update changelog for v0.6.1
2018-03-26 10:44:04 +02:00
Jae Kwon
0d4436dea7
Use MarshalBinaryBare; Fix encode_test; Bump version
2018-03-26 10:41:04 +02:00
Jae Kwon
a04f2ae5c6
tmlibs 0.8.0-dev; canonical concrete names
2018-03-25 07:15:24 +02:00
Jae Kwon
e9cf47606c
Merge panics into errors in Parallel
2018-03-25 00:04:47 +01:00
Jae Kwon
c62aed95f2
Lock to 0.8.0-dev tmlibs
2018-03-24 23:51:08 +01:00
Jae Kwon
87c0473730
New Error ( #180 )
...
* New Error can capture Stacktrace
* Intelligent ErrorWrap
* Review fixes
2018-03-24 22:19:44 +01:00
Ethan Buchman
aeb6d14c1c
version bump
2018-03-23 09:13:59 -04:00
Ethan Buchman
46686763ba
Merge pull request #219 from tendermint/release/v0.10.2
...
Release/v0.10.2
2018-03-23 00:16:46 -04:00
Ethan Buchman
454db6c12b
version and changelog
2018-03-23 00:21:27 -04:00
Ethan Buchman
8fc21cdcd9
remove omitempty
2018-03-22 23:59:25 -04:00
Ethan Buchman
5310e85bbb
run make protoc
2018-03-22 23:46:23 -04:00
Ethan Buchman
f3f9f792a5
Merge pull request #218 from tendermint/release/v0.10.1
...
Release/v0.10.1
2018-03-22 23:18:30 -04:00
Ethan Buchman
968db546ee
changelog update
2018-03-22 23:13:55 -04:00
Ethan Buchman
4600f19d9f
add nullable=false and omitempty to fee
2018-03-22 22:53:09 -04:00
Ethan Buchman
e0c174b02b
remove nullable=false from fee
2018-03-22 22:50:26 -04:00
Ethan Buchman
f9d9d92ea3
fix dep for minor version bumps
2018-03-22 20:01:07 -04:00
Ethan Buchman
c11bcd7890
update dep for tmlibs
2018-03-22 19:44:43 -04:00
Ethan Buchman
24da7009c3
Merge pull request #178 from tendermint/release/v0.7.1
...
Release/v0.7.1
2018-03-22 19:38:39 -04:00
Ethan Buchman
db3d1cb7fa
changelog and version
2018-03-22 19:36:57 -04:00
Alexander Simmerl
d46b9afb79
Simplify WriteFileAtomic
...
We can make the implementation more robust by adjusting our assumptions
and leverage explicit file modes for syncing. Additionally we going to
assume that we want to clean up and can't really recover if thos
operations (file close and removal) fail.
* utilise file mode for majority of concerns
* improve test coverage by covering more assumptions
* signature parity with ioutil.WriteFile
* always clean up
Replaces #160
2018-03-22 19:36:24 -04:00
Emmanuel T Odeke
97bdad8262
common: NewBitArray never crashes on negatives ( #170 )
...
Fixes #169
Fixes https://github.com/tendermint/tendermint/issues/1322
The previous code was very trusting assuming that
rational actors will use this code. However, Byzantine
actors don't care and in the case of the linked issue
negative lengths can be sent to this code unfettered
having been received from a peer.
This code is essentially just a sign change from
`==`
to
`<=`
and we've gutted out that attack by being more defensive.
2018-03-22 19:36:24 -04:00
Ethan Buchman
3135fca73b
changelog, dep, version
2018-03-22 19:19:16 -04:00
Ethan Buchman
215831d035
update spec and explain more
2018-03-22 19:12:08 -04:00
Ethan Buchman
5306147a2d
types: revert CheckTx/DeliverTx changes. make them the same
2018-03-22 19:11:34 -04:00
Ethan Buchman
c0549ec943
Merge pull request #175 from tendermint/bucky/changelog
...
update version, changelog
2018-03-22 19:09:06 -04:00
Ethan Buchman
dc1042eb5f
finish changelog
2018-03-22 13:55:55 -04:00
Ethan Buchman
b6400af7ac
update version, changelog
2018-03-21 05:15:30 +01:00
Ethan Buchman
a86b1d8f75
Merge pull request #171 from tendermint/feature/xla-writefileatomic
...
Simplify WriteFileAtomic
2018-03-21 05:04:14 +01:00
Jae Kwon
4e5c655944
Parallel reaps automatically before returning
2018-03-20 23:08:51 +01:00
Jae Kwon
4caf943f49
Parallel returns a TaskResultSet
2018-03-20 21:43:58 +01:00
Jae Kwon
db48010e81
Add return parameter to Parallel
2018-03-20 19:58:05 +01:00
Jae Kwon
bf24f2dcc5
Implement better Parallel ( #174 )
...
* Implement better Parallel
2018-03-20 19:24:18 +01:00
Alexander Simmerl
bb65f097fd
Simplify WriteFileAtomic
...
We can make the implementation more robust by adjusting our assumptions
and leverage explicit file modes for syncing. Additionally we going to
assume that we want to clean up and can't really recover if thos
operations (file close and removal) fail.
* utilise file mode for majority of concerns
* improve test coverage by covering more assumptions
* signature parity with ioutil.WriteFile
* always clean up
Replaces #160
2018-03-19 09:38:28 +01:00
Jae Kwon
f010462639
Make concrete registered name be tendermint/*
2018-03-18 23:45:46 +01:00
Emmanuel T Odeke
4b0058dd64
common: remove {Left, Right}PadString ( #168 )
...
Fixes #134
Those functions are unused in the whole Tendermint Github
organization plus they were unnecessariy verbose and could
have been concisely replaced with
```go
func RightPadString(s string, totalLength uint) string {
return fmt.Sprintf("% *s", totalLength, s)
}
func LeftPadString(s string, totalLength uint) string {
return fmt.Sprintf("% -*s", totalLength, s)
}
```
delete them anyways
2018-03-18 15:19:23 +04:00
Emmanuel T Odeke
b1c9b82531
common: NewBitArray never crashes on negatives ( #170 )
...
Fixes #169
Fixes https://github.com/tendermint/tendermint/issues/1322
The previous code was very trusting assuming that
rational actors will use this code. However, Byzantine
actors don't care and in the case of the linked issue
negative lengths can be sent to this code unfettered
having been received from a peer.
This code is essentially just a sign change from
`==`
to
`<=`
and we've gutted out that attack by being more defensive.
2018-03-18 15:17:11 +04:00
Jae Kwon
b0e0dc5de3
Implement DebugDB ( #166 )
2018-03-18 01:52:28 +01:00
Jae Kwon
3412587036
Fix race condition in random.go
2018-03-18 01:50:15 +01:00
Jae Kwon
4e02184676
Remove pkg/errors; Update Gopkg.toml, but not GRPC because it breaks.
2018-03-18 01:40:26 +01:00
Jae Kwon
9b9a9e7f8c
Add Error Type for switching
2018-03-17 16:32:49 +01:00
Jae Kwon
99437a96fb
Add efficient implementation of fmt and use for errors.
2018-03-17 15:23:22 +01:00
Jae Kwon
bb875303c2
Add NewErrorWithCause()
2018-03-17 14:44:12 +01:00
Jae Kwon
de36bfe31c
Add TMLibs/Error from Cosmos-SDK/Error
2018-03-17 13:56:39 +01:00
Jae Kwon
90cd89eab0
Unexpose r.rand ( #167 )
2018-03-17 05:18:22 -07:00
Jae Kwon
6d61ca3bb5
New -> NewRand
2018-03-17 12:34:23 +01:00
Jae Kwon
536c27de8e
common/random.go supports seeding and *Rand ( #121 )
...
* common/random.go supports seeding and *Rand
* Ensure determinism
2018-03-17 04:28:53 -07:00
Jae Kwon
a3800da0a1
Update Gopkg.lock to use go-amino
2018-03-16 07:01:02 -07:00
Jae Kwon
7dee27c851
Merge pull request #76 from tendermint/update-go-amino
...
wire -> amino
2018-03-16 06:48:32 -07:00
Jae Kwon
d289c9286e
Implement NewPrefixDB ( #164 )
...
* encodeByteSlice uses uvarint for length instead of varint
* Implemented NewPrefixDB
* Fix flowrate test (#165 )
* Complete implementation and fix tests
* Add tests for MemBatch Write[Sync]
2018-03-15 09:43:23 -07:00
Ethan Buchman
791f95bac3
Merge pull request #215 from tendermint/bucky/fees-gas
...
comment some fields in ResponseCheck/DeliverTx. closes #214
2018-03-14 18:47:26 +01:00
Ethan Buchman
f7afa3d91f
comment some fields in ResponseCheck/DeliverTx. closes #214
2018-03-13 13:40:41 +01:00
Emmanuel T Odeke
121f0d3fcf
types: compile time assert to, and document sort.Interface
...
Fixes #212
Declare the purpose of the Less, Len, Swap methods
so that readers can see why they are defined.
Raised by an auditor in their report, as it looked like a security
concern but actually sort.Interface requires those methods implemented.
2018-03-12 14:46:06 -07:00
Anton Kaliaev
73407e7cff
add CODEOWNERS file
2018-03-12 12:37:19 +04:00
Anton Kaliaev
47b8a8864b
remove any mention of glide
2018-03-12 12:34:43 +04:00
Anton Kaliaev
f499ce8713
update go-amino
2018-03-12 12:29:25 +04:00
Jae Kwon
b1cc688a61
encodeByteSlice uses uvarint for length instead of varint ( #161 )
2018-03-12 09:46:31 +04:00
Simon Vadée
066fe82a92
pubsub implements service.OnReset ( #156 )
2018-03-06 11:29:18 +04:00
Zach
d5361de300
Merge pull request #209 from zmanian/transitive_deps
...
Move the tmlibs dependency to develop
2018-03-05 12:12:56 +08:00
Zaki Manian
a38ad4e21b
Move the tmlibs dependency to develop
2018-03-04 20:00:42 -08:00
Zach
a29163d85b
Merge pull request #208 from tendermint/zramsay-patch-1
...
update spec formatting for docs
2018-03-05 10:48:26 +08:00
Zach
a183219659
update spec formatting for docs
...
this file is pulled in by tendermint's doc building
2018-03-05 10:46:51 +08:00
Ethan Buchman
7579abd710
bring back dummy for backwards compatibility ...
2018-03-03 20:40:43 -05:00
Ethan Buchman
69e960da42
Merge pull request #71 from zmanian/dep
...
Switch to dep from glide for dependency resolution
2018-03-02 11:54:26 -05:00
Ethan Buchman
5e07356264
use previously working new go-wire. not bleeding edge
2018-03-02 11:43:58 -05:00
Ethan Buchman
e05ba9511a
Merge branch 'master' into develop
2018-03-02 11:42:06 -05:00
Ethan Buchman
c3e19f3ea2
Merge pull request #73 from tendermint/develop-pre-wire
...
Develop pre wire
2018-03-02 10:40:13 -05:00
Ethan Buchman
3a92931657
changelog, version, glide
2018-03-02 10:40:36 -05:00
Ethan Buchman
6c6d01b51c
Keybase refactor
...
Same as 788cc0a792
but without the new go-wire
2018-03-02 03:08:48 -05:00
Ethan Buchman
9e0e00bef4
Merge branch 'master' into develop
2018-03-01 23:55:14 -05:00
Ethan Buchman
c015e7a23d
Merge pull request #206 from tendermint/bucky/fix-spec-and-changelog-for-v0.10.0
...
update CHANGELOG, README, spec for v0.10. Fixes #205
2018-03-01 19:50:05 -05:00
Ethan Buchman
fb808a00d5
update CHANGELOG, README, spec for v0.10. Fixes #205
2018-03-01 19:52:01 -05:00
Zach
031be404cf
Merge pull request #203 from tendermint/fix-dockerfile-develop
...
fix Dockerfile.develop
2018-03-01 14:43:43 +08:00
Anton Kaliaev
345a5a5a34
remove glide
2018-02-27 17:54:25 +04:00
Anton Kaliaev
c57ab8724e
fix Dockerfile.develop
2018-02-27 17:54:25 +04:00
Zaki Manian
3d5f0a8b94
Switch dependency management to dep from glide ( #202 )
2018-02-27 17:24:09 +04:00
Zaki Manian
192fb2aabc
Fix string formatting error for go1.10 ( #201 )
2018-02-27 16:03:21 +04:00
Zaki Manian
26f2ab65f8
Switch to dep from glide ( #155 )
2018-02-27 16:01:49 +04:00
Zaki Manian
3570c2eb9e
Fix test in makefile
2018-02-25 09:41:32 -08:00
Zaki Manian
b6d029050b
Switch to dep from glide for dependency resolution
2018-02-25 08:48:53 -08:00
Ethan Buchman
6d47f4afe2
Merge pull request #197 from tendermint/sed-dummy-kvstore
...
rename dummy to kvstore
2018-02-21 00:03:44 -05:00
Ethan Buchman
68592f4d8e
Merge pull request #198 from tendermint/develop
...
v0.10.0
2018-02-20 22:10:11 -05:00
Ethan Buchman
9b6088cc26
glide and changelog
2018-02-20 22:06:27 -05:00
Ethan Buchman
1b9b5652a1
changelog date
2018-02-20 22:00:20 -05:00
Ethan Buchman
3e79f9e198
Merge pull request #154 from tendermint/develop
...
v0.7.0 (aka "sdk2")
2018-02-20 21:55:52 -05:00
Ethan Buchman
fe7e26eecf
changelog and version bump
2018-02-19 17:44:49 -05:00
Ethan Buchman
c6163bdab2
version bump and changelog
2018-02-19 17:05:36 -05:00
zramsay
831e10f15d
finish the job, dummy
2018-02-19 20:43:36 +00:00
zramsay
594db86069
rename dummy*.go files to kvstore*.go
2018-02-19 20:40:33 +00:00
zramsay
a3362ccf35
s/Dummy/KVStore/g
2018-02-19 20:38:22 +00:00
Ethan Buchman
c960c52756
Merge pull request #193 from tendermint/feature/init-chain-app-state
...
types: RequestInitChain.AppStateBytes
2018-02-17 12:51:05 -05:00
Ethan Buchman
a6be687088
types: RequestInitChain.AppStateBytes
2018-02-16 19:49:33 -05:00
Ethan Buchman
b1e29d22f6
Merge pull request #192 from tendermint/feature/fix_glide_yaml
...
Pin tmlibs to develop
2018-02-16 19:37:09 -05:00
Adrian Brink
7a6a079afe
Pin tmlibs to develop
2018-02-15 12:28:05 +01:00
Ethan Buchman
a0f652dc2e
Merge pull request #151 from tendermint/fix/nit
...
minor nit
2018-02-14 11:57:38 -05:00
Ethan Buchman
737c30c19d
minor nit
2018-02-12 19:12:24 -05:00
Ethan Buchman
bf70f5e273
Merge pull request #191 from tendermint/tm-1205-quit-method-added
...
Quit method was added to Service/BaseService
2018-02-12 19:04:04 -05:00
Ethan Buchman
c858b3ba78
Merge pull request #150 from tendermint/tm-1205-add-quit-method-to-service
...
add Quit method to Service interface
2018-02-12 18:39:26 -05:00
Anton Kaliaev
5913ae8960
Quit method was added to Service/BaseService
...
Refs https://github.com/tendermint/tendermint/issues/1205
2018-02-12 12:22:32 +04:00
Anton Kaliaev
a57340ffb5
add Quit method to Service interface
...
remove deprecated QuitService
2018-02-12 11:40:42 +04:00
Anton Kaliaev
52ce4c20f8
Fix RepeatTimer memory leak ( #137 )
...
fix RepeatTimer memory leak (Refs #137 )
* test case
* drain channels on reset
Leaking memory:
```
leaktest.go:144: leaktest: leaked goroutine: goroutine 116 [chan send]:
github.com/tendermint/tmlibs/common.(*RepeatTimer).fireRoutine(0xc42006a410, 0xc4203403c0, 0xc42031b2c0)
/go/src/github.com/tendermint/tmlibs/common/repeat_timer.go:160 +0x6e
created by github.com/tendermint/tmlibs/common.(*RepeatTimer).reset
/go/src/github.com/tendermint/tmlibs/common/repeat_timer.go:196 +0xe9
```
The alternative solution could be draining channels on the client side.
* add one more select instead of draining
thanks to Jae
2018-02-09 13:31:32 +04:00
Ethan Buchman
82ab92da9a
Merge pull request #139 from tendermint/expose-channel-on-clist
...
add waitCh as an alternative to waitGroup
2018-02-09 01:18:39 -05:00
Ethan Buchman
35bb398b1f
Merge pull request #147 from tendermint/reduce-bitArray-fragility
...
common/BitArray: reduce fragility with methods
2018-02-08 15:31:30 -05:00
Emmanuel Odeke
763dc21393
common/BitArray: reduce fragility with methods
...
Fixes https://github.com/tendermint/tmlibs/issues/145
Fixes https://github.com/tendermint/tmlibs/issues/146
The code in here has been fragile when it comes to nil
but these edge cases were never tested, although they've
showed up in the wild and were only noticed because
the reporter actually read the logs otherwise
we'd have never known.
This changes covers some of these cases and adds some tests.
2018-02-06 01:12:24 -08:00
Anton Kaliaev
19e818fdf7
Merge pull request #142 from tendermint/ishex-fragility
...
common: IsHex should be able to handle 0X prefixed strings
2018-02-05 13:14:53 +04:00
Anton Kaliaev
91b41ddd59
add waitCh as an alternative to waitGroup
...
new methods:
- [CList] WaitChan()
- [CElement] NextWaitChan()
- [CElement] PrevWaitChan()
Refs https://github.com/tendermint/tendermint/pull/1173
2018-02-05 11:36:36 +04:00
Ethan Buchman
5a4f56056e
Merge pull request #189 from tendermint/no-wire-crypto
...
remove go-wire and go-crypto deps
2018-02-03 02:55:22 -05:00
Ethan Buchman
1148027baf
remove go-wire and go-crypto deps
2018-02-03 02:39:34 -05:00
Ethan Buchman
21dd648732
Merge pull request #187 from tendermint/no-iavl
...
Remove IAVL dependency
2018-02-03 02:26:26 -05:00
Ethan Buchman
baea45177d
example/dummy: remove iavl dep - just use raw db
2018-02-03 02:02:40 -05:00
Ethan Buchman
deaaf014d8
Merge pull request #141 from tendermint/no-wire
...
merkle: remove go-wire dep by copying EncodeByteSlice
2018-02-03 01:57:27 -05:00
Emmanuel Odeke
951333ecb0
common: IsHex should be able to handle 0X prefixed strings
...
IsHex should also successfully decode strings prefixed with
0X instead of only 0x strings.
Also add tests generally for IsHex.
2018-02-02 23:41:24 -07:00
Ethan Buchman
d6d97889f2
merkle: remove go-wire dep by copying EncodeByteSlice
2018-02-03 01:29:39 -05:00
Ethan Buchman
c617737e03
Merge pull request #184 from tendermint/sdk2
...
update for go-wire sdk2
2018-02-03 00:22:50 -05:00
Ethan Buchman
4450a20bde
types: check bufio.Reader
2018-02-03 00:24:48 -05:00
Ethan Buchman
d2845d923b
add more versions to glide
2018-02-03 00:14:15 -05:00
Ethan Buchman
700792bc10
update glide
2018-02-03 00:08:39 -05:00
Ethan Buchman
11d383f1c7
update for go-wire sdk2
2018-02-02 23:56:19 -05:00
Ethan Buchman
4fc3055dbd
update glide again
2018-02-02 23:50:24 -05:00
Ethan Buchman
1d7fc78ea1
update glide
2018-02-02 23:49:14 -05:00
Ethan Buchman
5a94049dbc
update glide again
2018-02-02 23:42:22 -05:00
Ethan Buchman
9e897ab8b0
update glide
2018-02-02 23:34:07 -05:00
Ethan Buchman
690d6c6070
cli: WriteDemoConfig -> WriteConfigVals
2018-02-02 23:05:28 -05:00
Ethan Buchman
4542cc5a71
Merge pull request #64 from tendermint/sdk2
...
Merge sdk2 into develop
2018-02-02 22:48:01 -05:00
Ethan Buchman
027c37281d
Merge pull request #123 from tendermint/sdk2
...
Merge sdk2 into develop
2018-02-02 22:32:33 -05:00
Ethan Buchman
1b5176003a
DbBackend -> DBBackend
2018-02-02 22:31:17 -05:00
Adrian Brink
45b71f7d11
Bump tmlibs commit. Needs to be changed to develop as soon as tmlibs PR is merged
2018-02-02 18:51:41 +01:00
Adrian Brink
cbc63518e5
Export DbBackendType in order to fix IAVL tests
2018-02-02 18:50:24 +01:00
Adrian Brink
0391e499fb
Clean up glide.yaml
2018-02-02 18:31:25 +01:00
Adrian Brink
2e76546223
Clean up glide.yaml
2018-02-02 18:09:48 +01:00
Adrian Brink
6b2409f714
Update go-wire to develop
2018-02-02 14:12:29 +01:00
Anton Kaliaev
95b53c80e1
Merge pull request #140 from tendermint/sdk2-hashers-and-simple-map
...
Sdk2 hashers and simple map
2018-02-02 14:15:56 +04:00
Anton Kaliaev
9ccfe161ad
lowercase memDB type key
2018-02-02 14:08:05 +04:00
Jae Kwon
f6dbe9ba05
Refactor string -> dbBackendType
2018-02-02 14:08:05 +04:00
Jae Kwon
b95cac5f4f
Remove unnecessary Byteser interface
2018-02-02 14:08:05 +04:00
Jae Kwon
c75298e359
Update SimpleMap to hash both keys and values for benefit; Hashable is Hasher; Don't assume go-wire
2018-02-02 14:08:05 +04:00
Jae Kwon
580c3db8f9
Hashable -> Hasher; SimpleMap upgrade; No "SimpleHashFromBinary" ( #128 )
...
* Update SimpleMap to hash both keys and values for benefit; Hashable is Hasher; Don't assume go-wire
2018-02-02 12:51:30 +04:00
Jae Kwon
7ef6d4b813
Glide update
2018-02-02 12:51:30 +04:00
Jae Kwon
ff230682d1
Fix logical time ( #122 )
...
Should fix a nondeterministic bug so...
2018-02-02 12:51:30 +04:00
Ethan Buchman
cfbb9338bd
use go-wire sdk2
2018-02-02 12:51:30 +04:00
Jae Kwon
6637c202bf
Revert "Update to use tmlibs sdk2"
...
This reverts commit ae58af0be534a5c344896461b97a6490d428deb4.
Breaks the tests.
2018-02-02 12:51:30 +04:00
Jae Kwon
4e2a275a67
Update to use tmlibs sdk2
2018-02-02 12:51:30 +04:00
Jae Kwon
bcd8d403dc
Remove encoding from common cli
2018-02-02 12:51:29 +04:00
Ethan Buchman
13f009bf68
Merge pull request #136 from tendermint/fix-bitArray-nil-update
...
common: fix BitArray.Update to avoid nil dereference
2018-01-29 17:17:18 -05:00
Emmanuel Odeke
85be26c675
common: BitArray: feedback from @adrianbrink to simplify tests
2018-01-28 22:02:51 -07:00
Emmanuel Odeke
84afef20f5
common: fix BitArray.Update to avoid nil dereference
...
Update previously only checked that the receiver was
non-nil but didn't check that the input parameter to update
"o" was non-nil causing a nil dereference in cases such as
fe632ea32a/consensus/reactor.go (L306)
Fixes https://github.com/tendermint/tendermint/issues/1169
2018-01-28 10:39:42 -07:00
Zach
fa8c374aff
Merge branch 'master' into develop
2018-01-25 00:10:39 +00:00
Jae Kwon
12142af1cb
Remove reliance on global wire.Marshal
2018-01-21 19:03:23 -08:00
Ethan Buchman
32741be212
update glide for go-wire and tmlibs
2018-01-14 17:40:16 -05:00
Jae Kwon
442dab45a5
Merge pull request #63 from tendermint/sdk2-newwire
...
Use new go-wire; PubKey etc are interfaces; Keybase refactor
2018-01-14 13:32:38 -08:00
Jae Kwon
788cc0a792
Use new go-wire; PubKey etc are interfaces; Keybase refactor
2018-01-14 01:09:30 -08:00
Ethan Buchman
67a47e6a0b
Address is a type alias
2018-01-06 16:05:50 -05:00
Ethan Buchman
ffbe912ff3
Merge pull request #171 from tendermint/sdk2
...
WIP: Sdk2
2018-01-06 01:29:55 -05:00
Ethan Buchman
2bd556205d
disable fragile bash test
2018-01-05 22:57:45 -05:00
Ethan Buchman
a55adfaa4f
tests: use shasum to avoid rarer dependency
2018-01-05 22:33:18 -05:00
Ethan Buchman
e1e3ea4e7f
fix a get_tools
2018-01-05 22:22:55 -05:00
Ethan Buchman
a488c0f027
update changelog and glide and a fix
2018-01-05 22:19:37 -05:00
Ethan Buchman
629e2fc2a0
update readme
2018-01-05 21:52:52 -05:00
Ethan Buchman
c38ac88d69
Merge branch 'develop' into sdk2
2018-01-05 21:45:48 -05:00
Ethan Buchman
82aed60acb
Merge pull request #173 from tendermint/cobra-helpers
...
fill in empty command helpers
2018-01-04 12:19:55 -05:00
Ethan Buchman
19e065b6f5
Merge pull request #174 from tendermint/examples-in-readme
...
update readme with example code
2018-01-04 12:19:18 -05:00
Ethan Buchman
f205a937cf
Merge pull request #172 from tendermint/spec-docs
...
convert spec to .rst for consumption by tendermint RTD
2018-01-04 12:16:00 -05:00
Zach
f6172e84a9
Merge pull request #176 from tendermint/shasum
...
use sha256sum because more secure
2018-01-04 15:53:56 +00:00
Zach Ramsay
f47b8f8a2d
use sha256sum because more secure
2018-01-04 15:41:25 +00:00
Ethan Buchman
3ebe3250ff
Merge pull request #58 from tendermint/sdk2
...
SDK2
2018-01-03 20:32:07 -05:00
Zach Ramsay
a77213e6c5
update readme, closes #134
2018-01-03 00:48:00 +00:00
Ethan Buchman
156416fe27
fix wordlist paths
2018-01-02 16:39:43 -05:00
Ethan Buchman
793d7717dc
no metalinter for now
2018-01-02 16:34:25 -05:00
Ethan Buchman
1afc034006
Merge pull request #119 from tendermint/sdk2
...
Sdk2
2018-01-02 11:37:17 -05:00
Ethan Buchman
2bb538b150
cmn: fix HexBytes.MarshalJSON
2018-01-02 11:05:53 -05:00
Ethan Buchman
1460540acd
metalinter is for another time
2018-01-02 11:05:39 -05:00
Ethan Buchman
8bb383c264
Merge pull request #59 from tendermint/sdk2-cleanup
...
Sdk2 cleanup
2018-01-02 10:54:40 -05:00
Ethan Buchman
1838db2880
circle
2018-01-02 10:53:56 -05:00
Ethan Buchman
7fe3d5dac2
metalinter
2018-01-02 10:48:36 -05:00
Ethan Buchman
a991e2fe9c
Merge branch 'develop' into sdk2
2018-01-02 10:29:04 -05:00
Zach Ramsay
47d5fd0f1b
prettify the command helpers
2018-01-01 16:21:36 +00:00
Zach Ramsay
12fd445e6f
spec: convert to rst
2018-01-01 14:48:29 +00:00
Zach Ramsay
e9ff0eefbb
move spec from readme to own file
2018-01-01 14:45:57 +00:00
Ethan Buchman
b31d37b480
update circle.yml
2017-12-30 18:25:42 -05:00
Ethan Buchman
d058d0098f
keys/bcrypt
2017-12-30 17:30:18 -05:00
Ethan Buchman
8c61bb27b7
fix nano test
2017-12-30 17:30:18 -05:00
Ethan Buchman
bd30cb4de9
keys/keybase.go: comments and fixes
2017-12-30 17:30:18 -05:00
Ethan Buchman
f3f49c2362
keys/words
2017-12-30 17:30:18 -05:00
Ethan Buchman
1f8e66fdb3
nano: update comments
2017-12-30 17:29:51 -05:00
Ethan Buchman
7c77f6b2da
move hd into keys/hd
2017-12-30 17:29:51 -05:00
Ethan Buchman
87f2005fa8
hd: comments and some cleanup
2017-12-30 17:29:51 -05:00
Ethan Buchman
f2bfa83b42
Merge pull request #116 from tendermint/remove-logger-package
...
remove deprecated logger package
2017-12-29 20:50:03 -05:00
Zach Ramsay
a84bc2f5b2
logger is deprecated, removed; closes #115
2017-12-29 16:25:15 +00:00
Ethan Buchman
9f72e25b23
readme
2017-12-29 16:25:15 +00:00
Ethan Buchman
91b4b534ad
Merge pull request #118 from tendermint/develop
...
v0.6.0
2017-12-29 11:05:12 -05:00
Ethan Buchman
35e6f11ad4
changelog and version
2017-12-29 11:01:37 -05:00
Ethan Buchman
b54da51c0c
Merge pull request #111 from tendermint/timers_jae
...
WIP RepeatTimer fix
2017-12-29 10:52:25 -05:00
Ethan Buchman
92c17f3f25
give test more time
2017-12-29 10:49:49 -05:00
Ethan Buchman
71f13cc071
drop metalinter
2017-12-29 10:42:02 -05:00
Ethan Buchman
5d5ea6869b
Merge pull request #170 from tendermint/develop
...
v0.9.0
2017-12-29 10:36:33 -05:00
Ethan Buchman
70da70d852
abandon the metalinter because honestly who has the time
2017-12-29 10:30:59 -05:00
Jae Kwon
a171d90611
Fix possibly incorrect usage of conversion
2017-12-29 10:28:00 -05:00
Ethan Buchman
558f8e7769
fix recursion
2017-12-29 10:28:00 -05:00
Ethan Buchman
76433d9040
little things
2017-12-29 10:28:00 -05:00
Jae Kwon
6b5d08f7da
RepeatTimer fix
2017-12-29 10:27:54 -05:00
Ethan Buchman
6372c415a5
Merge pull request #113 from tendermint/hotfix/clist
...
Fix #112 by using RWMutex per element
2017-12-28 22:23:02 -05:00
Jae Kwon
b31397aff5
Fix GoLevelDB Iterator which needs to copy a temp []byte
2017-12-28 18:30:56 -08:00
Ethan Buchman
38eb32d7bf
version and changelog
2017-12-28 17:28:07 -05:00
Jae Kwon
e47ce81422
Comment fixes from Emmanuel
2017-12-28 03:05:55 -08:00
Jae Kwon
f48baf86fb
Add Address type which is HexBytes
2017-12-27 14:37:37 -08:00
Jae Kwon
93c05aa8c0
Add back on HexBytes
2017-12-27 13:52:32 -08:00
Ethan Buchman
4041adbf92
Merge pull request #54 from tendermint/cRandHex-doc-fix
...
CRandHex: fix up doc to mention length of digits
2017-12-26 23:48:05 -05:00
Jae Kwon
8f87efd7f8
ABCI message updates (code/log/info)
...
* Add info to Response[CheckTx/DeliverTx/Query]
* Remove code and log from Response[SetOption/Commit]
2017-12-26 15:46:06 -08:00
Jae Kwon
66580408f8
GasWanted and GasUsed for Check & Deliver
2017-12-26 05:29:33 -08:00
Jae Kwon
e1ff53fd0b
Use []byte instead of Bytes, use tmlibs/common.KVPair
2017-12-26 04:52:02 -08:00
Jae Kwon
b25df389db
Remove Bytes, just use []byte; Use protobuf for KVPair/KI64Pair
2017-12-26 04:40:35 -08:00
Jae Kwon
a861d68a31
Update glide.yaml and fix tests
2017-12-26 00:45:31 -08:00
Jae Kwon
bf644b0984
Do not shadow assert
2017-12-26 00:36:58 -08:00
Jae Kwon
9472476a8b
Update Makefile
2017-12-26 00:28:07 -08:00
Jae Kwon
6ec8c1602f
Update Makefile
2017-12-25 22:41:40 -08:00
Jae Kwon
0f8ebd024d
Update clist.go
...
Add more justification of synchrony primitives in documentation.
2017-12-25 22:28:15 -08:00
Jae Kwon
2fd8f35b74
Fix #112 by using RWMutex per element
2017-12-25 21:12:14 -08:00
Jae Kwon
797bcdd9e0
Remove common/http
2017-12-25 17:46:21 -08:00
Zach
96c816f428
Merge pull request #160 from KrzysiekJ/test-cmd-short-circuit
...
Short-circuit assertions in test command
2017-12-25 20:21:24 +00:00
Jae Kwon
f2a8e95248
Add KI64Pair(s)
2017-12-25 11:40:05 -08:00
Jae Kwon
ff65421324
Proposal: New Makefile standard template ( #168 )
...
* Cleaned up makefile.
* Improve 'make all' order
* Add devdoc
* Update circle.yml
2017-12-25 00:14:13 -08:00
Jae Kwon
f390385baf
Fee is a KNPair ( #167 )
...
KVPair is {[]byte,[]byte}
2017-12-24 18:39:16 -08:00
Emmanuel Odeke
62115b55ef
CRandHex: fix up doc to mention length of digits
...
The previous doc seemed misleading and was out of date i.e.
RandHex(24)
not
CRandHex.
Anyways provide a doc of what the function does in relation to
the length of digits of the hex value returned i.e.
floor(numDigits / 2) * 2
so the even lowest number
e.g:
* len(CRandHex(5)) = 4
* len(CRandHex(4)) = 4
2017-12-22 23:16:34 -07:00
Jae Kwon
aaaacba1cd
Use gogoproto's nullable=false ( #166 )
...
* Use gogoproto's nullable=false where appropriate.
2017-12-22 19:41:19 -08:00
Ethan Buchman
43cc4fb645
Merge pull request #53 from tendermint/constant-time-equals
...
Constant time equals
2017-12-21 20:03:53 -05:00
Ethan Buchman
eaf4b8c795
fix Equals
2017-12-21 19:51:57 -05:00
Ethan Buchman
218acc2224
Merge pull request #107 from tendermint/fix/cmn
...
Fix/cmn
2017-12-21 16:30:45 -05:00
Ethan Buchman
e2d7f1aa41
cmn: fix race
2017-12-21 14:21:15 -05:00
Ethan Buchman
b0b740210c
cmn: fix repeate timer test with manual ticker
2017-12-21 11:15:17 -05:00
Ethan Buchman
a25ed5ba1b
cmn: fix race condition in prng
2017-12-21 10:02:25 -05:00
Jae Kwon
e4b9f1abe7
Id -> ID using gogo
2017-12-20 17:33:59 -08:00
Ethan Buchman
98a38737c4
Merge pull request #156 from tendermint/use-single-connection-in-console
...
cmd/abci-cli: use a single connection per session
2017-12-20 16:11:25 -05:00
Ethan Buchman
9c145a9e19
Merge branch 'develop' into use-single-connection-in-console
2017-12-20 15:55:36 -05:00
Ethan Buchman
2927caa0eb
fix flag parsing in console mode
2017-12-20 15:54:14 -05:00
Ethan Buchman
c03928766d
Merge pull request #163 from tendermint/feature/enhance-endblock
...
Update the ResponseEndBlock values
2017-12-20 15:16:09 -05:00
Ethan Buchman
fa15e4f554
update changelog [ci skip]
2017-12-20 15:16:15 -05:00
Anton Kaliaev
0d69ace961
fix circleci config
2017-12-20 13:40:26 -06:00
Jae Kwon
e46a99a32f
Fix Makefile
2017-12-20 11:02:22 -08:00
Adrian Brink
57c49cc825
Include unsaved circle.yml file
2017-12-20 10:40:35 +01:00
Adrian Brink
c268c4e767
Update Circle and Makefile to run tests/linting on CI
2017-12-20 10:33:24 +01:00
Jae Kwon
57a83fe73e
Merge branch 'develop' into feature/enhance-endblock
2017-12-20 00:11:57 -08:00
Jae Kwon
3798f9fa8e
Reorder README
2017-12-20 00:07:58 -08:00
Jae Kwon
c14d3982ac
ValidatorSetUpdates -> ValidatorUpdates
2017-12-20 00:02:41 -08:00
Jae Kwon
b70ae4919b
Update glide file
2017-12-19 20:47:22 -08:00
Jae Kwon
ca56a274bd
Nil bytes are OK for Get/Set etc
...
And s/Release/Close/g
2017-12-19 20:36:37 -08:00
Anton Kaliaev
c8ddf156a7
Merge pull request #104 from tendermint/revert-94-feature/timer-refactor
...
Revert "Refactor throttle timer"
2017-12-19 16:32:21 -06:00
Anton Kaliaev
e17e8e425f
Revert "Refactor throttle timer"
2017-12-19 16:23:20 -06:00
Anton Kaliaev
be2b0fa31e
Merge pull request #103 from tendermint/revert-95-feature/repeat-timer
...
Revert "Refactor repeat timer"
2017-12-19 16:22:48 -06:00
Anton Kaliaev
70e30f74e6
Revert "Refactor repeat timer"
2017-12-19 16:16:16 -06:00
Anton Kaliaev
9a5b943e77
update changelog [ci skip]
2017-12-19 13:17:29 -06:00
Anton Kaliaev
4ddf212286
Merge pull request #100 from tendermint/internal-randSource
...
common: no more relying on math/rand.DefaultSource
2017-12-19 12:54:54 -06:00
Emmanuel T Odeke
811dc071aa
protoc: "//nolint: gas" directive after pb generation ( #164 )
...
* protoc: "//nolint: gas" directive after pb generation
Fixes #138
Since we can't add package directives through the protoc
compiler, yet we need to "//nolint: gas" the Go generated
protobuf file, added a script whose purpose is to
go find the "package (\w+)$" declaration after go fmt
was run by protoc.
The competing solutions were more complex and can be
examined by visiting
https://github.com/tendermint/abci/issues/138#issuecomment-352226217
* simplify script
* rewrite script to work on Mac
2017-12-19 12:29:59 -06:00
Anton Kaliaev
66296fe11a
updates -> validator_set_updates
...
ConsensusParamChanges -> ConsensusParamUpdates
2017-12-19 12:13:45 -06:00
Jae Kwon
4ce8448d7f
Nil keys are OK, deprecate BeginningKey/EndingKey ( #101 )
...
* Nil keys are OK, deprecate BeginningKey/EndingKey
2017-12-17 13:11:28 -08:00
Jae Kwon
aab2d70dd3
Sdk2 kvpair ( #102 )
...
* Canonical KVPair in common
* Simplify common/Bytes to just hex encode
2017-12-17 13:04:15 -08:00
Anton Kaliaev
843b10ed26
Merge pull request #157 from tendermint/linter-fix-v2
...
enable linter & make deterministic
2017-12-16 23:02:05 -06:00
Anton Kaliaev
dd7728c4c5
Merge pull request #161 from tendermint/fix-some-vet-issues
...
all: fix vet issues with build tags, formatting
2017-12-16 22:40:51 -06:00
Emmanuel Odeke
e3d244091d
cleanup requested from review by @melekes
2017-12-16 15:49:38 -07:00
Emmanuel Odeke
8638961f02
common: Rand* warnings about cryptographic unsafety
...
Lesson articulated by @jaekwon on why we need 80 bits
of entropy at least before we can think of cryptographic
safety. math/rand's seed is a max of 64 bits so can never
be cryptographically secure.
Also added some benchmarks for RandBytes
2017-12-15 22:41:36 -07:00
Ethan Buchman
e3bffd8fbd
readme
2017-12-16 00:04:06 -05:00
Ethan Buchman
9226659413
Merge pull request #98 from tendermint/sdk2-iterator
...
Sdk2 iterator
2017-12-15 15:58:48 -05:00
Ethan Buchman
66b0e8fa2d
fix c level db iterator
2017-12-15 15:58:23 -05:00
Ethan Buchman
225eace316
dont run metalinter on circle ...
2017-12-15 15:14:48 -05:00
Emmanuel Odeke
a7b20d4e46
db: Simplify exists check, fix IsKeyInDomain signature, Iterator Close
...
+ *FSDB.HasKey now uses common.FileExists to test for file existence
+ IsKeyInDomain takes key as a []byte slice instead of as a string
to avoid extraneous []byte<-->string conversions for start and end
+ Iterator.Close() instead of Iterator.Release()
+ withDB helper to encapsulate DB creation, deferred cleanups
so that for loops can use opened DBs and discard them ASAP
Addressing accepted changes from review with @jaekwon
2017-12-15 02:58:51 -07:00
Emmanuel Odeke
cdc7988823
common: use genius simplification of tests from @ebuchman
...
Massive test simplication for more reliable tests from @ebuchman
2017-12-15 02:14:08 -07:00
Ethan Buchman
b5f465b4ec
common: use names prng and mrand
2017-12-15 00:23:25 -05:00
Ethan Frey
eb6d412a82
Add tests to protobuf objects for pr coverage
2017-12-14 09:35:33 +01:00
Ethan Frey
9c5e1a824d
Updated naming of EndBlock parameters
...
* Changes -> Updates for validators
* ConsensusParams.XXXParams -> ConsensusParams.XXX
* As per feedback from Jae on PR
2017-12-14 09:27:20 +01:00
Emmanuel Odeke
29471d75cb
common: no more relying on math/rand.DefaultSource
...
Fixes https://github.com/tendermint/tmlibs/issues/99
Updates https://github.com/tendermint/tendermint/issues/973
Removed usages of math/rand.DefaultSource in favour of our
own source that's seeded with a completely random source
and is safe for use in concurrent in multiple goroutines.
Also extend some functionality that the stdlib exposes such as
* RandPerm
* RandIntn
* RandInt31
* RandInt63
Also added an integration test whose purpose is to be run as
a consistency check to ensure that our results never repeat
hence that our internal PRNG is uniquely seeded each time.
This integration test can be triggered by setting environment variable:
`TENDERMINT_INTEGRATION_TESTS=true`
for example
```shell
TENDERMINT_INTEGRATION_TESTS=true go test
```
2017-12-14 00:18:30 -07:00
Ethan Buchman
a2f7898b6d
db: fix c and go iterators
2017-12-13 22:28:37 -05:00
Ethan Buchman
d4aeca8ce3
fixes from @melekes
2017-12-13 20:11:11 -05:00
Ethan Frey
895e14d6bd
Update Diffs to Changes, fix README
2017-12-13 17:57:43 +01:00
Ethan Frey
25f6f6518c
Update the ResponseEndBlock values
...
* Rename diffs -> changes
* Add consensus_param_changes
For context, see:
https://github.com/tendermint/tendermint/issues/924
https://github.com/tendermint/tendermint/issues/952
2017-12-13 17:50:24 +01:00
Ethan Buchman
318982c0ba
checkKeyCondition -> IsKeyInDomain
2017-12-13 01:34:00 -05:00
Anton Kaliaev
a80b66268f
Merge pull request #97 from tendermint/rm-root-flag
...
remove deprecated --root flag
2017-12-12 23:29:36 -06:00
Anton Kaliaev
541780c6df
uncomment tests
2017-12-12 23:23:49 -06:00
Anton Kaliaev
c532e8cabc
add \n to Printf lines
2017-12-12 22:44:55 -06:00
Jae Kwon
5636a02d03
Remove GetError() from Iterator
2017-12-12 19:19:26 -08:00
Ethan Buchman
edf07760d6
db: fsdb iterator
2017-12-12 21:08:38 -05:00
Ethan Buchman
bcacaf164b
db: cleveldb iterator
2017-12-12 20:58:35 -05:00
Ethan Buchman
3e5dbef6a2
db: goleveldb iterator
2017-12-12 20:38:03 -05:00
Ethan Buchman
39e40ff5ce
db: memdb iterator
2017-12-12 20:06:50 -05:00
Ethan Buchman
bb115d4d61
cleanupDBDir
2017-12-12 19:28:52 -05:00
Emmanuel Odeke
bbc3b807c6
all: fix vet issues with build tags, formatting
...
* Build tags need to come before the package name
and have at least a blank line, between them and
the package, please see
https://golang.org/pkg/go/build/#hdr-Build_Constraints
* fmt.Println doesn't take formatting verbs
* Fix a missing formatting argument to fmt.Printf
2017-12-12 17:23:16 -07:00
Ethan Buchman
ba8c5045b5
db: fixes to fsdb and clevledb
2017-12-12 19:22:08 -05:00
Ethan Buchman
c547caf04f
db: some test cleanup
2017-12-12 19:08:22 -05:00
Emmanuel Odeke
5ea42475ce
cmd/abci-cli: implement batch
...
Can now run batch which can be tested by:
```shell
echo -e "echo foo\necho blue" | abci-cli batch
```
giving
```shell
I[12-12|07:55:55.513] Starting socketClient
module=abci-client impl=socketClient
-> code: OK
-> data: foo
-> data.hex: 0x666F6F
-> code: OK
-> data: blue
-> data.hex: 0x626C7565
```
2017-12-12 16:57:51 -07:00
Zach Ramsay
cabc516726
batch: progress
2017-12-12 16:57:51 -07:00
Emmanuel Odeke
ecc13d5a8e
cmd/abci-cli: use a single connection per session
...
Use the single client connection at startup time
for sending over commands instead of shelling out
for every command.
This code fixes the regression from
https://github.com/tendermint/abci/pull/117
which instead used "os/exec".Command with:
"abci-cli <the_command> [args...]"
The purpose of this code is to restore us
back to the state after cobra replace urlfave/cli.
There is still a bit of work to implement Batch
itself, but that should be simpler as a focused
command.
Fixes #133
2017-12-12 16:57:51 -07:00
Ethan Buchman
5b7f90dfb2
db: test panic on nil key
2017-12-12 18:42:47 -05:00
Ethan Buchman
781f6c5d22
db: some comments in types.go
2017-12-12 18:04:05 -05:00
Jae Kwon
7f650cea86
Remove Prev from Iterator
2017-12-12 14:45:31 -08:00
Jae Kwon
0d03cd9e31
Make it compile
2017-12-12 14:00:03 -08:00
Jae Kwon
50a30aafc1
New canonical Iterator
2017-12-12 12:44:47 -08:00
Krzysztof Jurewicz
6633889632
Short-circuit assertions in test command
2017-12-12 21:06:56 +01:00
Zach Ramsay
f39b575503
remove deprecated --root flag
2017-12-12 16:55:41 +00:00
Ethan Buchman
310beae63c
types: check ResponseCheckTx too
2017-12-12 10:14:50 -05:00
Emmanuel Odeke
7167d4e4c7
types: compile type assertions to avoid sneaky runtime surprises
...
Ensure that the types in result.go implement both
json.Marshaler and json.Unmarshaler
and thus avoid any accidental deletions of their respective
methods which would then cause surprises at runtime.
2017-12-12 01:15:39 -07:00
Ethan Buchman
d836ee056d
Merge pull request #96 from tendermint/tm-945
...
add String method to Query interface
2017-12-10 19:05:00 -05:00
Zach Ramsay
d6e821ea4f
linter: enable in CI & make deterministic
2017-12-10 22:34:38 +00:00
Jae Kwon
a0b692c86d
Add PushBytes to Heap
2017-12-10 14:23:27 -08:00
Jae Kwon
03dfb724c7
Change heap.Push to mean int priority
2017-12-10 10:18:35 -08:00
Anton Kaliaev
e4ef2835f0
return error if client already subscribed
2017-12-09 23:35:14 -06:00
Anton Kaliaev
cb4ba522ef
add String method to Query interface
...
Required for https://github.com/tendermint/tendermint/issues/945
2017-12-09 23:05:13 -06:00
Jae Kwon
988e190ef7
Deprecated Panic*
2017-12-09 09:26:03 -08:00
Anton Kaliaev
b49bce2bc3
Merge pull request #95 from tendermint/feature/repeat-timer
...
Refactor repeat timer
2017-12-08 11:31:27 -06:00
Anton Kaliaev
ff2fd63bf7
rename trySend to send
2017-12-08 11:17:07 -06:00
Ethan Frey
ec4adf21e0
Cleanup from PR comments
2017-12-08 10:15:26 +01:00
Ethan Frey
cc7a87e27c
Use Ticker in Repeat again to avoid drift
2017-12-07 11:22:54 +01:00
Ethan Frey
8797197cdf
No more blocking on multiple Stop()
2017-12-07 10:38:50 +01:00
Ethan Frey
887d766c86
Refactored RepeatTimer, tests hang
2017-12-07 10:15:38 +01:00
Anton Kaliaev
daa6c39dcb
Merge pull request #94 from tendermint/feature/timer-refactor
...
Refactor throttle timer
2017-12-06 18:58:23 -06:00
Anton Kaliaev
3779310c72
return back output internal channel (way go does with Timer)
2017-12-06 18:48:39 -06:00
Ethan Frey
8b518fadb2
Don't close throttle channel, explain why
2017-12-06 22:28:18 +01:00
Ethan Frey
e430d3f844
One more attempt with a read-only channel
2017-12-06 21:51:23 +01:00
Ethan Frey
1ac4c5dd6d
Made throttle output non-blocking
2017-12-06 21:20:30 +01:00
Ethan Frey
0a8721113a
First pass of PR updates
2017-12-06 21:08:55 +01:00
Ethan Frey
4ec7883891
Cleanup
2017-12-06 11:21:01 +01:00
Ethan Frey
dcb4395604
Refactor throttle timer
2017-12-06 11:17:50 +01:00
Ethan Buchman
fca2b508c1
Merge pull request #155 from tendermint/develop
...
v0.8.0 take II
2017-12-06 03:26:47 -05:00
Ethan Buchman
47216538fd
types: add UnmarshalJSON funcs for Response types
2017-12-06 03:19:28 -05:00
Ethan Frey
3d9113c16e
Add a bit more padding to tests so they pass on osx with -race
2017-12-06 09:18:04 +01:00
Ethan Buchman
12dca48768
Merge pull request #154 from tendermint/develop
...
Release 0.8.0
2017-12-06 02:39:56 -05:00
Ethan Buchman
293cf5e634
minor fix [ci skip]
2017-12-06 02:41:14 -05:00
Ethan Buchman
f860c33515
changelog and version
2017-12-06 02:33:35 -05:00
Ethan Buchman
bfcc0217f1
Merge pull request #93 from tendermint/release/0.5.0
...
Release/0.5.0
2017-12-06 02:08:29 -05:00
Ethan Buchman
e6be03db31
update license and changelog
2017-12-06 02:05:57 -05:00
Ethan Buchman
e1ee4d6bf5
types: add MarshalJSON funcs for Response types with a Code
2017-12-06 01:56:39 -05:00
Anton Kaliaev
b166d627f3
bump up version to 0.5.0
2017-12-05 18:04:28 -06:00
Anton Kaliaev
303b6df812
update changelog
2017-12-05 18:04:07 -06:00
Anton Kaliaev
283462dfe4
Merge pull request #86 from tendermint/fix-lint
...
fix warnings
2017-12-05 17:53:38 -06:00
Anton Kaliaev
c325ce2182
use NoErrorf and Errorf functions
2017-12-05 17:49:42 -06:00
Ethan Buchman
4b9cae8998
Merge pull request #151 from tendermint/set-option-code
...
ResponseSetOption includes a response Code. Closes #64 "
2017-12-05 18:48:02 -05:00
Ethan Buchman
1b2c383205
ResponseSetOption includes a response Code. Closes #64 "
2017-12-05 18:41:52 -05:00
Ethan Buchman
fff8e963f8
update readme
2017-12-05 17:45:26 -05:00
Ethan Buchman
cfa14074df
Merge branch 'server-test' into develop
2017-12-05 17:39:30 -05:00
Ethan Buchman
f6e22e4296
update readme for notes about grpc
2017-12-05 17:22:06 -05:00
Anton Kaliaev
27ab1f6bd9
Merge pull request #90 from tendermint/feature/throttle-timer
...
test timers
2017-12-05 14:17:41 -06:00
Krzysztof Jurewicz
8357326db0
Fix test command
2017-12-05 18:28:15 +01:00
Ethan Frey
26abd65e34
Add tests for repeat timer
2017-12-05 15:01:07 +01:00
Ethan Frey
53cdb6cf82
Demo throttle timer is broken
2017-12-05 14:49:16 +01:00
Petabyte Storage
4769719a4b
fix Errorf
2017-12-04 08:54:19 -08:00
Anton Kaliaev
d625020c90
Merge pull request #89 from tendermint/license
...
add license file (Fixes #87 ) [ci skip]
2017-12-04 10:39:56 -06:00
Anton Kaliaev
3af6044fdf
add license file ( Fixes #87 ) [ci skip]
2017-12-04 10:38:55 -06:00
Adrian Brink
e99e6ea0c7
Extend abci-cli to allow integration tests
...
This commit adds the basic test command 'abci-cli test' that will
allow developers of server for their own language to continuously test
their implementation.
2017-12-04 11:33:39 +01:00
Jae Kwon
17dc8a7449
SetDeleter/Batch separation
2017-12-03 21:44:48 -08:00
Ethan Buchman
48413b4839
Merge pull request #149 from tendermint/gogo-int
...
Gogo int
2017-12-02 11:52:50 -05:00
Ethan Buchman
2b804bb5a1
remove custom type int https://github.com/gogo/protobuf/issues/359
2017-12-02 11:47:02 -05:00
Ethan Buchman
9afd3da3b2
changelog
2017-12-02 01:56:21 -05:00
Ethan Buchman
82d56571b5
types: int32 with gogo int
2017-12-02 01:48:46 -05:00
Ethan Buchman
3890a2058f
types: IsOK()
2017-12-02 01:48:37 -05:00
Ethan Buchman
8831249e95
Merge pull request #147 from tendermint/int64
...
Int64
2017-12-01 16:12:20 -05:00
Ethan Buchman
026ff5e89f
Merge pull request #148 from tendermint/begin_block
...
Begin block
2017-12-01 16:11:49 -05:00
Petabyte Storage
ebc543ebe3
fix warnings
2017-12-01 09:51:37 -08:00
Ethan Buchman
fc90b2de1c
fix dummy test
2017-12-01 11:33:07 -05:00
Ethan Buchman
b20273439d
types: RequestBeginBlock includes absent and byzantine validators
2017-12-01 03:00:11 -05:00
Ethan Buchman
9272756c49
types: add note about ReadMessage having no cap
2017-12-01 03:00:11 -05:00
Ethan Buchman
3d3d1288d1
types: consolidate some file
2017-12-01 03:00:11 -05:00
Ethan Buchman
b39e768a1a
disable metalinter on CI
2017-12-01 02:50:17 -05:00
Ethan Buchman
b7a75ce8c3
update readme
2017-12-01 01:16:00 -05:00
Ethan Buchman
0ad7dea71f
uint64 -> int64
2017-12-01 00:41:07 -05:00
Ethan Buchman
b59fe60e65
abci-cli: prefix flag variables with flag
2017-12-01 00:35:14 -05:00
Ethan Buchman
d9d5e35ca5
Merge pull request #145 from tendermint/types-makeover
...
Types makeover
2017-11-30 20:19:21 -05:00
Ethan Buchman
5d2838ebab
fix from review
2017-11-30 20:17:06 -05:00
Ethan Buchman
ed393f9934
abci-cli: print OK if code is 0
2017-11-30 17:51:40 -05:00
Ethan Buchman
e3f6666ecc
update changelog; add rudis script for safe keeping
2017-11-30 17:48:05 -05:00
Ethan Buchman
f00a19eaad
fix tutorial output to remove code msg
2017-11-30 17:36:16 -05:00
Ethan Buchman
10031f57d5
fix grpc version; add log_level and some logging
2017-11-30 17:20:36 -05:00
Ethan Buchman
550d6a6081
shame: forgot to add new code pkg
2017-11-30 15:37:31 -05:00
Ethan Buchman
81e4effbdb
types: use data.Bytes directly in type.proto via gogo/protobuf. wow
2017-11-30 15:31:12 -05:00
Ethan Buchman
24fbe291ab
update glide; update services for new signature
2017-11-30 15:21:00 -05:00
Ethan Buchman
308cb8e454
use gogo/protobuf
2017-11-30 14:47:09 -05:00
Ethan Buchman
42a8e3240c
remove CodeType
2017-11-30 14:29:12 -05:00
Anton Kaliaev
22b491bb19
Merge pull request #144 from tendermint/feature/tags-helper-methods
...
add 2 helper methods for building KVPair(s)
2017-11-30 11:37:03 -06:00
Anton Kaliaev
20befcf6d6
add 2 helper methods for building KVPair(s)
2017-11-30 11:17:35 -06:00
Ethan Buchman
b89fd815a5
Merge pull request #141 from tendermint/feature/add-tags-to-dummy-app
...
include tags into dummy application DeliverTx response
2017-11-30 03:02:11 +00:00
Ethan Buchman
32a6545604
changelog [ci skip]
2017-11-30 03:02:48 +00:00
Ethan Buchman
3b994b4e8a
dummy: include app.key tag
2017-11-30 02:45:40 +00:00
Anton Kaliaev
72c3ea3872
include tags into dummy application DeliverTx response
...
Refs https://github.com/tendermint/tendermint/pull/835
2017-11-29 20:19:58 -06:00
Anton Kaliaev
21fb781989
Merge pull request #84 from tendermint/85-indexing
...
query#Conditions for indexing
2017-11-29 12:49:38 -06:00
Anton Kaliaev
c9694b1ba1
fix warnings
2017-11-29 12:44:16 -06:00
Anton Kaliaev
3822727981
add Conditions function
...
Refs https://github.com/tendermint/tendermint/pull/835
2017-11-29 12:44:16 -06:00
Anton Kaliaev
850fd24ee9
Merge pull request #85 from tendermint/85-indexing-2
...
IntInSlice and StringInSlice functions
2017-11-29 12:37:33 -06:00
Anton Kaliaev
33abe87c5b
IntInSlice and StringInSlice functions
...
Refs https://github.com/tendermint/tendermint/pull/835
2017-11-29 12:18:03 -06:00
Ethan Frey
468c4188c1
Merge pull request #51 from tendermint/keystore
...
Keybase
2017-11-29 15:25:59 +01:00
Ethan Buchman
1e12754b3a
Merge pull request #75 from tendermint/45-change-common-start-signature
...
change common start signature
2017-11-29 06:05:50 +00:00
Ethan Buchman
4d991acae0
common: comments for Service
2017-11-29 05:16:15 +00:00
Ethan Buchman
ddd141c1c5
Merge branch 'develop' into 45-change-common-start-signature
2017-11-29 05:08:12 +00:00
Ethan Buchman
57fea1335a
Makefile and linter
2017-11-29 05:08:05 +00:00
Ethan Buchman
5c29adc081
Merge pull request #139 from tendermint/sunset-tmlibs-process
...
tests: sunset tmlibs/process.Process
2017-11-28 08:04:27 +00:00
Ethan Buchman
67a81c13e2
run linter on make test
2017-11-28 07:55:07 +00:00
Ethan Buchman
bb141794c8
client: use vars for retry intervals
2017-11-28 07:47:51 +00:00
Ethan Buchman
9ed5787b6a
tests: fix ensureABCIIsUp
2017-11-28 07:38:01 +00:00
Emmanuel Odeke
6231652e87
tests: sunset tmlibs/process.Process
...
Updates https://github.com/tendermint/tmlibs/issues/81
No longer using tmlibs/process.Process as we deemed
it racy and would incur a maintenance cost yet not
used anywhere else but in these tests and not in actual
code.
2017-11-27 22:50:31 -07:00
Anton Kaliaev
c2fcc093b2
remove bool from Service#Reset
2017-11-27 23:42:36 -06:00
Anton Kaliaev
f75339264f
Merge pull request #83 from tendermint/gut-process
...
remove package process
2017-11-27 22:37:35 -06:00
Emmanuel Odeke
e07ad01f62
remove package process
...
Fixes https://github.com/tendermint/tmlibs/issues/81
That package is untested and racy, and not used except in
a test, but even that's now gutted with
https://github.com/tendermint/abci/pull/139
so the general consensus is that we sunset this package.
2017-11-27 21:24:46 -07:00
Anton Kaliaev
eb31c04f47
Merge tag 'v0.4.1' into develop
...
Tagged 0.4.1 release
2017-11-27 21:38:24 -06:00
Anton Kaliaev
b854baa1fc
Merge branch 'release/0.4.1'
2017-11-27 21:38:12 -06:00
Anton Kaliaev
3244f73f32
update version
2017-11-27 21:37:39 -06:00
Anton Kaliaev
4e705a3157
update changelog
2017-11-27 21:37:15 -06:00
Ethan Buchman
460c045fcc
Merge pull request #130 from tendermint/feature/tags-in-deliver-tx
...
Tags in DeliverTx response
2017-11-27 22:41:57 +00:00
Anton Kaliaev
a0bf6dc1a1
move comment
2017-11-27 16:28:34 -06:00
Ethan Buchman
0981c174cc
update README for CheckTx Gas and Fee
2017-11-27 22:28:41 +00:00
Ethan Buchman
ab51bdef99
types.pb.go isnt linted. use nolint :(
2017-11-27 20:53:03 +00:00
Ethan Buchman
26d967af7e
linter
2017-11-27 20:42:30 +00:00
Ethan Buchman
5a46675185
minor things
2017-11-27 20:27:18 +00:00
Ethan Buchman
e9094fbee3
update changelog
2017-11-27 20:19:04 +00:00
Ethan Buchman
e08885e3cd
minor fix
2017-11-27 20:16:35 +00:00
Ethan Buchman
7dc5b746ac
types: add gas and fee fields to CheckTx
2017-11-27 20:10:11 +00:00
Ethan Buchman
fb612e5a7b
fixup tests
2017-11-27 19:52:06 +00:00
Ethan Buchman
d3bac7a6fe
clist: reduce numTimes in test
2017-11-27 19:49:30 +00:00
Ethan Buchman
c7f54fb56c
everything takes Request, returns Response; expect DeliverTx/CheckTx/Commit
2017-11-27 19:04:21 +00:00
Anton Kaliaev
67d2a5f66d
set Code to OK in ResponseQuery in BaseApplication
...
See https://github.com/tendermint/abci/pull/130#discussion_r152713220
2017-11-24 16:45:36 -06:00
Anton Kaliaev
9b30fab4fc
preserve behaviour of BaseApplication
2017-11-22 19:38:28 -06:00
Anton Kaliaev
03fafeec2f
fix formatting of panicf function
2017-11-22 19:38:04 -06:00
Anton Kaliaev
0176a834d1
refactor code
2017-11-22 19:37:51 -06:00
Anton Kaliaev
cbf347e2aa
add comment for Client interface [ci skip]
2017-11-22 19:07:36 -06:00
Anton Kaliaev
2cfad8523a
test HumanCode
2017-11-22 18:24:53 -06:00
Anton Kaliaev
1726e82865
add IsErr and Error method for ResultQuery
2017-11-22 18:19:41 -06:00
Anton Kaliaev
afb7feeea2
update CHANGELOG
2017-11-22 17:51:36 -06:00
Anton Kaliaev
91efacfabc
remove types.Result
2017-11-22 17:44:39 -06:00
Anton Kaliaev
f01f2bbf3a
DeliverTxSync/CheckTxSync/CommitSync now return error as well
2017-11-22 17:34:00 -06:00
Anton Kaliaev
01252e8cc8
mark Result as deprecated
2017-11-22 16:18:06 -06:00
Anton Kaliaev
5fd83b3eee
implement error interface for ResponseDeliverTx/CheckTx/Commit
2017-11-22 16:17:34 -06:00
Anton Kaliaev
7868a3358f
gather test coverage
2017-11-21 19:07:39 -06:00
Anton Kaliaev
52ec4efe27
retire test_integrations in favor of just make test
2017-11-21 18:11:23 -06:00
Anton Kaliaev
5be9c50b47
fix megacheck warning
2017-11-21 17:53:48 -06:00
Anton Kaliaev
f6a79dd7c5
add interface assertions for all clients
2017-11-21 17:50:06 -06:00
Anton Kaliaev
e6fdc98aeb
update changelog
2017-11-21 17:44:22 -06:00
Anton Kaliaev
fbe7234639
remove Result from the client package
...
plus make Client interface more consistent. All *Sync functions now
return an error as a second return param. Deliver/Check/Commit use Code
to indicate errors and have IsErr() func defined on ResponseXYZ structs.
2017-11-21 17:44:13 -06:00
Anton Kaliaev
8e6269ce93
update README
2017-11-21 15:24:29 -06:00
Anton Kaliaev
3a3d508e5c
CheckTx and DeliverTx return ResponseCheckTx and ResponseDeliverTx respectively
...
Commit now returns ResponseCommit
2017-11-20 20:36:42 -06:00
Anton Kaliaev
92801dbd72
[dockerfile] install psmisc for tests
2017-11-20 18:30:10 -06:00
Anton Kaliaev
fc7db13fa8
remove tags from CheckTx
...
add value_type field to KVPair
2017-11-20 18:21:59 -06:00
Anton Kaliaev
02399071ff
add ldconfig cmd to Dockerfile
2017-11-20 18:17:56 -06:00
Anton Kaliaev
29c1cd03ea
[make install_protoc] fix folder name
2017-11-20 17:09:18 -06:00
Anton Kaliaev
3cbf44058d
no need for protoc in make all since we have types.pb.go generated
2017-11-20 16:56:57 -06:00
Anton Kaliaev
8b71e47002
add linter for proto files ( Fixes #128 )
2017-11-20 16:56:57 -06:00
Anton Kaliaev
76bd68f881
add docker commands to Makefile
2017-11-20 16:56:57 -06:00
Anton Kaliaev
33b51378f2
reformat types.proto
2017-11-20 16:56:57 -06:00
Anton Kaliaev
bb0d7e9526
add tags field to DeliverTx and CheckTx
2017-11-20 16:56:57 -06:00
Anton Kaliaev
f07c300c14
add proto section to .editorconfig
2017-11-20 16:56:57 -06:00
Anton Kaliaev
87072d3810
add Dockerfile for development
2017-11-20 16:56:56 -06:00
Anton Kaliaev
480e4e4444
install protoc
2017-11-20 16:56:56 -06:00
Ethan Buchman
135a1a7cd7
db: sort keys for memdb iterator
2017-11-20 03:06:18 +00:00
Ethan Frey
086e1f6508
Make vetshadow and zach happy
2017-11-15 13:57:17 +01:00
Anton Kaliaev
bee7c5c7aa
Merge tag 'v0.7.1' into develop
...
Tagged 0.7.1 release
2017-11-14 13:10:35 -06:00
Anton Kaliaev
76ef8a0697
Merge branch 'release/0.7.1'
2017-11-14 13:10:17 -06:00
Anton Kaliaev
bac924e399
update version
2017-11-14 13:09:27 -06:00
Anton Kaliaev
f808dd5596
update CHANGELOG
2017-11-14 13:09:19 -06:00
Anton Kaliaev
a5f624174d
Merge pull request #135 from tendermint/server/minor-refactor
...
server: minor refactor
2017-11-14 13:02:05 -06:00
Anton Kaliaev
bf34c378e9
Merge pull request #136 from tendermint/update-go-version-and-deps
...
Update go version and deps
2017-11-14 12:58:35 -06:00
Anton Kaliaev
1d49453ffb
fix integration tests ( Fixes #131 )
2017-11-14 12:53:40 -06:00
Anton Kaliaev
f2bf7d1b2d
update go version to 1.9.2
2017-11-14 12:26:01 -06:00
Anton Kaliaev
a52b98c70e
update deps
2017-11-14 12:25:52 -06:00
Ethan Buchman
3bd8782ab2
server: minor refactor
2017-11-14 17:10:22 +00:00
Ethan Buchman
3972635c23
Merge pull request #129 from paulrd/patch-1
...
Wrong 'error' variable is being read in socket_server.go
2017-11-14 16:54:49 +00:00
Ethan Frey
2649c056cd
Minor cleanup
2017-11-13 14:54:14 +01:00
Ethan Frey
9d78be41b5
Update tmlibs to sdk-develop, fix broken test
2017-11-13 14:41:00 +01:00
Ethan Frey
2d4544d6ce
Tests compile
2017-11-13 14:36:43 +01:00
Ethan Frey
4173d1031e
go build compiles
2017-11-13 14:36:43 +01:00
Ethan Frey
9ef978c5ec
Fix errors except for es missing
2017-11-13 14:36:43 +01:00
Ethan Frey
946c9c573e
Handle generating keys
2017-11-13 14:36:43 +01:00
Ethan Frey
ac841a6124
Fixed imports
2017-11-13 14:36:43 +01:00
Jae Kwon
a2583e2783
Draft of suggested changes
2017-11-13 14:36:43 +01:00
Anton Kaliaev
7dbf69df7d
Merge pull request #132 from tendermint/use-makefile-commands-in-readme
...
use Makefile commands in readme [ci skip]
2017-11-12 22:31:55 -05:00
Anton Kaliaev
64c756de47
use Makefile commands in readme [ci skip]
2017-11-12 22:30:41 -05:00
Jae Kwon
56e51bc113
CacheWrap() -> CacheDB() CacheDB
2017-11-11 17:37:30 -05:00
Anton Kaliaev
2442a0a698
Merge pull request #78 from tendermint/editorconfig
...
add .editorconfig
2017-11-11 11:32:59 -05:00
Anton Kaliaev
4ea6340f1a
add .editorconfig
2017-11-11 11:25:30 -05:00
Jae Kwon
8481c49c82
CacheDB ( #67 )
...
* Add CacheDB & SimpleMap
* Generic memBatch; Fix cLevelDB tests
* CacheWrap() for CacheDB and MemDB
* Change Iterator to match LeviGo Iterator
* Fixes from review
* cacheWrapWriteMutex and some race fixes
* Use tmlibs/common
* NewCWWMutex is exposed. DB can be CacheWrap'd
* Remove GetOK, not needed
* Fsdb (#72 )
* Add FSDB
* Review fixes from Anton
* Review changes
* Fixes from review
2017-11-09 17:42:32 -05:00
Anton Kaliaev
0f96d5d1f6
Merge pull request #126 from tendermint/124-version-command
...
version command
2017-11-09 17:08:02 -05:00
Paul
43c64163d8
Update socket_server.go
...
This is likely related to #125
2017-11-09 13:16:35 -04:00
Anton Kaliaev
10e1233f14
fix megacheck issues
2017-11-08 17:29:15 -05:00
Anton Kaliaev
430c49ea14
update deps
2017-11-08 17:20:20 -05:00
Anton Kaliaev
5efe88cd10
simplify Makefile install and build commands
2017-11-08 17:20:20 -05:00
Anton Kaliaev
ecb1f02f77
add version cmd (Refs #124 )
2017-11-08 17:20:10 -05:00
Anton Kaliaev
176c2ceed6
Merge pull request #77 from tendermint/18-unsupported-value-type
...
encode complex types as "%+v"
2017-11-07 21:29:54 -05:00
Anton Kaliaev
798848320f
Merge pull request #76 from tendermint/29-log-logger-errors
...
log logger's errors
2017-11-07 21:29:35 -05:00
Anton Kaliaev
69447564b8
encode complex types as "%+v" (Refs #18 )
2017-11-06 15:44:21 -05:00
Anton Kaliaev
4b989151ed
log logger's errors (Refs #29 )
2017-11-06 14:18:42 -05:00
Ethan Buchman
b4f04f196c
Merge pull request #49 from tendermint/pubKey-invalid-data-returns-empty-pubKey
...
PubKeyFromBytes: return zero value PubKey on error
2017-11-06 13:05:06 -06:00
Anton Kaliaev
e6164d4052
change service#Stop to be similar to Start
2017-11-06 12:47:23 -05:00
Anton Kaliaev
4123d54bf6
change service#Start to return just error (Refs #45 )
...
```
@melekes
yeah, bool is superfluous
@ethanfrey
If I remember correctly when I was writing test code, if I call Start() on a Service that is already running, it returns (false, nil). Only if I try to legitimately start it, but it fails in startup do I get an error.
The distinction is quite important to make it safe for reentrant calls. The other approach would be to have a special error type like ErrAlreadyStarted, then check for that in your code explicitly. Kind of like if I make a db call in gorm, and get an error, I check if it is a RecordNotFound error, or whether there was a real error with the db query.
@melekes
Ah, I see. Thanks. I must say I like ErrAlreadyStarted approach more (not just in Golang)
```
2017-11-06 12:18:04 -05:00
Anton Kaliaev
ac0cf0b2e2
Merge pull request #74 from tendermint/73-undefined-syscall-kill
...
use os.Process#Kill (Fixes #73 )
2017-11-04 09:07:03 -05:00
Anton Kaliaev
49d75e223e
use os.Process#Kill ( Fixes #73 )
2017-11-04 08:14:47 -05:00
Anton Kaliaev
b658294a13
use assert.Contains in cmap_test
2017-11-04 00:10:59 -05:00
Wolf
88481fc363
Make iterating over keys possible ( #63 )
...
* Make iterating over keys possible
* add test for cmap
- test Keys() and Values() respectively
* one cmap per test-case
2017-11-04 00:06:20 -05:00
Anton Kaliaev
0f555f8d2c
Merge pull request #71 from tendermint/69-read-impl-and-tests
...
[autofile] test GroupReader more extensively (Refs #69 )
2017-11-04 00:02:02 -05:00
Anton Kaliaev
d8dd497069
fix metalinter errors
2017-10-30 13:01:18 -05:00
Anton Kaliaev
668698584d
[autofile] test GroupReader more extensively (Refs #69 )
2017-10-30 12:48:51 -05:00
Emmanuel Odeke
b0cf4b4757
PubKeyFromBytes: return zero value PubKey on error
...
Fixes https://github.com/tendermint/go-crypto/issues/48 .
This previously skewed up my fuzzing tests so ensure
that on error we return the zero value PubKey.
2017-10-28 14:11:22 -07:00
Ethan Buchman
dd20358a26
Merge pull request #47 from tendermint/release-v0.4.1
...
Release v0.4.1
2017-10-27 22:28:35 -04:00
Ethan Buchman
d2b1a7096e
changelog
2017-10-27 22:17:34 -04:00
Ethan Buchman
377d3c7e11
fix from revert
2017-10-27 22:04:22 -04:00
Ethan Buchman
6405618220
Revert "Upgrade keys to use bcrypt with salts ( #38 )"
...
This reverts commit 8e7f0e7701
.
2017-10-27 22:02:44 -04:00
Ethan Buchman
87badb090f
Revert "Parameterize and lower bcrypt cost"
...
This reverts commit dfc4cdd2d7
.
2017-10-27 21:58:02 -04:00
Ethan Buchman
d1f00be7a0
Merge pull request #46 from tendermint/develop
...
Develop
2017-10-27 12:57:37 -04:00
Ethan Buchman
8630b724b2
version and changelog
2017-10-27 12:57:26 -04:00
Ethan Frey
ad31f6a953
osx + hid = <3
2017-10-27 18:46:21 +02:00
Ethan Buchman
dc33aad9b4
Merge pull request #122 from tendermint/develop
...
Develop
2017-10-27 12:25:50 -04:00
Ethan Buchman
c9612f094b
glide
2017-10-27 12:13:16 -04:00
Ethan Buchman
d973cb5df9
changelog and version
2017-10-27 12:12:34 -04:00
Ethan Buchman
d9525c0fb6
Merge pull request #70 from tendermint/develop
...
Develop
2017-10-27 12:05:43 -04:00
Ethan Buchman
944d36ab00
changelog
2017-10-27 12:04:31 -04:00
Ethan Buchman
b14c996698
update changelog
2017-10-27 11:52:10 -04:00
Ethan Buchman
092eb701c7
cmn: Kill
2017-10-27 11:01:40 -04:00
Ethan Buchman
66de53292e
Merge pull request #117 from tendermint/cobra-not-urfave
...
use spf13/cobra instead of urfave/cli
2017-10-27 02:47:21 -04:00
Ethan Buchman
42145a82bd
version and changelog
2017-10-26 20:57:33 -04:00
Ethan Buchman
57346134a5
keys: transactions.go -> types.go
2017-10-26 16:43:32 -04:00
Ethan Frey
db5603e374
Merge pull request #45 from tendermint/bugfix/nano-hid
...
Bugfix: ledger nano/hid compiles on osx/golang1.9
2017-10-26 06:52:52 -07:00
Zach Ramsay
f013ee5cf9
cli: use cobra's new ExactArgs() feature
2017-10-26 08:51:43 -04:00
Zach Ramsay
461191d2f7
cli: clean up error handling
2017-10-26 08:37:42 -04:00
Zach
b5bdb6ec54
Merge pull request #119 from tendermint/93-fix-console-output
...
fix console output
2017-10-26 07:58:16 -04:00
Ethan Frey
5d8890530a
Update glide deps, nano/hid for osx/golang1.9
2017-10-26 12:00:42 +02:00
Ethan Frey
c496dea2e5
Merge pull request #42 from tendermint/feature/bcrypt-usability
...
Bcrypt usability
2017-10-26 11:59:32 +02:00
Ethan Buchman
a0e38dc583
dummy: verify pubkey is go-crypto encoded in DeliverTx. closes #51
2017-10-25 23:34:37 -04:00
Ethan Buchman
4884747eb7
tests: add simple client/server test with no addr prefix
2017-10-25 23:23:23 -04:00
Ethan Buchman
b6a4ca6b3c
remove testutil
2017-10-25 23:15:57 -04:00
Ethan Buchman
6c41ec65bc
server: use cmn.ProtocolAndAddress
2017-10-25 23:04:20 -04:00
Emmanuel Odeke
3df2ca128d
make PrivateKey + Signature comparisons use constant time comparisons
...
Fixes https://github.com/tendermint/go-crypto/issues/43
Avoid susceptibility to timing/side channel attacks by ensuring
that private key and signature comparisons use
`subtle.ConstantTimeCompare`
instead of
`bytes.Equal`
2017-10-25 19:56:13 -07:00
Ethan Buchman
b30e3ba26d
Merge pull request #65 from tendermint/573-wal-issues-2
...
[autofile] Support for the new WAL format
2017-10-25 22:00:36 -04:00
Anton Kaliaev
0a652499ea
Merge pull request #68 from tendermint/bugfix/gopath-executes-go
...
make GoPath a function
2017-10-25 11:12:13 +04:00
Anton Kaliaev
bcf15e527d
make GoPath a function
...
otherwise it could try to execute go binary and panic if no go binary
found. See https://github.com/tendermint/tendermint/issues/782
2017-10-25 11:01:52 +04:00
Ethan Buchman
93bd2081dd
Merge pull request #66 from tendermint/codecov
...
add codecov
2017-10-24 23:05:32 -04:00
Anton Kaliaev
f99c73502c
add codecov
2017-10-24 23:36:10 +04:00
Anton Kaliaev
103fee6192
add tests for autofile group Write, reader#Read
2017-10-24 23:20:17 +04:00
Anton Kaliaev
81591e288e
fix metalinter warnings
2017-10-24 23:19:53 +04:00
Ethan Frey
dfc4cdd2d7
Parameterize and lower bcrypt cost
2017-10-24 12:19:45 +02:00
Ethan Frey
0a5b1d979a
Merge pull request #37 from tendermint/nano
...
Nano Support
2017-10-24 12:18:45 +02:00
Anton Kaliaev
d4c6a68e58
Merge pull request #64 from silasdavis/event-cache
...
Fix zeroed buffer getting flushed to the empty event
2017-10-24 14:16:18 +04:00
Ethan Frey
0219ba2a63
Fix bug introduced by metalinting...
2017-10-24 12:14:20 +02:00
Ethan Frey
69a7b389b8
Removed keys/server as it is now in cosmos-sdk
2017-10-24 11:59:44 +02:00
Ethan Frey
6f6bbf718e
Fix metalinter complaints
2017-10-24 11:56:37 +02:00
Ethan Frey
2d04544088
Addressed Buckys PR review comments
2017-10-24 11:38:06 +02:00
Ethan Frey
4a2c63f5e1
Update ledger names to specify ed25519
2017-10-24 11:38:06 +02:00
Ethan Frey
9601e48ab4
Improve error message
2017-10-24 11:38:06 +02:00
Ethan Frey
61d1bdb5ed
Test error handling, load without ledger
2017-10-24 11:38:06 +02:00
Ethan Frey
9afceb7ee8
ledger pubkey serializes properly, better load checks
2017-10-24 11:38:06 +02:00
Ethan Frey
2490952515
nano validates key on load
2017-10-24 11:38:06 +02:00
Ethan Frey
bce88a20df
Enable privkey validity checking on load
2017-10-24 11:38:06 +02:00
Ethan Frey
1b8d52bb82
Rename NameLedger to NameLedgerEd25519
2017-10-24 11:38:06 +02:00
Ethan Frey
ae078ee915
Generate/recover can return error, not panic on ledger
2017-10-24 11:38:06 +02:00
Ethan Frey
085d72d212
Cleanup nano calls, cannot run parallel test on one hardware device
2017-10-24 11:38:06 +02:00
Ethan Frey
91fccb8b14
Add test for cryptostore working with ledger
2017-10-24 11:38:06 +02:00
Ethan Frey
88475230c4
Re-enabled crypostore example usage
2017-10-24 11:38:06 +02:00
Ethan Frey
34b9309f24
Re-enable signing tests with cryptostore
2017-10-24 11:38:06 +02:00
Ethan Frey
8c98c4fdf4
Add nano ledger to key manager
2017-10-24 11:38:06 +02:00
Ethan Frey
0383feab49
Add and test serialization of ledger privkey
2017-10-24 11:38:06 +02:00
Ethan Frey
3edeb0cd45
Ledger caches pubkey, works with newer firmware
2017-10-24 11:38:06 +02:00
Ethan Frey
081f21af11
Add glide version for ledger drivers
2017-10-24 11:38:06 +02:00
Ethan Frey
008dba3af8
Test ledger calls
2017-10-24 11:38:06 +02:00
Ethan Frey
623bd803c2
write code to actually call ledger app
2017-10-24 11:38:06 +02:00
Ethan Frey
265e261c63
Add more test cases from running the ledger
2017-10-24 11:38:06 +02:00
Ethan Frey
7c5a10a7d4
Add tests for pub/priv key validation
2017-10-24 11:38:06 +02:00
Ethan Frey
06d74b24dd
Wrote PrivKey/PubKey for ledger
2017-10-24 11:38:06 +02:00
Ethan Frey
74878ee313
Update code to work with current nano implementation
2017-10-24 11:38:06 +02:00
Ethan Frey
8220d59178
Work on using returned bytes as crypto keys
2017-10-24 11:38:06 +02:00
Ethan Frey
0781c12ede
Message encoding for nano
2017-10-24 11:38:06 +02:00
Zach Ramsay
4479e95709
console: fix tests
2017-10-23 19:54:38 -04:00
Zach Ramsay
36de70be10
console: fix output, closes #93
2017-10-23 19:35:02 -04:00
Ethan Buchman
a6e6b58c6b
Merge pull request #41 from tendermint/metalinter
...
add metalinter to Makefile & apply some fixes
2017-10-23 19:32:07 -04:00
Zach Ramsay
3330cb4856
cleanup
2017-10-23 17:27:59 -04:00
Zach Ramsay
631844895f
fixes
2017-10-23 17:18:46 -04:00
Zach Ramsay
f9e14ad61b
disable PersistenPreRun for counter/dummy
2017-10-23 17:18:46 -04:00
Zach Ramsay
df5d9ac1bb
consolidate counter/dummy into the binary, #95
2017-10-23 17:18:46 -04:00
Zach Ramsay
56f7d9627f
update deps
2017-10-23 17:18:46 -04:00
Zach Ramsay
f67e43625b
Makefile: fix linter
2017-10-23 17:17:57 -04:00
Zach Ramsay
9883013adf
use cobra, closes #101
2017-10-23 17:17:05 -04:00
Silas Davis
0eff425bc7
fix zeroed buffer getting flushed to the empty event
2017-10-23 18:52:31 +01:00
Zach Ramsay
47d3fa4741
linting: a few fixes
2017-10-23 08:30:18 -04:00
Ethan Frey
bb9bb4aa46
Merge pull request #116 from tendermint/feature/merkleeyes-to-iavl
...
merkleeyes to iavl
2017-10-23 14:26:12 +02:00
Ethan Frey
446e50ca9e
Moved RandVal into test helper functions, as needed in other repos for testing
2017-10-23 14:20:15 +02:00
Ethan Frey
e7ebf62092
Remove empty check after iavl fixup
2017-10-23 14:08:36 +02:00
Anton Kaliaev
21b2c26fb1
GroupReader#Read: return io.EOF if file is empty
2017-10-23 13:02:14 +04:00
Anton Kaliaev
c75ddd0fa3
return err if empty slice given
2017-10-23 13:02:02 +04:00
Ethan Buchman
a4443ddb0c
update persistent dummy for versioned iavl
2017-10-23 00:06:50 -04:00
Ethan Buchman
8e031b367f
Merge branch 'develop' into metalinter
2017-10-22 19:53:39 -04:00
Anton Kaliaev
35e81018e9
add MinIndex method to Group
2017-10-20 13:09:51 +04:00
Anton Kaliaev
aace56018a
add Read method to GroupReader
2017-10-20 12:38:45 +04:00
Ethan Frey
5162ed1b2b
Remove gotype from metalinter so it passes (need newer go on circleci)
2017-10-19 15:21:03 +02:00
Ethan Frey
7aa00e9ddd
Fix metalinter errors
2017-10-19 14:48:07 +02:00
Ethan Frey
46e1f1ae65
Cleaup based on Antons PR comments
2017-10-19 14:43:34 +02:00
Ethan Frey
d236e0eef9
Fix trailing whitespace in tutorial test
2017-10-19 14:38:30 +02:00
Ethan Frey
bae4e4acce
Fix up commits, debug cli tests
2017-10-19 14:38:29 +02:00
Ethan Frey
9aff9f94dd
dummy app now uses iavl
2017-10-19 14:38:29 +02:00
Ethan Buchman
5231003bfc
Merge pull request #115 from tendermint/socket_client_StopOnErrorDeadlock-fix
...
socketClient: fix and test for StopForError deadlock
2017-10-18 20:54:42 -04:00
Emmanuel Odeke
46d94f8325
socketClient: fix and test for StopForError deadlock
...
Fixes https://github.com/tendermint/abci/issues/114 .
Fix and test for StopForError deadlock due to accidental
Mutex misuse. The test should return instantenously if
StopForError works without erraneous contention, lest it regressed.
2017-10-17 22:08:22 -06:00
Anton Kaliaev
45095e83e7
add Write method to autofile/Group
2017-10-17 16:48:44 +04:00
Anton Kaliaev
498fb1134a
write docs for autofile/group
2017-10-17 16:48:34 +04:00
Anton Kaliaev
8e5266a9ef
Merge pull request #62 from tendermint/tests-fix
...
fix goLevelDBIterator
2017-10-17 16:06:41 +04:00
Anton Kaliaev
1f15ade60d
Merge pull request #61 from tendermint/60-cmn-gopath-needs-a-default
...
call go env GOPATH if env var is not found (Refs #60 )
2017-10-17 12:26:20 +04:00
Anton Kaliaev
0b22b27bbb
avoid infinite recursion by proxying to iterator
...
```
WARNING: staticcheck, gosimple and unused are all set, using megacheck instead
db/go_level_db.go:126:15⚠️ infinite recursive call (SA5007) (megacheck)
db/go_level_db.go:135:17⚠️ infinite recursive call (SA5007) (megacheck)
db/mem_db.go:106:2⚠️ redundant return statement (S1023) (megacheck)
```
https://circleci.com/gh/tendermint/tmlibs/220
Also remove unnecessary return statement
2017-10-17 11:01:46 +04:00
Anton Kaliaev
cd2ad19db4
Merge pull request #57 from tendermint/feature/improve-db-interface
...
WIP: Improve db interface
2017-10-13 18:31:05 +04:00
Alexis Sellier
6b1e3bcee3
Add comments about copying
2017-10-13 13:03:43 +02:00
Adrian Brink
8e7f0e7701
Upgrade keys to use bcrypt with salts ( #38 )
...
This commit adds salts to the library using bcrypt.
2017-10-12 14:26:59 +02:00
Anton Kaliaev
7166252a52
add codeowners file [ci skip]
2017-10-11 12:48:05 +04:00
Anton Kaliaev
35e38e8932
call go env GOPATH if env var is not found (Refs #60 )
2017-10-11 12:42:54 +04:00
Zach Ramsay
32dec98c1c
example: fix func suffix
2017-10-10 17:33:51 -04:00
Ethan Buchman
1775be1cd9
remove some assertXxx funcs
2017-10-05 22:19:48 -04:00
Zach Ramsay
796024f42f
linting: little more fixes
2017-10-04 18:27:35 -04:00
Zach Ramsay
87cb57c3e5
linting: fixup some stuffs
2017-10-04 18:16:48 -04:00
Zach Ramsay
7921fb0c05
linter: last fixes & add to circle
2017-10-04 17:53:56 -04:00
Zach Ramsay
fe66a683bc
linter: add metalinter to Makefile & apply some fixes
2017-10-04 17:53:56 -04:00
Ethan Buchman
7dd6b3d3f8
Merge pull request #53 from tendermint/metalinter
...
add metalinter to CI and address some lint warnings
2017-10-04 00:21:24 -04:00
Ethan Buchman
c8805fd7de
metalinter fixes from review
2017-10-04 00:13:58 -04:00
Zach Ramsay
cf49ba876f
linter: couple fixes
2017-10-03 17:23:14 -04:00
Anton Kaliaev
15cd7fb1e3
fix comment [ci skip]
2017-10-04 00:06:46 +04:00
Ethan Buchman
096dcb90e6
Merge pull request #59 from tendermint/develop
...
Develop
2017-10-02 23:29:35 -04:00
Ethan Buchman
e9c83b3005
version and changelog
2017-10-02 23:26:45 -04:00
Ethan Buchman
a55ec427bd
Merge pull request #56 from tendermint/memdb-fix-close
...
db: fix MemDB.Close
2017-10-02 22:38:19 -04:00
Ethan Buchman
0948343a6f
autofile: ensure file is open in Sync
2017-10-02 14:17:16 -04:00
Alexis Sellier
e9e6ec3a2c
Implement Key/Value on Iterator for GoLevelDB
...
This is needed because leveldb reuses the keys on each iteration.
In our wrapper, we copy the key/value so that it is safe to store.
2017-09-28 17:43:47 +02:00
Alexis Sellier
219d4e8427
Add IteratorPrefix method to Iterator
2017-09-28 17:35:01 +02:00
Alexis Sellier
296d223545
Add Release & Error methods to Iterator
...
We need this to properly support LevelDB backend, which needs
to be released if we don't want to leak memory.
2017-09-28 17:26:24 +02:00
Emmanuel Odeke
8be8127351
db: fix MemDB.Close
...
Fixes https://github.com/tendermint/tmlibs/issues/55
MemDB previously mistakenly set the actual DB pointer to nil
although that side effect is not visible to the outside world
since p is an identifier within the scope of just that function
call. However, @melekes and I had a discussion in which we
came to the conclusion that Close for an in-memory DB should
instead be a noop and not cause any data loss. See the
discussion on https://github.com/tendermint/tmlibs/pull/56 .
2017-09-26 15:29:51 -06:00
Emmanuel Odeke
0418d32276
Merge branch 'doc-file-started' into develop
2017-09-22 20:46:10 -06:00
Ethan Buchman
9997e3a3b4
Merge pull request #54 from tendermint/develop
...
common: WriteFileAtomic use tempfile in current dir
2017-09-22 13:23:12 -04:00
Ethan Buchman
35838b6af8
changeloge, version
2017-09-22 13:22:02 -04:00
Ethan Buchman
3d98504c4c
common: WriteFileAtomic use tempfile in current dir
2017-09-22 13:20:13 -04:00
Zach Ramsay
2681f32bdd
circle: add metalinter to test
2017-09-22 12:35:52 -04:00
Zach Ramsay
3c57c24921
linting: next round of fixes
2017-09-22 12:14:27 -04:00
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
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
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
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
Anton Kaliaev
246082368a
add changelog entry [ci skip]
2017-09-20 02:49:51 -04:00
Anton Kaliaev
65a07b80a3
change logger interface to not return errors (Refs #50 )
...
See https://github.com/go-kit/kit/issues/164 for discussion of why
kitlog returns an error.
```
Package log is designed to be used for more than simple application info/warning/error logging; it's suitable for log-structured data in an e.g. Lambda architecture, where each invocation is important. I agree with you that if we were doing only application logging the error would be more noise than signal. But the scope of the package is larger than that.
```
Since we are doing only application logging and we're not checking
errors, it is safe to get rid them.
2017-09-20 02:49:51 -04:00
Ethan Buchman
9a2438e0dc
common: Fingerprint comment
2017-09-20 02:49:51 -04:00
Ethan Buchman
f279171a28
use request structs for InitChain and BeginBlock
2017-09-18 15:51:48 -04:00
Ethan Buchman
4e955434aa
Merge pull request #48 from tendermint/log_tweak
...
Log tweak
2017-09-16 00:40:44 -04:00
Emmanuel Odeke
f6a2509764
doc.go file started
...
Fixes #35
Updates https://github.com/tendermint/coding/issues/27
Started a doc.go file to provide an overview/high level
dive into the functionality of this repo.
Also added an example_test.go file in which we can
put end-to-end code examples/actual usage patterns
that can be copied and pasted and will always have to
compile when tests are run to ensure that we don't regress.
2017-09-15 17:35:33 -06:00
Ethan Frey
50e7c07817
Use longer checksum again
2017-09-13 14:03:28 +02:00
Ethan Buchman
c8b6d29161
version bump and changelog
2017-09-12 19:31:00 -04:00
Ethan Buchman
09447fc059
Merge pull request #34 from tendermint/feature/remove-cli
...
Removed all cli as it goes into cosmos-sdk
2017-09-12 14:48:29 -04:00
Jae Kwon
3a36776d4a
Reorder file for grokability
2017-09-10 18:45:20 -07:00
Ethan Frey
21f6b346a3
Removed all cli as it goes into cosmos-sdk
2017-09-08 20:26:56 +02:00
Ethan Frey
ad42794b2e
Merge pull request #33 from tendermint/feature/support-fundraiser-seeds
...
Import unencrypted private key
2017-09-08 20:23:44 +02:00
Ethan Frey
e283f580b7
Test importing raw private key
2017-09-08 20:14:51 +02:00
Ethan Frey
54260853d5
encoder accepts empty string as unencoded bytes
2017-09-08 20:14:51 +02:00
Peng Zhong
a072429659
Fix blog post link for ABCI
...
We moved our blog to Medium.
2017-09-07 13:32:56 +08:00
Ethan Buchman
1bc8de4caa
remove String() from Signature. closes #29
2017-09-06 02:32:37 -04:00
Ethan Buchman
f1094f760b
types: remove redundant version file
2017-09-06 02:22:59 -04:00
Ethan Buchman
e86930c431
Merge pull request #106 from tendermint/develop
...
Develop
2017-09-06 02:22:01 -04:00
Ethan Buchman
bfec1ff1cd
bump version to 0.3.0
2017-08-25 16:58:59 -04:00
Ethan Buchman
bdfd978b68
update changelog
2017-08-25 16:58:37 -04:00
Ethan Buchman
8f1dea89f5
db: fix memdb iterator
2017-08-25 16:35:37 -04:00
Ethan Buchman
fe08fc00c8
Merge pull request #34 from orijtech/develop
...
common/IsDirEmpty: do not mask non-existance errors
2017-08-25 16:01:30 -04:00
Ethan Buchman
271145ee72
Merge pull request #32 from tendermint/bugfix/write-file-atomic
...
Fix rename /root/.tendermint_test/consensus_replay_test/priv_validator.json.new /root/.tendermint_test/consensus_replay_test/priv_validator.json: no such file or directory
2017-08-25 15:58:09 -04:00
Zach
01181721ad
readme: update install instruction ( #100 )
2017-08-24 17:02:14 +02:00
Anton Kaliaev
956966e658
add missing validator package to glide.yaml
2017-08-11 16:36:26 -04:00
Ethan Buchman
20c7a8f035
Merge pull request #31 from tendermint/bugfix/escape-syntax-for-base-16-hashes
...
[pubsub/query] quote values using single quotes
2017-08-11 12:33:48 -04:00
Anton Kaliaev
fa990f0803
add test case for hex
2017-08-10 19:46:59 -04:00
Emmanuel Odeke
b4a51871b9
common/IsDirEmpty: do not mask non-existance errors
...
Currently IsDirEmpty returns true, err if it encounters
any error after trying to os.Open the directory.
I noticed this while studying the code and recalled a bug
from an earlier project in which doing the exact same thing
on code without permissions would trip out and falsely report
that the directory was empty.
Given demo.go in https://play.golang.org/p/vhTPU2RiCJ
* Demo:
```shell
$ mkdir -p sample-demo/1 && touch sample-demo/2
$ echo "1st round" && go run demo.go sample-demo
$ sudo chown root sample-demo && sudo chmod 0700 sample-demo
$ echo "2nd round" && go run demo.go sample-demo
```
That then prints out
```shell
1st round
original:: empty: false err: <nil>
updated:: empty: false err: <nil>
2nd round
original:: empty: true err: open data/: permission denied
updated:: empty: false err: open data/: permission denied
```
where in "2nd round", the original code falsely reports that
the directory is empty but that's a permission error.
I could write a code test for it, but that test requires me to change
users and switch to root as a Go user so no point in complicating our
tests, but otherwise it is a 1-to-1 translation between shell and Go.
2017-08-04 02:22:17 -06:00
Ethan Frey
75372988e7
Merge pull request #33 from orijtech/http-utils
...
http: http-utils added after extraction
2017-08-02 19:47:10 +02:00
Emmanuel Odeke
d67a621715
http: http-utils added after extraction
...
Found common http utils that were being multiply duplicated across
many libraries and since am moving things in basecoin/unstable to
add for more functionality, it's better to put them in one
place.
Utilities and tests added:
- [X] FparseJSON
- [X] FparseAndValidateJSON
- [X] ParseRequestJSON
- [X] ParseAndValidateRequestJSON
- [X] WriteCode
- [X] WriteError
- [X] WriteSuccess
- [X] ErrorResponse
During review from @ethanfrey, made updates:
* Removed tt.want since it was a distraction/artifact that made
the reviewer think the tests weren't testing for both failed
and passed results.
* Added ErrorWithCode as WithCode is a common options pattern
in Go that could cause confusion:
ErrorWithCode(error, int) ErrorResponse
* Using json.NewDecoder(io.Reader) error instead of
ioutil.ReadAll(io.Reader) to slurp all the bytes.
* Added more test scenarios to achieve 100% coverage of http.go
2017-08-02 11:38:52 -06:00
Ethan Frey
03d2b2446e
Merge pull request #28 from odeke-em/godoc-for-references
...
README: add godoc instead of tedious MD regeneration
2017-07-28 15:09:54 -04:00
Emmanuel Odeke
ce80f234c7
README: add godoc instead of tedious MD regeneration
...
Add a godoc reference to delegate indexing and references
to that service, thus keeping our library and usages upto date,
instead of relying on generated markdown that goes stale
especially for changing API signatures, and becomes tedious
where someone has to remember to always regenerate the README
markdown and then commit it.
Fixes #24
2017-07-28 13:01:31 -06:00
Ethan Frey
f2c881573c
Merge pull request #26 from odeke-em/improve-reverse-bytes+tests
...
hd: optimize ReverseBytes + add tests
2017-07-28 14:28:16 -04:00
Emmanuel Odeke
ae9c5b1ca0
hd: optimize ReverseBytes + add tests
...
* Optimized ReverseBytes to:
a) Minimally allocate --> 60.0% reduction in the number of allocations
b) Only walk halfway the length of the string thus performing
byte swaps from left to right. Improves the performance as well.
Complexity is O(n/2) instead of O(n) which is still O(n) but
benchmarks show the new time is in deed 1/2 of the original time.
* Added unit tests and some common cases to ensure correctness.
* Benchmark shoot out results:
```shell
name old time/op new time/op delta
ReverseBytes-4 554ns ± 4% 242ns ± 3% -56.20% (p=0.000 n=10+10)
name old alloc/op new alloc/op delta
ReverseBytes-4 208B ± 0% 114B ± 0% -45.19% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
ReverseBytes-4 10.0 ± 0% 4.0 ± 0% -60.00% (p=0.000 n=10+10)
```
2017-07-28 12:21:41 -06:00
Anton Kaliaev
d1ca2c6f83
[common] add a test for WriteFileAtomic
2017-07-28 11:40:21 -04:00
Anton Kaliaev
b25aa3b472
[common] do not create {filePath}.bak in WriteFileAtomic
...
We use WriteFileAtomic in two places:
```
p2p/addrbook.go
338: err = cmn.WriteFileAtomic(filePath, jsonBytes, 0644)
types/priv_validator.go
162: err = WriteFileAtomic(privVal.filePath, jsonBytes, 0600)
```
and we don't need .bak in any of the above. We save priv_validator every
10ms and addrbook every 2 min.
2017-07-28 11:40:21 -04:00
Anton Kaliaev
8a51210efc
[common] use temp intead of {filePath}.new
...
The problem with {filePath}.new is that it is not safe for concurrent
use! Calling this function with the same params results in the following
error:
```
panic: Panicked on a Crisis: rename /root/.tendermint_test/consensus_replay_test/priv_validator.json.new /root/.tendermint_test/consensus_replay_test/priv_validator.json: no such file or directory
goroutine 47860 [running]:
github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common.PanicCrisis(0xcba800, 0xc42152d640)
/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common/errors.go:33 +0x10f
github.com/tendermint/tendermint/types.(*PrivValidator).save(0xc42235f2c0)
/go/src/github.com/tendermint/tendermint/types/priv_validator.go:165 +0x159
github.com/tendermint/tendermint/types.(*PrivValidator).signBytesHRS(0xc42235f2c0, 0x6, 0x0, 0xc424e88f03, 0xc429908580, 0xca, 0x155, 0x80, 0xc424e88f00, 0x7f4ecafc88d0, ...)
/go/src/github.com/tendermint/tendermint/types/priv_validator.go:249 +0x2bb
github.com/tendermint/tendermint/types.(*PrivValidator).SignVote(0xc42235f2c0, 0xc4228c7460, 0xf, 0xc424e88f00, 0x0, 0x0)
/go/src/github.com/tendermint/tendermint/types/priv_validator.go:186 +0x1a2
github.com/tendermint/tendermint/consensus.(*ConsensusState).signVote(0xc424efd520, 0xc400000002, 0xc422d5e3c0, 0x14, 0x20, 0x1, 0xc4247b6560, 0x14, 0x20, 0x0, ...)
github.com/tendermint/tendermint/consensus/_test/_obj_test/state.go:1556 +0x35e
github.com/tendermint/tendermint/consensus.(*ConsensusState).signAddVote(0xc424efd520, 0x2, 0xc422d5e3c0, 0x14, 0x20, 0x1, 0xc4247b6560, 0x14, 0x20, 0xc42001b300)
github.com/tendermint/tendermint/consensus/_test/_obj_test/state.go:1568 +0x200
github.com/tendermint/tendermint/consensus.(*ConsensusState).enterPrecommit(0xc424efd520, 0x6, 0x0)
github.com/tendermint/tendermint/consensus/_test/_obj_test/state.go:1082 +0x13a4
github.com/tendermint/tendermint/consensus.(*ConsensusState).addVote(0xc424efd520, 0xc424e88780, 0x0, 0x0, 0x39, 0x1dc, 0x28c)
github.com/tendermint/tendermint/consensus/_test/_obj_test/state.go:1477 +0x1be5
github.com/tendermint/tendermint/consensus.(*ConsensusState).tryAddVote(0xc424efd520, 0xc424e88780, 0x0, 0x0, 0xd7fb00, 0xc42152ce00)
github.com/tendermint/tendermint/consensus/_test/_obj_test/state.go:1382 +0x93
github.com/tendermint/tendermint/consensus.(*ConsensusState).handleMsg(0xc424efd520, 0xcb58e0, 0xc42547feb8, 0x0, 0x0, 0x6, 0x0, 0x4, 0xed10ca07e, 0x3077bfea, ...)
github.com/tendermint/tendermint/consensus/_test/_obj_test/state.go:660 +0x9fc
github.com/tendermint/tendermint/consensus.(*ConsensusState).receiveRoutine(0xc424efd520, 0x0)
github.com/tendermint/tendermint/consensus/_test/_obj_test/state.go:615 +0x5f5
created by github.com/tendermint/tendermint/consensus.(*ConsensusState).OnStart
github.com/tendermint/tendermint/consensus/_test/_obj_test/state.go:332 +0x4a7
exit status 2
FAIL github.com/tendermint/tendermint/consensus 76.644s
make: *** [test_integrations] Error 1
```
See https://github.com/tendermint/tendermint/pull/568
2017-07-28 11:39:59 -04:00
Ethan Frey
bf355d1b58
Merge pull request #23 from tendermint/feature/short-recover-text
...
Shorter recovery seed
2017-07-27 16:11:03 -04:00
Ethan Frey
050b965708
Code cleanup ala Emmanuel
2017-07-27 15:59:59 -04:00
Ethan Frey
10222adaf1
Remove deprecated code. Now in basecoin/weave
2017-07-26 16:12:25 -04:00
Ethan Frey
c20e83565c
Recovery also works with secp256 keys
2017-07-22 05:53:46 -04:00
Ethan Frey
4ff889a236
Use 16 random bytes for seed and key, crc16 by default
2017-07-22 05:44:09 -04:00
Ethan Frey
65da3cf340
Add crc16 support
2017-07-22 05:25:59 -04:00
Anton Kaliaev
a6a06f820f
[pubsub/query] quote values using single quotes
...
This fixes the problem with base-16 encoded values which may start with
digits: 015AB.... In such cases, the parser recognizes them as numbers
but fails to parse because of the follow-up characters (AB).
```
failed to parse tm.events.type=Tx AND hash=136E18F7E4C348B780CF873A0BF43922E5BAFA63:
parse error near digit (line 1 symbol 31 - line 1 symbol 32):
"6"
```
So, from now on we should quote any values. This seems to be the way
Postgresql has chosen.
2017-07-21 13:20:32 +03:00
Ethan Buchman
2f6f3e6aa7
Merge pull request #28 from tendermint/feature/376-events.v2
...
New pubsub package plus the query subpackage
2017-07-20 15:03:02 -04:00
Anton Kaliaev
77f6febb03
rename TestClientResubscribes to TestClientSubscribesTwice
...
test UnsubscribeAll properly
test BufferCapacity getter
2017-07-20 11:46:22 +03:00
Ethan Buchman
3c6c1b7d33
common: ProtocolAndAddress
2017-07-19 15:02:04 -04:00
Anton Kaliaev
992c54253f
fixes from gometalinter review
2017-07-18 11:53:41 +03:00
Anton Kaliaev
17d6091ef4
updates as per Bucky's comments
2017-07-15 13:33:47 +03:00
Anton Kaliaev
e664f9c688
use context to provide timeouts!
2017-07-14 14:49:25 +03:00
Anton Kaliaev
0006bfc359
return ErrorOverflow on Subscribe if server is overflowed
...
> why we need it?
most of our subscribers will be RPC WS subscribers, so if there are too
many, nothing wrong with rejecting to subscribe.
however, consensus reactor must be the first to subscribe, since its
work depends on the pubsub package.
2017-07-14 13:02:32 +03:00
Anton Kaliaev
13207a5927
remove overflow options
2017-07-14 12:32:01 +03:00
Anton Kaliaev
4aa024d843
add more info to error messages
2017-07-12 23:10:36 +03:00
Anton Kaliaev
e4f3f9d9bf
remove comment about LRU cache (see comments below)
...
I've tried https://github.com/hashicorp/golang-lru/tree/master/simplelru today and here are
the results:
with LRU cache:
```
Benchmark10Clients-2 50000 29021 ns/op 3976 B/op 105 allocs/op
Benchmark100Clients-2 3000 363432 ns/op 36382 B/op 1005 allocs/op
Benchmark1000Clients-2 500 2473752 ns/op 360500 B/op 10009 allocs/op
Benchmark10ClientsUsingTheSameQuery-2 300000 4059 ns/op 773 B/op 15 allocs/op
Benchmark100ClientsUsingTheSameQuery-2 500000 4360 ns/op 773 B/op 15 allocs/op
Benchmark1000ClientsUsingTheSameQuery-2 300000 4204 ns/op 773 B/op 15 allocs/op
```
without LRU cache:
```
Benchmark10Clients-2 200000 5267 ns/op 616 B/op 25 allocs/op
Benchmark100Clients-2 30000 42134 ns/op 2776 B/op 205 allocs/op
Benchmark1000Clients-2 3000 552648 ns/op 24376 B/op 2005 allocs/op
Benchmark10ClientsOneQuery-2 1000000 2127 ns/op 462 B/op 9 allocs/op
Benchmark100ClientsOneQuery-2 500000 2353 ns/op 462 B/op 9 allocs/op
Benchmark1000ClientsOneQuery-2 500000 2339 ns/op 462 B/op 9 allocs/op
```
> How were you using the lru cache exactly?
I was adding a KV pair each time there is a match plus checking if
`lru.Contains(key)` before running the actual check (`q.Matches(tags)`).
```
key = fmt.Sprintf("%s/%v", query + tags)
```
2017-07-12 22:52:13 +03:00
Anton Kaliaev
8062ade787
remove all clients (including closing all channels) on shutdown
2017-07-12 13:10:36 +03:00
Anton Kaliaev
a99b8a6210
new events package
...
query parser
use parser compiler to generate query parser
I used https://github.com/pointlander/peg which has a nice API and seems
to be the most popular Golang compiler parser using PEG on Github.
More about PEG:
- https://en.wikipedia.org/wiki/Parsing_expression_grammar
- https://github.com/PhilippeSigaud/Pegged/wiki/PEG-Basics
- https://github.com/PhilippeSigaud/Pegged/wiki/Grammar-Examples
rename
implement query match function
match function
uncomment test lines
add more test cases for query#Matches
fix int case
rename events to pubsub
add comment about cache
assertReceive helper to not block on receive in tests
fix bug with multiple conditions
uncomment benchmark
first results:
```
Benchmark10Clients-2 1000 1305493 ns/op 3957519 B/op 355 allocs/op
Benchmark100Clients-2 100 12278304 ns/op 39571751 B/op 3505 allocs/op
Benchmark1000Clients-2 10 124120909 ns/op 395714004 B/op 35005 allocs/op
```
124ms to publish message to 1000 clients. A lot.
use AST from query.peg.go
separate pubsub and query packages by using Query interface in pubsub
wrote docs and refactor code
updates from Frey's review
refactor type assertion to use type switch
cleanup during shutdown
subscriber should create output channel, not the server
overflow strategies, server buffer capacity
context as the first argument for Publish
log error
introduce Option type
update NewServer comment
move helpers into pubsub_test
increase assertReceive timeout
add query.MustParse
add more false tests for parser
add more false tests for query.Matches
parse numbers as int64 / float64
try our best to convert from other types
add number to panic output
add more comments
save commit
introduce client argument as first argument to Subscribe
> Why we do not specify buffer size on the output channel in Subscribe?
The choice of buffer size of N here depends on knowing the number of
messages server will receive and the number of messages downstream
subscribers will consume. This is fragile: if we publish an additional
message, or if one of the downstream subscribers reads any fewer
messages, we will again have blocked goroutines.
save commit
remove reference counting
fix test
test client resubscribe
test UnsubscribeAll
client options
[pubsub/query] fuzzy testing
do not print msg as it creates data race!
2017-07-12 09:48:01 +03:00
Ethan Buchman
efb56aaea7
Merge pull request #25 from tendermint/stderr
...
CLI Execute Error prints to stderr
2017-06-23 22:22:07 -04:00
Ethan Buchman
a28e35fd98
Merge branch 'develop' into stderr
2017-06-23 22:21:36 -04:00
Ethan Buchman
bf55624f75
Merge pull request #24 from tendermint/dateparse
...
common date parsing
2017-06-23 22:20:32 -04:00
Ethan Buchman
7fbe6adf24
Merge branch 'develop' into dateparse
2017-06-23 22:16:37 -04:00
Ethan Frey
95b7c9e09c
Merge branch 'develop'
2017-06-23 09:11:30 +02:00
Ethan Frey
d31cfbaeaa
Fixed up help text for "keys recover"
2017-06-23 09:10:59 +02:00
Ethan Frey
19bd8dc3a6
Merge branch 'develop'
2017-06-21 19:36:11 +02:00
Ethan Frey
ad70b22226
Update to 0.2.1
2017-06-21 19:35:57 +02:00
Ethan Frey
8bdb5ceda4
Merge pull request #19 from tendermint/feature/cli-improvements
...
cli improvements
2017-06-21 19:00:25 +02:00
Ethan Frey
d665c9ef10
Code cleanup from review comments
2017-06-21 18:57:32 +02:00
rigel rozanski
cc364b14e2
changelog and PR changes
2017-06-20 17:18:55 -04:00
rigel rozanski
f3eaf9b870
quickfix
2017-06-20 16:52:22 -04:00
rigel rozanski
34bcb30f1c
changelog
2017-06-20 16:40:32 -04:00
Ethan Frey
a944bdebfc
Make sure prompt looks good in interactive mode
2017-06-20 20:46:00 +02:00
Ethan Frey
1ab9ab9494
Add delete and recover commands, and test them
2017-06-20 20:34:13 +02:00
Ethan Frey
e9537b2da6
Freshen up existing cmd files
2017-06-20 19:50:39 +02:00
Ethan Frey
7d08ea4c09
Fixed all tests and binaries to compile
2017-06-20 18:50:53 +02:00
Ethan Frey
53e19e3dfa
Add codec to keys.Manager, recovery test passes
2017-06-20 18:35:16 +02:00
Ethan Frey
7108dedc21
Fix broken key manager tests
2017-06-20 18:19:13 +02:00
Ethan Frey
15609e1219
Updated Manager interface to return seed on create, fix server tests
2017-06-20 18:15:49 +02:00
Ethan Frey
56200e167a
Use go-bindata to embed wordlist in a binary
2017-06-20 18:03:17 +02:00
Ethan Frey
878c8b3a87
Removed obsolete file
2017-06-20 17:51:25 +02:00
Ethan Frey
1e15c8f75b
Extend wordcodec benchmarks
2017-06-20 17:13:10 +02:00
Ethan Frey
daab270ff7
First obvious speedup
2017-06-20 17:02:58 +02:00
Ethan Frey
1e978ba838
Import multiple language wordbanks, test them
2017-06-20 16:53:07 +02:00
Ethan Frey
2c0d52f4b5
Add typo detector test, fix panics
2017-06-20 16:52:04 +02:00
Ethan Frey
65c880e753
Test validation of word banks upon load
2017-06-20 16:32:33 +02:00
Ethan Frey
ad029d1293
Integrate ecc into word-byte codec
2017-06-20 16:10:15 +02:00
Ethan Frey
0b0e994cd1
Add crc64, constructors
2017-06-20 16:02:47 +02:00
Ethan Frey
ce6b08761e
Improve crc32
2017-06-20 15:56:12 +02:00
Ethan Frey
55a25f0f62
Add first pass of ecc checksuming
2017-06-20 15:49:17 +02:00
Ethan Frey
e20cdfcbae
Cleanup wordcodec
2017-06-20 15:20:40 +02:00
Ethan Frey
2278f566bf
Add beginning of wordcodec for bytes
2017-06-20 14:57:49 +02:00
Ethan Frey
ea4f45828d
Update circle ci for new cli tests
2017-06-19 17:52:45 +02:00
Ethan Frey
0c32d2722f
#17 - better support passwords in tests, more cli tests
2017-06-19 17:49:16 +02:00
Ethan Frey
0edd1297a9
Got basic key test working
2017-06-19 17:07:12 +02:00
rigel rozanski
0a3a08a3bc
stderr PR revisions
2017-06-17 18:35:05 -04:00
Ethan Buchman
7ce4da1eee
Merge pull request #26 from tendermint/develop
...
v0.2.2
2017-06-16 11:42:58 -04:00
Ethan Buchman
bd9d0d1637
changelog and version
2017-06-16 11:40:14 -04:00
Ethan Frey
3400cee845
Handle --two-words as TMTWO_WORDS env var
2017-06-15 20:16:22 +02:00
Ethan Frey
59a77e7bef
Remove Printf
2017-06-14 17:01:15 +02:00
Ethan Frey
0ecb38c6da
Return exit code on error, disable in tests
2017-06-14 16:51:33 +02:00
Ethan Buchman
c5644aad31
Merge pull request #21 from tendermint/feature/tracing-logger
...
[log] tracing logger
2017-06-07 13:26:27 -04:00
Anton Kaliaev
c332a21fb2
Merge pull request #20 from tendermint/bugfix/16-flowrate
...
[flowrate] refactor clock functions (Refs #16 )
2017-06-07 13:14:47 +03:00
rigel rozanski
94c0172618
doc update
2017-06-07 05:05:11 -04:00
rigel rozanski
33d0dd0bfc
add stderr to tests
2017-06-06 18:36:28 -04:00
rigel rozanski
c76dca0456
cli stderr output for Execute
2017-06-06 16:13:44 -04:00
rigel rozanski
f913ed8134
date simplify
2017-06-06 16:08:57 -04:00
rigel rozanski
304be4ec2f
date parse functionality
2017-06-06 04:00:36 -04:00
Ethan Buchman
462243e31a
Merge pull request #23 from tendermint/hexfuncs
...
IsHex and StripHex
2017-06-05 17:32:49 -04:00
rigel rozanski
925f2b3350
golint corrections
2017-06-05 16:22:01 -04:00
rigel rozanski
295f6c2cc6
IsHex and StripHex
2017-06-05 15:50:11 -04:00
Ethan Buchman
7f5f48b6b9
dist: dont mkdir in container
2017-06-02 12:44:00 -04:00
Anton Kaliaev
a24a0ff003
Merge tag 'v0.2.1' into develop
...
v0.2.1
2017-06-02 11:57:04 +03:00
Anton Kaliaev
6b619742ac
Merge branch 'release/0.2.1'
2017-06-02 11:56:17 +03:00
Anton Kaliaev
4ef77c008c
update changelog
2017-06-02 11:55:43 +03:00
Anton Kaliaev
8c0959604c
Merge pull request #19 from tendermint/feature/log-level-parsing-from-tendermint
...
copy log level parsing from tendemint
2017-06-02 10:42:23 +03:00
Ethan Buchman
b86da57571
scripts for building
2017-06-01 23:32:55 -04:00
Ethan Buchman
ea8c171bc0
Release v0.5.0
2017-06-01 23:04:32 -04:00
Anton Kaliaev
5f20b3323e
don't do DeepEqual, compare ranges for durations and rates (Refs #16 )
2017-05-25 13:06:42 +02:00
Anton Kaliaev
b36203bb02
[cli] add a test case to TestParseLogLevel where there is no module key
2017-05-23 23:31:29 +02:00
Anton Kaliaev
ddaa4d9b4c
[log] tracing logger
2017-05-23 23:06:20 +02:00
Ethan Frey
de02488778
Enhance the tests to make it clearer how these levels work together
2017-05-23 23:04:33 +02:00
Anton Kaliaev
b5c57967b7
[flowrate] improve error formatting (Refs #16 )
2017-05-23 15:24:00 +02:00
Anton Kaliaev
6b10432463
[flowrate] refactor clock functions (Refs #16 )
...
this commit does not fix the original bug
2017-05-23 15:20:27 +02:00
Anton Kaliaev
5032b224bc
copy log level parsing from tendemint
...
API change due to me not wanting `flags` package to depend on
tendermint's config package.
Refs https://github.com/tendermint/tendermint/issues/504
2017-05-23 00:43:12 +02:00
Ethan Buchman
864d1f80b3
Merge pull request #90 from tendermint/develop
...
v0.5.0
2017-05-18 11:39:39 +02:00
Ethan Buchman
609c0dbc3e
CHANGELOG update release date
2017-05-18 11:39:12 +02:00
Ethan Buchman
7dff40942a
Merge pull request #15 from tendermint/develop
...
v0.2.0
2017-05-18 11:37:23 +02:00
Ethan Buchman
c61497b56e
CHANGELOG: update release date
2017-05-18 11:35:32 +02:00
Ethan Buchman
306795ae1d
Merge pull request #15 from tendermint/develop
...
v0.2.0
2017-05-18 11:28:34 +02:00
Ethan Buchman
2733f5a738
CHANGELOG: update release date
2017-05-18 11:27:26 +02:00
Ethan Frey
8af1c70a8b
Renamed --debug to --trace, used for light-client and basecoin
2017-05-17 12:03:26 +02:00
Ethan Buchman
67f558cff0
Merge pull request #17 from tendermint/feature/log-levels-per-key-in-filter
...
Allow custom levels for the keyvals in filter
2017-05-16 23:29:02 +02:00
Ethan Frey
438b16f1f8
Merge pull request #16 from tendermint/data-codegen
...
Use codegen to create wrappers for interfaces
2017-05-16 17:10:26 +02:00
Ethan Frey
db5cb8d92c
Change codegen name holder->wrapper
2017-05-16 17:02:48 +02:00
Ethan Frey
bee63ce4ff
Cleaned up build process, moved codegen to separate package in go-wire
2017-05-16 17:01:30 +02:00
Ethan Frey
79c580492e
add make codegen for gen
2017-05-16 17:01:15 +02:00
Ethan Frey
746a2e286d
Codegen wrappers for privkey and signature as well
2017-05-16 17:01:15 +02:00
Ethan Frey
ee200d998f
Fix unwrap for proper json format
2017-05-16 17:01:15 +02:00
Ethan Frey
f16f711992
First code from codegen... wrong names
2017-05-16 17:01:03 +02:00
Ethan Frey
c38a6f55b3
Prepare for codegen
2017-05-16 17:01:03 +02:00
Anton Kaliaev
d0cae7b6ed
[log] change helper func
2017-05-16 12:49:23 +02:00
Anton Kaliaev
761b1553aa
[log] allow filtering with fields
2017-05-16 12:48:01 +02:00
Ethan Buchman
5dabeffb35
fixes from review
2017-05-15 12:59:44 -04:00
Ethan Buchman
d82c7edf3a
update changelog and bump version
2017-05-15 12:52:33 -04:00
Ethan Buchman
d07b2352ad
NewXXXServer doesnt run Start or return error
2017-05-15 12:51:24 -04:00
Ethan Buchman
21fff49f2c
Merge branch 'feature/adrian-extendABCIcli' into develop
2017-05-15 12:30:02 -04:00
Ethan Buchman
894f3fca73
cmd: query params are flags
2017-05-15 12:28:37 -04:00
Ethan Buchman
eda4f2dddc
NewXXXClient doesnt run Start or return error
2017-05-15 11:29:34 -04:00
Ethan Buchman
fadfcfdcb0
Merge pull request #82 from tendermint/feature/adrian-#79
...
Update grpc_server.go - 2
2017-05-15 15:52:24 +02:00
Ethan Buchman
20159f6081
Merge pull request #87 from tendermint/ResultsLike
...
Abci result error type comparison
2017-05-15 15:51:29 +02:00
rigel rozanski
05dc4d12dd
result.IsSameCode
2017-05-15 09:50:49 -04:00
Ethan Buchman
a42b10e0fe
update glide
2017-05-15 09:41:07 -04:00
Ethan Buchman
d901fba662
add changelog and version
2017-05-15 09:40:20 -04:00
Ethan Buchman
812d9f9b84
add changelog
2017-05-15 09:09:42 -04:00
Ethan Buchman
da68014a50
Merge pull request #10 from tendermint/bugfix/rotating-fails-on-windows
...
Close file before renaming it
2017-05-15 14:47:57 +02:00
Anton Kaliaev
74a7f8c92b
[autofile] close file before renaming it
...
this might fix our windows bug https://github.com/tendermint/tendermint/issues/444
0980f8e197
2017-05-15 10:47:16 +02:00
Ethan Buchman
4fdeaa70af
Merge pull request #14 from tendermint/feature/allow-for-custom-color-functions
...
[log] allow for custom color funcs
2017-05-14 23:24:03 +02:00
Anton Kaliaev
a5fcc94a3b
[log] allow for custom color funcs
2017-05-14 12:03:45 +02:00
Adrian Brink
b55e695d3d
Remove debug statement
2017-05-13 21:08:34 +02:00
Adrian Brink
4674bf96b0
Extend the query command
2017-05-13 18:37:00 +02:00
Anton Kaliaev
8f5a175ff4
Merge pull request #13 from tendermint/feature/filter-returns-error
...
[log] NewFilterByLevel returns an error
2017-05-13 16:01:02 +02:00
Anton Kaliaev
dd3e433d32
[log] NewFilterByLevel returns an error
2017-05-13 15:54:11 +02:00
Adrian Brink
b662bc7d34
Merge pull request #81 from tendermint/feature/adrian-#68
...
Comment out MessageType - 2
2017-05-13 10:02:07 +02:00
Adrian Brink
ea2d83e513
Clean up comments
2017-05-13 10:01:16 +02:00
Anton Kaliaev
9e1852c08d
Merge pull request #12 from tendermint/feature/helper-log-func
...
[log] add NewFilterByLevel helper func
2017-05-12 23:12:36 +02:00
Anton Kaliaev
3007668274
[log] add NewFilterByLevel helper func
2017-05-12 22:59:31 +02:00
Ethan Buchman
dd592a21b9
Merge pull request #11 from tendermint/bugfix/multiple-module-keys
...
Squash module keyvals if multiple keyvals were provided
2017-05-12 22:08:36 +02:00
Anton Kaliaev
f202d02d0d
[log] add separator
2017-05-12 17:39:00 +02:00
Adrian Brink
e43bcf3f26
Move package comment
2017-05-09 12:40:49 +02:00
Jacob Gadikian
840e658ec0
Update grpc_server.go
2017-05-09 12:40:49 +02:00
Adrian Brink
577ec5452f
Fix indentation
2017-05-09 12:33:38 +02:00
Adrian Brink
322b4e54de
Remove unused enum MessageTypes
2017-05-09 12:23:37 +02:00
Krzysztof Jurewicz
a3d4e5797d
Comment out MessageType
...
As it is an unused enum, leaving it uncommented causes dead Protocol
Buffers code to be generated.
2017-05-09 12:23:37 +02:00
Anton Kaliaev
b2a116863c
squash module key if multiple keyvals were provided
...
last keyvalue wins
2017-05-08 17:30:21 +04:00
Anton Kaliaev
25a5bc2697
Merge pull request #9 from tendermint/bugfix/filter-with-func
...
[log] proper impl of With for filter
2017-05-08 14:42:21 +04:00
Anton Kaliaev
bc6baf6774
[log] proper impl of With for filter
2017-05-06 11:21:07 +04:00
Ethan Buchman
d3e3eca3fe
update glide
2017-05-05 14:57:33 -04:00
Ethan Buchman
bd2b87dd3d
Merge pull request #78 from tendermint/feature/new-logging
...
New logging
2017-05-05 14:52:49 -04:00
Ethan Buchman
d72136da0d
Merge pull request #7 from tendermint/log
...
Log
2017-05-05 14:02:38 -04:00
Anton Kaliaev
240215f2aa
return back all in Makefile
2017-05-05 21:52:01 +04:00
Anton Kaliaev
f4be75cb1e
remove warn mentions
2017-05-05 21:48:03 +04:00
Anton Kaliaev
2bf6ebf379
filter
2017-05-05 21:48:03 +04:00
Anton Kaliaev
ea01d003d1
changes per @ethanfrey comments
2017-05-05 21:48:03 +04:00
Anton Kaliaev
b2bd039923
correct impl of WithLevel
2017-05-05 21:48:03 +04:00
Anton Kaliaev
6ff7b4395d
update glide.yaml and glide.lock files
2017-05-05 21:48:02 +04:00
Ethan Frey
3420b389e9
Add testify version for consistency
2017-05-05 19:45:02 +02:00
Anton Kaliaev
520561e94a
add testing logger
2017-05-05 21:43:07 +04:00
Ethan Buchman
66c9401c07
log: Tm -> TM
2017-05-05 21:43:07 +04:00
Anton Kaliaev
ed76afd409
Logger interface and tmLogger impl based on go-kit
2017-05-05 21:43:07 +04:00
Ethan Frey
e71bbb2509
Update to make full use of new tmlibs/cli helpers
2017-05-05 19:25:44 +02:00
Ethan Buchman
706b9fbd67
Merge pull request #8 from tendermint/cli
...
Cli
2017-05-05 11:45:54 -04:00
Ethan Frey
2f02ed18e9
One more helper function for cli tests...
2017-05-05 14:58:53 +02:00
Ethan Frey
d0132b0fff
Moved helper functions into non-test code for reuse elsewhere
2017-05-05 14:46:04 +02:00
Anton Kaliaev
50a9967c79
change tmlibs package version to "log"
2017-05-05 16:32:23 +04:00
Ethan Buchman
3585a542a0
cli: viper.Set(HomeFlag, rootDir)
2017-05-05 00:48:35 -04:00
Ethan Frey
ee45dbdc8b
Test how unmarshall plays with flags/env/config/default struct
2017-05-04 19:44:53 -04:00
Ethan Frey
8efeeb5f38
Add --debug flag to return full stack trace on error
2017-05-04 19:44:53 -04:00
Ethan Frey
ef3b9610a1
Fixed up the --home flag, ebuchman check this out
2017-05-04 19:44:53 -04:00
Ethan Frey
d05b8131a3
Updated glide with cobra/viper, fixed Makefile typo
2017-05-04 19:44:48 -04:00
Ethan Frey
5637a78854
Test setting config file as root
2017-05-04 19:43:33 -04:00
Ethan Frey
62427adbec
First basic test case on setup functionality
2017-05-04 19:43:33 -04:00
Ethan Frey
435fd0ece7
Add clarifying comments as requested by Rigel
2017-05-04 19:43:33 -04:00
Ethan Buchman
7becd35126
cli: more descriptive naming
2017-05-04 19:43:33 -04:00
Ethan Buchman
a95a60cb0b
cli: support --root and --home
2017-05-04 19:43:33 -04:00
Anton Kaliaev
317e91748f
remove all .sock files!
2017-05-04 23:24:58 +04:00
Anton Kaliaev
1dc3629b1a
update log interface
2017-05-04 23:17:16 +04:00
Anton Kaliaev
d2a4b16b28
introduce testing logger
2017-05-04 16:50:00 +04:00
Anton Kaliaev
6baaad9975
update glide
2017-05-04 16:50:00 +04:00
Anton Kaliaev
ce124c4aeb
modify test scripts to use relative paths
2017-05-04 16:50:00 +04:00
Anton Kaliaev
9a6d190282
remove stdlog
2017-05-04 16:49:59 +04:00
Anton Kaliaev
986bdd00a5
new logging
2017-05-04 16:49:59 +04:00
Ethan Frey
524ba917a3
Use new PrepareMainCmd from tmlibs/cli
2017-05-02 17:18:08 +02:00
Ethan Frey
d4ab9679d7
Fix up error in copyEnv
2017-05-02 17:16:22 +02:00
Ethan Frey
b92bd8f6a8
Separate out PrepareBaseCmd, try to set env vars
2017-05-02 17:04:46 +02:00
Ethan Buchman
f7c872981f
Merge pull request #2 from tendermint/make_and_circle
...
Makefile and circle.yml
2017-05-01 11:33:24 -04:00
Ethan Buchman
af637abf12
Makefile and circle.yml
2017-05-01 11:30:24 -04:00
Ethan Buchman
8d8e35ae53
types: methods convert pb types to use data.Bytes
2017-04-27 19:53:22 -04:00
Ethan Buchman
8339dc3b1a
types: Result and Validator use data.Bytes
2017-04-27 19:21:26 -04:00
Ethan Frey
197a2b270f
Consolidate keys.Manager interface
2017-04-27 20:59:48 +02:00
Ethan Buchman
c709d3cc85
update merkleeyes
2017-04-21 18:39:18 -04:00
Ethan Buchman
be61e273ce
update glide
2017-04-21 18:32:46 -04:00
Ethan Buchman
078e617d1c
go-merkle -> merkleeyes/iavl and tmlibs/merkle
2017-04-21 18:28:49 -04:00
Ethan Buchman
dd303dc119
go-data -> go-wire/data
2017-04-21 18:25:30 -04:00
Ethan Buchman
28d042fdae
use tmlibs
2017-04-21 18:25:13 -04:00
Ethan Buchman
03012a0532
update glide
2017-04-21 18:24:18 -04:00
Ethan Buchman
df250b6941
docs: go-events -> tmlibs/events
2017-04-21 16:25:23 -04:00
Ethan Buchman
9b95da8fa4
go-data -> go-wire/data
2017-04-21 16:10:06 -04:00
Ethan Buchman
1ea866fd69
glide
2017-04-21 16:05:03 -04:00
Ethan Buchman
56d36c8f25
merkle: go-common -> tmlibs
2017-04-21 16:04:58 -04:00
Ethan Buchman
fd296811df
simple merkle tree
2017-04-21 15:33:25 -04:00
Ethan Buchman
6c49312aa2
Merge pull request #11 from tendermint/unstable
...
Unstable
2017-04-21 14:43:55 -04:00
Ethan Buchman
e3f9b8731b
circle.yml
2017-04-21 14:41:14 -04:00
Ethan Frey
91bd7efb7b
Fixed all imports in keys
2017-04-19 17:25:53 +02:00
Ethan Frey
0bfae964e1
Moved keys cmd to top level
2017-04-19 17:07:12 +02:00
Ethan Frey
9016390a6e
Moved crypto code to top level again
2017-04-19 16:55:15 +02:00
Ethan Frey
68948a5f13
Import go-keys as subdir
2017-04-19 16:53:28 +02:00
Ethan Frey
17ed6d178d
move go-crypto files pre-keys merge
2017-04-19 16:51:29 +02:00
Ethan Buchman
56e13d87f4
Merge pull request #71 from tendermint/develop
...
Develop
2017-04-18 23:41:35 -04:00
Ethan Buchman
1002a8c5d0
bump version
2017-04-18 23:31:30 -04:00
Ethan Buchman
1aa663d907
update glide
2017-04-18 23:31:12 -04:00
Ethan Buchman
8bb25ec5ed
update paths
2017-04-18 18:17:02 -04:00
Ethan Buchman
2f8551d3b6
go-common -> tmlibs
2017-04-18 17:56:05 -04:00
Ethan Buchman
900be74e8f
update import paths
2017-04-18 16:33:51 -04:00
Ethan Buchman
6f49ba4c3e
merge go-process
2017-04-18 16:33:44 -04:00
Ethan Buchman
5b4dcddb59
Merge remote-tracking branch 'process/master' into unstable
2017-04-18 16:33:44 -04:00
Ethan Buchman
024fcb4fdb
merge go-logger
2017-04-18 16:33:43 -04:00
Ethan Buchman
e8ab6b7496
Merge remote-tracking branch 'logger/master' into unstable
2017-04-18 16:33:43 -04:00
Ethan Buchman
44274eeb58
merge go-flowrate
2017-04-18 16:33:42 -04:00
Ethan Buchman
125e25a929
Merge remote-tracking branch 'flowrate/master' into unstable
2017-04-18 16:33:42 -04:00
Ethan Buchman
fe92e62a19
merge go-events
2017-04-18 16:33:40 -04:00
Ethan Buchman
3e8b7df789
Merge remote-tracking branch 'events/master' into unstable
2017-04-18 16:33:39 -04:00
Ethan Buchman
fdbb10827d
merge go-db
2017-04-18 16:33:35 -04:00
Ethan Buchman
d234a164f7
Merge remote-tracking branch 'db/master' into unstable
2017-04-18 16:33:32 -04:00
Ethan Buchman
acbd7caaf8
merge go-clist
2017-04-18 16:33:27 -04:00
Ethan Buchman
7ed7422e7f
Merge remote-tracking branch 'clist/master' into unstable
2017-04-18 16:33:27 -04:00
Ethan Buchman
a893bb119b
merge go-autofile
2017-04-18 16:33:26 -04:00
Ethan Buchman
e01445ea94
Merge remote-tracking branch 'autofile/master' into unstable
2017-04-18 16:33:26 -04:00
Ethan Buchman
356657a37b
move all files to common/ to begin repo merge
2017-04-18 16:33:22 -04:00
Ethan Buchman
5aecd32554
merge.sh file for the repo merge
2017-04-18 16:33:07 -04:00
Ethan Buchman
9643f60bc2
Merge pull request #5 from tendermint/iterate-data
...
Exposed an iterator to access all of the underlying key/value pairs for all databases.
2017-04-18 15:47:42 -04:00
Ethan Buchman
f9e3db0373
Merge pull request #11 from tendermint/develop
...
Develop
2017-04-18 15:39:03 -04:00
Anton Kaliaev
f285114579
add Erlang implementation to readme [ci skip] [circleci skip]
2017-04-15 11:00:47 +04:00
Ethan Buchman
0ca2c6fdb0
Merge pull request #9 from tendermint/develop
...
Develop
2017-04-13 18:50:47 -04:00
Ethan Buchman
714fdaee3b
Merge pull request #9 from tendermint/bugfix/check-for-error-returned-by-impl
...
[service] check for error returned by impl
2017-04-13 13:52:23 -04:00
Ethan Frey
31eafe8f8e
Update dependencies to newest develop branches
2017-04-10 22:24:54 +02:00
Ethan Frey
c410fc5e24
Add extra test for encoding with sig,for p2p test fail
2017-04-10 19:51:02 +02:00
Ethan Frey
aecc32d363
Make dependencies explicit in glide.yaml
2017-04-10 19:51:02 +02:00
Ethan Frey
9e57d521ef
Add type assertions for sig/pub/privkey implemenetations
2017-04-10 19:51:02 +02:00
Jae Kwon
f17e6bf44c
Fix bitcoin addr scheme
2017-04-10 19:51:02 +02:00
Jae Kwon
926741c0a1
remove coin param
2017-04-10 19:51:02 +02:00
Jae Kwon
a3324cc97b
Cleanup; Implement .Wrap()
2017-04-10 19:51:02 +02:00
Ethan Frey
eb6fcef8d2
Better docs and naming thanks to bucky
2017-04-10 19:51:01 +02:00
Ethan Frey
5b94758d4c
Make PubKey struct compatible with go-wire.JSONBytes/ReadJSON
2017-04-10 19:51:01 +02:00
Ethan Frey
66ecd7705f
Use new naming scheme PubKey{PubKeyInner}
2017-04-10 19:51:01 +02:00
Ethan Frey
750b25c47a
Update go-data, test embedding strategies
2017-04-10 19:41:30 +02:00
Ethan Frey
49569ac244
Wrap constructor to create xxxS structs and avoid recursion
2017-04-10 19:41:30 +02:00
Jae Kwon
e49fdf7be7
Add HD functions
2017-04-08 22:57:59 -07:00
Paul W. Homer
2feff1ea16
Commented the empty table in c_level_db, and cleaned up the mem_db Value call.
2017-04-01 15:44:41 -04:00
Paul W. Homer
4fdcf51467
Refactored the iterator to follow Go constructor conventions.
2017-03-30 11:51:11 -04:00
Ethan Frey
ae55713864
Move tx from light-client and add tests
2017-03-29 20:41:11 +02:00
Paul W. Homer
34e2d6638d
Fixed a typo in LevelDB property names.
2017-03-29 09:09:01 -04:00
Anton Kaliaev
dec518eb06
update comment [ci skip] [circleci skip]
2017-03-29 16:03:05 +04:00
Ethan Frey
58e537a42d
Refactor setting up the key manager from config
2017-03-28 19:05:33 +02:00
Ethan Buchman
6af2364fa9
Merge pull request #10 from tendermint/recreate-quit-channel-on-reset
...
Recreate Quit channel on reset
2017-03-28 12:26:02 -04:00
Anton Kaliaev
7a12594edb
[service] recreate Quit channel on reset
...
don't think that user should do this thing him/herself
2017-03-28 13:56:48 +04:00
Anton Kaliaev
c46ffe39a8
[service] check for error returned by impl
...
otherwise, we mark it as started when it is not in fact
2017-03-27 20:46:46 +04:00
Anton Kaliaev
75a539ae3d
Merge pull request #3 from silasdavis/master
...
From the department of pedantry
2017-03-27 15:23:47 +04:00
Ethan Frey
398ac046da
Reorganize cobra cmd to enable better reuse
2017-03-23 21:23:05 +01:00
Paul W. Homer
097e0abca9
Added in locking
2017-03-23 14:46:40 -04:00
Paul W. Homer
6064c80250
Modified all db types to conform to the interface changes.
2017-03-23 11:37:46 -04:00
Ethan Buchman
6fddcdf245
hd test: check masters too
2017-03-22 20:13:16 -04:00
Ethan Buchman
c6be97c71c
error testing the hd
2017-03-22 16:45:30 -04:00
Ethan Buchman
ce9c57fca8
hd test
2017-03-22 15:59:48 -04:00
Ethan Buchman
3a1313ab7d
secp256k1: use compressed pubkey, bitcoin-style address
2017-03-22 01:18:56 -04:00
Ethan Frey
76ace96925
Create nested directories as needed to store keys
2017-03-20 09:55:07 +01:00
Ethan Frey
07ac3201c2
Merge pull request #4 from tendermint/glide
...
Added glide dependency handling
2017-03-20 09:41:51 +01:00
Paul W. Homer
d6205eb4ca
Changed the iterations
2017-03-17 14:34:11 -04:00
Paul W. Homer
bb8104b624
Exposed the LevelDB iterator in the DB struct.
2017-03-17 13:27:20 -04:00
Ethan Buchman
af792eac77
readme: js-tmsp -> js-abci
2017-03-13 17:20:31 -04:00
Ethan Buchman
1a565b83ec
fix readme
2017-03-13 17:18:10 -04:00
Ethan Buchman
c32338f29b
Merge pull request #66 from tendermint/readme
...
update readme
2017-03-13 16:54:00 -04:00
Ethan Buchman
e6a5b060f9
update readme
2017-03-13 16:46:45 -04:00
Ethan Buchman
1236e8fb6e
Merge pull request #65 from tendermint/develop
...
v0.4.0
2017-03-06 03:10:22 -05:00
Ethan Buchman
be5a4345a3
formatting and update CHANGELOG
2017-03-06 02:58:26 -05:00
Ethan Buchman
700a62c22e
CHANGELOG
2017-03-06 02:53:15 -05:00
Ethan Buchman
dcb015dff6
repeat_timer: drain channel in Stop; done -> wg
2017-03-05 03:33:35 -05:00
Ethan Buchman
eac3f2bc14
Merge remote-tracking branch 'origin/master' into develop
...
Conflicts:
LICENSE.md
2017-03-05 00:16:10 -05:00
Jae Kwon
286cbbd99d
Update LICENSE.md
2017-03-04 17:12:18 -08:00
Jae Kwon
ab0cca734a
Update LICENSE.md
2017-03-04 17:11:59 -08:00
Ethan Buchman
0b1ee4b673
version bump to 0.4.0
2017-03-03 18:43:08 -05:00
Ethan Buchman
eaeb2658ea
fixes from review
2017-03-03 18:39:10 -05:00
Ethan Buchman
c1f5a96382
Merge branch 'master' into develop
...
Conflicts:
README.md
2017-03-03 01:17:54 -05:00
Ethan Buchman
3f47cfac5f
Merge pull request #4 from tendermint/develop
...
go-data support
2017-03-03 00:17:33 -05:00
Ethan Buchman
6141dc6eed
Merge pull request #7 from tendermint/develop
...
Develop
2017-03-03 00:06:45 -05:00
Ethan Buchman
959efd3127
Merge branch 'master' into develop
2017-03-03 00:05:51 -05:00
Ethan Buchman
95c14fbd65
Merge branch 'master' into develop
2017-03-03 00:03:39 -05:00
Ethan Buchman
f8ffbfb2be
Merge pull request #9 from tendermint/develop
...
Add test
2017-03-03 00:02:46 -05:00
Paul W. Homer
af7e312088
Added glide dependency handling
2017-03-02 17:16:15 -05:00
Ethan Frey
0c92c8516f
Rename proxy to server for clarity
2017-02-28 21:53:05 +01:00
Ethan Frey
6389d208cc
Key server API integrated in CLI
2017-02-28 21:33:27 +01:00
Ethan Frey
6ec2330eb8
Import keys server from light-client, with changes
2017-02-28 21:09:35 +01:00
Ethan Frey
e1c717a048
Add support for hex / base64 / btc (b58) encoding of binary data
2017-02-28 20:31:08 +01:00
Ethan Frey
c59e2d7d13
Expose address in keyinfo, add get command
2017-02-28 20:07:44 +01:00
Ethan Frey
d5931c9ee3
Set key algorithm on key creation
2017-02-28 19:43:18 +01:00
Ethan Frey
9c427e95e2
Add update cli command, cleanup
2017-02-28 19:02:24 +01:00
Ethan Frey
506ff7d85a
Expose new and list via cli
2017-02-28 18:52:52 +01:00
Ethan Frey
78bb9f9cd8
Import keystore logic from light-client
2017-02-28 18:07:59 +01:00
Ethan Frey
d979bfc49e
Add flag validation
2017-02-28 16:56:17 +01:00
Ethan Frey
f80957ad3c
Basic cobra/viper cli framework
2017-02-28 16:30:15 +01:00
Ethan Frey
a816ff0bab
Add test
2017-02-27 14:52:48 +01:00
Ethan Buchman
562b4cc9ef
Merge pull request #3 from tendermint/feature/go-data
...
Use go-data for nice json un/marshaling
2017-02-23 19:14:53 -05:00
Ethan Frey
0e92dd5bb5
One name, type byte per algorithm
2017-02-24 00:31:43 +01:00
Ethan Frey
8c9b889ccf
Support json encode/decode for nil values in S structs
2017-02-23 18:11:20 +01:00
Ethan Frey
b6a2c5949f
Add helper methods for nil checks in structs
2017-02-23 15:35:04 +01:00
Ethan Frey
cbe35e07d1
Add more tests for de/en-coding public and private keys
2017-02-23 14:56:25 +01:00
Ethan Frey
6c2bf8c24b
Clean up test cases -> testify
2017-02-23 13:20:30 +01:00
Ethan Frey
1bc1947e3f
First tests of go-data encoding
2017-02-22 23:43:26 +01:00
Ethan Frey
e6d35ee641
Add structs for go-data support
2017-02-22 23:15:10 +01:00
Anton Kaliaev
33e52343d0
Merge branch '4gn3s-patch-1' into develop
2017-02-20 16:59:20 +04:00
Agnieszka Kramarek
b350b08021
Update README.md
...
Typo fixed
2017-02-20 16:58:50 +04:00
Ethan Buchman
1e8791bc9a
Merge pull request #62 from wolfposd/patch-1
...
Update: jTMSP -> jABCI
2017-02-19 10:51:49 -05:00
Wolf
d299afe630
Update: jTMSP -> jABCI
2017-02-19 16:46:57 +01:00
Jae Kwon
f81a9c647d
Update README.md
2017-02-18 07:36:14 +01:00
Ethan Buchman
31bdda27ad
Query: LastHeight -> Height :)
2017-02-14 16:53:21 -05:00
Ethan Buchman
2a3f638495
Merge pull request #61 from tendermint/interface-fixes
...
Interface fixes
2017-02-13 20:19:24 -05:00
Ethan Buchman
e909cafa0b
BaseApplication
2017-02-13 20:16:21 -05:00
Ethan Buchman
b6afa8d85b
Query: Height -> LastHeight
2017-02-13 20:16:17 -05:00
Jae Kwon
5d673ecf31
Fix comment for BeginBlock hash
2017-02-12 18:38:10 -08:00
Ethan Buchman
b025c13f67
drop BlockchainAware
2017-02-06 19:20:02 -05:00
Ethan Buchman
a954f91e5f
Merge pull request #60 from tendermint/readme
...
fixes #38 and #59
2017-02-06 18:37:33 -05:00
Ethan Buchman
dafcc3d3e3
fixes #38 and #59
2017-02-06 18:11:17 -05:00
Jae Kwon
48b17de829
Merge pull request #2 from alessio/master
...
Add LICENSE file
2017-01-28 08:01:48 -08:00
Jae Kwon
1c977f78fd
Update LICENSE
2017-01-28 08:01:29 -08:00
Alessio Treglia
c3b8006166
Add LICENSE file
2017-01-28 12:42:01 +00:00
Jae Kwon
8df0bc3a40
Merge branch 'abci_proof' into develop
2017-01-27 22:27:32 -08:00
Jae Kwon
b9e2ad12e6
Merge pull request #58 from tendermint/abci_proof_jae
...
Updates to ABCI_Proof PR
2017-01-27 21:58:52 -08:00
Jae Kwon
339e135776
Add IsDirEmpty
2017-01-27 20:37:04 -08:00
Jae Kwon
2a4894310d
Remove Proof message, replace with more flexible Query
2017-01-27 10:35:27 -08:00
Jae Kwon
4bdddf9829
First commit to demonstrate change
2017-01-23 20:54:24 -08:00
Jae Kwon
9745f07bee
common -> cmn
2017-01-23 20:26:17 -08:00
Jae Kwon
a33b75fe8b
Merge pull request #54 from roylee17/lint
...
Lint
2017-01-23 20:23:14 -08:00
Jae Kwon
6efadac330
Merge pull request #53 from roylee17/makefile
...
Makefile: add fmt and lint targets
2017-01-23 20:18:19 -08:00
Jae Kwon
f94ae5eeed
TSP -> Socket
2017-01-23 20:14:14 -08:00
Jae Kwon
366479c7ad
Merge branch 'readme' into hotfix_readme
2017-01-23 20:09:03 -08:00
Ethan Frey
fdc047ae7a
Proof uses uint64 for blockHeight
2017-01-17 17:22:34 +01:00
Ethan Frey
e0309007ad
Improve Makefile
2017-01-17 15:53:24 +01:00
Ethan Frey
dde413d44b
Cleaned up text
2017-01-17 15:53:24 +01:00
Ethan Frey
732274b7f6
Add tests for client-server proofs over socket and grpc
2017-01-17 15:53:24 +01:00
Ethan Frey
cfc3f24751
Everything compiles, test proof in dummy app
2017-01-17 15:44:41 +01:00
Ethan Frey
7cd39dafea
Update protocol buffers
2017-01-17 15:44:40 +01:00
Ethan Frey
58ea995032
Begin adding proof calls
2017-01-17 15:42:54 +01:00
Ethan Frey
98c4679f39
Fixed Makefile to cleanup after run
2017-01-17 15:41:11 +01:00
Tzu-Jung Lee
55cb08722d
lint: s/+=1/++, remove else clauses
2017-01-17 00:30:36 -08:00
Tzu-Jung Lee
af2a66b226
test_app: unexport internal function.
...
This reverts commit 24c9b2761d7da5ab5084310f0cb3e51c7fc9738d.
2017-01-16 23:23:19 -08:00
Tzu-Jung Lee
9134905f42
cleanup: replace common.Exit with log.Crit or log.Fatal
...
Later we can pick another logger that has fatal, like zap?
2017-01-16 23:23:19 -08:00
Tzu-Jung Lee
1150bbfe36
lint: s/common.Fmt/fmt.Sprintf
2017-01-16 23:20:04 -08:00
Tzu-Jung Lee
fcaa545e1e
lint: remove dot import (go-common)
...
Spell out the package explicitly.
This commit is totally textual, and does not change any logic.
The swiss-army knife package may serve a kick-start in early
stage development. But as the codebase growing, we might want
to retire it gradually:
For simple wrapping functions, just inline it on the call site.
For larger pice of code, make it an independent package.
2017-01-16 23:20:04 -08:00
Tzu-Jung Lee
c65bb21a51
Makefile: add 'build' target
2017-01-16 22:33:48 -08:00
Tzu-Jung Lee
aae3c91e88
fmt: run 'make fmt'
2017-01-16 22:03:27 -08:00
Tzu-Jung Lee
235b18d694
Makefile: add gmt and lint
2017-01-16 22:02:45 -08:00
Jae Kwon
05096de368
Add Result.String
2017-01-15 14:43:16 -08:00
Ethan Buchman
6526ab2137
Merge pull request #50 from tendermint/hotfix_make
...
Make sure we install before test, since test relies on counter etc
2017-01-13 13:17:24 -05:00
Jae Kwon
b9d1465488
Make sure we install before test, since test relies on counter etc
2017-01-13 10:12:38 -08:00
Ethan Buchman
68ef6bc1bf
update README
2017-01-13 03:17:53 -05:00
Ethan Buchman
699d45bc67
Merge pull request #48 from tendermint/develop
...
move glide deps to master
2017-01-13 00:26:36 -05:00
Ethan Buchman
5626a1125a
move glide deps to master
2017-01-13 00:24:38 -05:00
Ethan Buchman
72f6dacd22
fix tests
2017-01-12 22:32:20 -05:00
Ethan Buchman
068afb5b7f
Merge pull request #36 from tendermint/develop
...
v0.3.0, for Tendermint v0.8.0
2017-01-12 22:03:00 -05:00
Ethan Buchman
b5ca28d60f
Merge branch 'master' into develop
...
Conflicts:
README.md
2017-01-12 21:44:09 -05:00
Ethan Buchman
b27edfd189
Merge pull request #1 from tendermint/develop
...
Include pwd dir to StartProcess
2017-01-12 21:39:27 -05:00
Ethan Buchman
fddee66d90
Merge pull request #8 from tendermint/develop
...
use mtx in OnStop
2017-01-12 21:38:04 -05:00
Ethan Buchman
996c483f23
Merge pull request #4 from tendermint/develop
...
C LevelDB
2017-01-12 21:37:57 -05:00
Ethan Buchman
e289af53b6
Merge pull request #6 from tendermint/develop
...
Develop
2017-01-12 21:37:18 -05:00
Ethan Buchman
42b7bfbf0c
update version and glide
2017-01-12 21:20:09 -05:00
Ethan Buchman
624dca61b3
Merge pull request #47 from tendermint/rename
...
Rename
2017-01-12 16:06:40 -05:00
Ethan Buchman
5189a2248d
TMSP -> ABCI
2017-01-12 16:04:32 -05:00
Ethan Buchman
80f377135b
AppendTx -> DeliverTx
2017-01-12 15:27:08 -05:00
Ethan Buchman
2e414ebe6b
Merge pull request #42 from tendermint/collapse_info
...
Flatten ResponseInfo
2017-01-12 15:20:59 -05:00
Ethan Buchman
490a96ef66
drop unneeded variable copy
2017-01-12 15:18:38 -05:00
Jae Kwon
f8167872d8
EndBlock also returns ResponseEndBlock
2017-01-12 14:50:41 -05:00
Jae Kwon
8b76f3dd00
Make fields in ResponseInfo be flat
2017-01-12 14:50:41 -05:00
Jae Kwon
0d82d26408
Frist commit on types.proto
2017-01-12 14:50:08 -05:00
Ethan Buchman
2337086736
use mtx in OnStop
2017-01-12 14:32:48 -05:00
Ethan Buchman
a7b7fe83d6
Merge pull request #46 from tendermint/updates
...
Updates
2017-01-12 01:11:11 -05:00
Ethan Buchman
831cb4adcd
update glide
2017-01-12 01:08:31 -05:00
Ethan Buchman
e6b9a2b6aa
response struct and persistent args
2017-01-12 01:04:25 -05:00
rigelrozanski
81b2697cce
fix console exit, closes #35
2017-01-12 01:04:25 -05:00
rigelrozanski
c31df4081c
added counter query support
2017-01-12 01:04:22 -05:00
Ethan Buchman
465c77e120
Merge pull request #43 from mappum/develop
...
tmsp-cli arg string handling + Make dummy query response values more clear
2017-01-12 00:23:33 -05:00
Matt Bell
4bb65366f4
Update CLI test string args
2017-01-03 19:26:37 -08:00
Matt Bell
cd6fa3018c
Return errors from cmd functions instead of printing
2017-01-03 10:53:14 -08:00
Matt Bell
86a6deba3f
Remove debug printing
2017-01-02 18:49:54 -08:00
Matt Bell
e748127b7f
Don't include quotes in quoted string args
2017-01-02 18:49:10 -08:00
Matt Bell
115e6939d0
Require quotes or 0x<hex> for string args
2017-01-02 18:28:47 -08:00
Matt Bell
ab211d2dbe
Include 'value' and 'valueHex' fields in dummy query response
2017-01-02 18:20:30 -08:00
Matt Bell
75ea378a6a
Encode dummy query values as hex strings
2017-01-02 18:10:12 -08:00
Jae Kwon
c9b6b6e591
Merge pull request #39 from sjamayee/develop
...
link to TMSP Blog post
2017-01-02 12:37:48 -08:00
Jae Kwon
b0a17b1804
Fix blog link
2017-01-02 12:12:23 -08:00
Ethan Buchman
2645626c33
Merge pull request #3 from tendermint/swap_go_c
...
go and c strings were swapped
2016-12-22 21:07:31 -05:00
Ethan Buchman
33e35c4732
go and c strings were swapped
2016-12-22 15:44:51 -05:00
jac
5f6ad831b0
link to TMSP Blog post
2016-12-15 14:47:31 +01:00
Ethan Buchman
a552e49b50
Reverts commit f40b1b to a6a67e
2016-12-12 23:08:31 -05:00
Jae Kwon
c5f008d60f
Fix TMSP tutorial outputs
2016-12-06 03:57:09 -08:00
Jae Kwon
b3e5d0afa1
Update glide.*
2016-12-06 03:22:53 -08:00
Jae Kwon
5e83e481bf
Fix tests; Update go-merkle API
2016-12-06 02:15:32 -08:00
Jae Kwon
7f507d69fa
Include pwd dir to StartProcess
2016-12-06 02:08:05 -08:00
Jae Kwon
0416e0aa9c
Close opened files
2016-12-06 01:46:23 -08:00
Jae Kwon
70e694ee76
Fix ThrottleTimer null-pointer error / race condition
2016-12-06 01:39:04 -08:00
Jae Kwon
5e2a1d3e30
Fix tests; Support 'leveldb' for legacy
2016-11-30 20:22:35 -08:00
Jae Kwon
5ab5538d6c
Move cleveldb to own file w/ build tag condition 'gcc'
2016-11-30 20:15:29 -08:00
Jae Kwon
226eb6554f
Support for Run() convenience function
2016-11-29 16:55:32 -08:00
Jae Kwon
9f81134388
Add support for levigo bindings
2016-11-29 16:06:36 -08:00
Ethan Buchman
40448a3897
types: update LastBlockInfo and ConfigInfo
2016-11-23 18:27:27 -05:00
Ethan Buchman
2dce41ad6a
types: pretty print validators
2016-11-23 18:22:44 -05:00
Ethan Buchman
e813b8c71d
counter: fix tx buffer overflow
2016-11-23 18:22:22 -05:00
Ethan Buchman
f4e97a5db1
Merge pull request #37 from tendermint/valset
...
Valset
2016-11-22 21:10:26 -05:00
Ethan Buchman
37b5cca87c
update cli example for new query result format
2016-11-22 21:06:50 -05:00
Ethan Buchman
ef3eb4a30e
update glide
2016-11-22 21:06:39 -05:00
Ethan Buchman
dc13ec05a1
NewIAVLTree takes waldir
2016-11-22 20:44:41 -05:00
Ethan Buchman
b200b82418
dummy: valset changes and tests
2016-11-22 14:01:25 -05:00
Ethan Buchman
9a2d3e51ed
heights are uint64
2016-11-22 14:00:31 -05:00
Jae Kwon
63186e34b3
Fix race condition
2016-11-21 20:26:47 -08:00
Jae Kwon
2a306419c8
Remove spurious fmt
2016-11-21 20:19:01 -08:00
Jae Kwon
f40b1b65f8
Add Tempdir
2016-11-21 20:03:59 -08:00
Jae Kwon
890e240730
Remove AutoFile tests
2016-11-21 20:03:59 -08:00
Jae Kwon
25dc9ae345
QuitService->BaseService
2016-11-21 20:03:59 -08:00
Jae Kwon
a6a67ea9b2
Remove AutoFile; Use go-autofile instead
2016-11-21 20:03:59 -08:00
Jae Kwon
6b4160f2a5
Add Tempdir
2016-11-21 20:01:11 -08:00
Jae Kwon
dd12bd8f1b
Fix checkTotalSizeLimit bug; remove more than 1 file at a time
2016-11-21 19:57:17 -08:00
Jae Kwon
a528af55d3
Group is a BaseService; TotalSizeLimit enforced; tests fixed
2016-11-21 19:09:14 -08:00
Jae Kwon
d1848762cf
Fix issue where buffered writes may split a line to two files
2016-11-20 17:19:15 -08:00
Ethan Buchman
3a70c07ed1
Merge pull request #29 from tendermint/info_and_header
...
Info and header
2016-11-16 16:26:58 -05:00
Ethan Buchman
0bdb3b887e
fix chain_aware app
2016-11-16 16:22:52 -05:00
Ethan Buchman
60e0842ef9
Header.LastBlockID
2016-11-16 16:11:36 -05:00
Ethan Buchman
df299d03c4
block_height is int32
2016-11-16 13:32:18 -05:00
Ethan Buchman
ddb2b01631
BeginBlock(hash, header)
2016-11-16 13:32:18 -05:00
Ethan Buchman
7901825ad9
persistent dummy
2016-11-16 13:32:01 -05:00
Ethan Buchman
debbf122db
add version/block/config to Info. add header to BeginBlock
2016-11-16 13:32:01 -05:00
Ethan Buchman
eece35eeeb
glide: update go-common
2016-11-15 14:47:39 -05:00
Jae Kwon
1dafd3a89b
Remove spurious fmt call
2016-11-15 14:39:13 -05:00
Ethan Buchman
6aa85b642e
BeginBlock
2016-11-15 14:39:13 -05:00
Jae Kwon
7998ba668a
QuitService->BaseService
2016-11-15 14:39:13 -05:00
Ethan Buchman
8374785c1d
update glide, grpc to v4
2016-11-15 14:11:01 -05:00
Ethan Buchman
fe96cfc56d
Merge pull request #34 from tendermint/glide
...
Glide
2016-11-10 02:43:53 +00:00
Ethan Buchman
1f9142873b
add glide
2016-11-10 02:32:23 +00:00
Jae Kwon
dc8fa06e64
Add MakeSimpleSearchFunc
2016-11-05 17:58:50 -07:00
Jae Kwon
a20c98e619
Add Monitor.SetREMA()
2016-11-04 06:14:49 -07:00
Jae Kwon
1261fca160
FindLast
2016-10-30 04:29:40 -07:00
Jae Kwon
916f3d789b
Size() returns 0 if file doesn't exist
2016-10-28 14:50:46 -07:00
Jae Kwon
5e9c5dc413
Add Group.WriteLine
2016-10-28 13:56:31 -07:00
Jae Kwon
fa3daa7abc
Remove AutoFile tests
2016-10-28 12:11:23 -07:00
Jae Kwon
2781df39e5
QuitService->BaseService
2016-10-28 12:09:22 -07:00
Jae Kwon
0311042336
Add CHALLENGE
2016-10-28 09:10:33 -07:00
Jae Kwon
d741b81ab5
Add better docs for Group
2016-10-26 22:12:56 -07:00
Jae Kwon
44f2818a3d
Remove AutoFile; Use go-autofile instead
2016-10-26 21:50:28 -07:00
Jae Kwon
c26b857900
Fix Search and add test
2016-10-26 21:50:07 -07:00
Jae Kwon
1859c4d5fe
First commit
2016-10-26 16:23:19 -07:00
Jae Kwon
28b3d52948
first commit
2016-10-26 16:22:43 -07:00
Ethan Buchman
ab98bffbb1
codegangsta => urfave
2016-10-20 21:57:33 -04:00
Ethan Buchman
1c85cb98a4
Merge pull request #7 from tendermint/develop
...
EventSwitch is an interface
2016-10-20 21:23:35 -04:00
Jae Kwon
1c62bb6dad
Merge pull request #5 from tendermint/develop
...
Reset() and SIGHUP for AutoFiles
2016-10-20 02:01:00 -07:00
Jae Kwon
1a24e6e237
Let SIGHUP close AutoFiles
2016-10-17 16:24:55 -07:00
Ethan Buchman
2e424ee663
service: Reset() for restarts
2016-10-17 16:24:55 -07:00
Ethan Buchman
1652dc8b3f
EventSwitch is an interface
2016-10-10 03:20:42 -04:00
Jae Kwon
5d3eb0328a
Update README.md
2016-09-28 09:57:04 +09:00
Ethan Buchman
538862321a
bump version
2016-09-12 12:23:36 -04:00
Ethan Frey
dcd4ab5cd2
Make console more robust to typos
2016-09-12 10:21:20 +02:00
Ethan Buchman
ead192adbb
test: more verbosity
2016-09-10 20:10:59 -04:00
Ethan Buchman
0e2a6b41f8
Merge pull request #30 from tendermint/develop
...
Develop
2016-09-10 19:04:30 -04:00
Ethan Buchman
47e06734f6
Merge pull request #4 from tendermint/throttle
...
throttle_timer: fix race, use mtx instead of atomic
2016-09-10 17:59:15 -04:00
Ethan Buchman
930880f574
throttle_timer: fix race, use mtx instead of atomic
2016-09-10 17:52:26 -04:00
Ethan Buchman
42e4f4693c
client: safe error handling
2016-09-08 21:41:35 -04:00
Jae Kwon
9dc4dc1960
Add BitArray.Update()
2016-09-05 18:26:43 -07:00
Ethan Buchman
cb12ff94d3
Merge pull request #28 from tendermint/fix_circle
...
fix tests
2016-08-24 20:19:44 -04:00
Ethan Buchman
22894d2f60
fix tests
2016-08-24 20:16:55 -04:00
Ethan Buchman
3329868a1d
grpc fix
2016-08-24 02:11:31 -04:00
Ethan Buchman
706d443617
Merge pull request #27 from tendermint/disconnect
...
Disconnect
2016-08-23 11:34:42 -04:00
Ethan Buchman
83920a1c37
fixes from review
2016-08-17 23:27:49 -04:00
Ethan Buchman
1b13f14e08
consolidate example tests; grpc fail fast
2016-08-15 15:04:32 -04:00
Ethan Buchman
a8066f9c82
return error if not running
2016-08-10 19:35:54 -04:00
Ethan Buchman
d3bdb49aae
remote_client -> socket_client; use logger
2016-08-10 19:35:50 -04:00
Jae Kwon
4b11d62bdb
Add Signature.Equals
2016-07-24 13:35:44 -07:00
Ethan Buchman
58bacfb04e
Merge pull request #21 from tendermint/develop
...
Develop
2016-07-23 19:23:33 -04:00
Ethan Buchman
fbbf82ec64
update README.md
2016-07-23 19:05:46 -04:00
Ethan Buchman
3b329039d8
better testing. cli test for tutorial
2016-07-23 18:57:05 -04:00
Ethan Buchman
a263323d5c
update readme. --verbose makes batch look like console
2016-07-23 17:37:09 -04:00
Ethan Buchman
3baa390bba
reduce numTimes in test
2016-07-23 11:24:48 -04:00
Ethan Buchman
ba11348508
update make test
2016-07-22 01:23:13 -04:00
Silas Davis
b0c0631468
Spelling
2016-07-13 18:50:06 +01:00
Ethan Buchman
49a67aee8a
add circle.yml. disable js test
2016-07-06 17:13:33 -04:00
Ethan Buchman
732634112b
run grpc finishAsyncCall in go routine
2016-07-06 16:57:02 -04:00
Ethan Buchman
88f8141ab8
cleanup cli, drop expr
2016-07-01 20:22:58 -04:00
Ethan Buchman
3dabf304a1
fix race condition in repeat_timer
2016-06-26 01:00:51 -04:00
Ethan Buchman
cefb3a45c0
expose LvlNotice
2016-06-26 00:45:56 -04:00
Ethan Buchman
2c21c7be89
call reqRes.SetDone in grpc client
2016-06-22 14:25:18 -04:00
Ethan Buchman
48fa21511b
Merge pull request #4 from benjaminbollen/issue1_concurreny_bug_in_remove_listener
...
Fixes #1 concurreny bug in remove listener
2016-06-21 10:48:51 -04:00
Benjamin Bollen
c15bcd487f
fixes #1 ; events.go: claim full lock on delete listener
2016-06-17 14:53:19 +02:00
Benjamin Bollen
acabc4d3bb
Introduce events_test.go with five unit tests asserting normal behaviour
...
and a sixth unit test to probe race conditions on RemoveListener.
2016-06-17 14:53:01 +02:00
Ethan Buchman
73e5c3cb7b
update grpc version
2016-06-16 19:12:54 -04:00
Ethan Buchman
8c947760e6
grpc.SupportPackageIsVersion3
2016-06-16 19:04:59 -04:00
Jae Kwon
f41bc5f119
Merge pull request #13 from tendermint/protobuf
...
Protobuf + GRPC
2016-06-11 11:12:49 -07:00
Ethan Buchman
516a929e5f
some cleanup
2016-05-24 22:40:47 -04:00
Ethan Buchman
1ab3c74718
silly grpc client
2016-05-23 14:45:07 -04:00
Ethan Buchman
f84f11ffe7
base grpc support
2016-05-18 18:29:52 -04:00
Ethan Buchman
c3cc5375be
ignore mustConnect for now. fix test_counter
2016-05-17 22:45:45 -04:00
Ethan Buchman
5dc7bee57b
Responses/Requests -> Value
2016-05-17 20:06:24 -04:00
Ethan Buchman
32f83f9494
fix up tmsp-cli, tests
2016-05-14 03:09:47 -04:00
Ethan Buchman
35f4f0e271
use real protobuf message types
2016-05-14 02:22:32 -04:00
Jae Kwon
529efe50ea
No global config
2016-05-08 15:00:33 -07:00
Jae Kwon
31fdd21c7e
No global config
2016-05-08 15:00:13 -07:00
Jae Kwon
7ffd289909
Conform to new codegangsta.cli ActionFunc interface
2016-05-05 14:11:18 -07:00
Jae Kwon
3910f871dd
Trivial
2016-05-05 13:58:39 -07:00
Jae Kwon
9a8d40b87c
Update README.md
2016-05-04 13:37:22 -07:00
Jae Kwon
41cfb7b677
Remove ReadSignature* methods
2016-04-21 18:05:15 -07:00
Jae Kwon
7e767e9548
Secp256k1 pubkeys are 64 bytes. Strip btcec prefix byte
2016-04-20 08:46:07 -07:00
Jae Kwon
c121163635
ReadSignature*
2016-04-19 08:49:41 -07:00
Jae Kwon
d57d5ff3c9
PrivKey.Equals
2016-04-19 01:26:40 -07:00
Jae Kwon
8b34fd2e51
Add secp256k1 support
2016-04-19 01:02:31 -07:00
Jae Kwon
d471b06bd8
Added C++ and Javascript impls
2016-04-15 15:01:05 -07:00
Jae Kwon
ca95184373
s/Invalid[Address,Amount]/Invalid[Input,Output]/g
2016-04-13 14:42:00 -07:00
Jae Kwon
82a411fca5
New TMSP message BeginBlock
2016-03-26 22:35:23 -07:00
Jae Kwon
121db71f48
Add ErrBaseUnknownPlugin
2016-03-24 14:17:48 -07:00
Jae Kwon
1dfc6950dd
TMSPResult tweak
2016-03-24 11:27:04 -07:00
Jae Kwon
ccc55bd304
Add ErrUnknownAddress
2016-03-24 11:12:16 -07:00
Jae Kwon
062c33c109
TMSP Client is an interface
2016-03-24 10:42:25 -07:00
Jae Kwon
83fc4fc3b6
Allow late connecting
2016-03-23 21:07:03 -07:00
Jae Kwon
6785b9a3b6
CommitSync returns tmsp.Result
2016-03-23 02:50:29 -07:00
Jae Kwon
3f0d9b3f29
Signature bytes
2016-03-22 15:21:18 -07:00
Jae Kwon
5a3975d54a
Add wire expression support
2016-03-22 15:18:03 -07:00
Jae Kwon
3d2d8c7d6a
Result convenience methods; Shuffled Base* code types
2016-03-21 15:33:16 -07:00
Jae Kwon
8cac8600e5
Return NewServer listener start error
2016-03-20 17:38:03 -07:00
Jae Kwon
06a0ac8188
Add NewError -> Result with no data
2016-03-20 17:20:41 -07:00
Jae Kwon
55e2ce9de2
Group (code,data,log) return values into types.Result
2016-03-20 17:10:13 -07:00
Ethan Buchman
dcfa46af13
BitArray.IsEmpty()
2016-03-18 02:30:15 -04:00
Jae Kwon
eddde7f46a
Added customized bcrypt
2016-03-17 20:37:30 -07:00
Jae Kwon
8152c18c35
Revert Address() scheme change
2016-03-15 15:58:43 -07:00
Jae Kwon
29a6d511b4
Add testutil; Clean gov return codes
2016-03-15 11:39:20 -07:00
Jae Kwon
9a95e7b7a5
Added Bytes() and *FromBytes()
2016-03-15 11:11:54 -07:00
Jae Kwon
185547efc1
Add ascii armor support
2016-03-13 14:00:27 -07:00
Jae Kwon
181aa56c87
Added symmetric encrypt/decrypt methods
2016-03-13 12:55:02 -07:00
Jae Kwon
f59fe0c8e0
s/Seed/MixEntropy/g
2016-03-13 10:14:24 -07:00
Jae Kwon
461c3b9785
Remove CRand* from go-common
2016-03-13 09:57:10 -07:00
Jae Kwon
264d2a3eef
Add seed-able cryptographic random.
2016-03-13 09:40:15 -07:00
Jae Kwon
61c34ade0d
Remove BeginBlock
2016-03-06 18:01:37 -08:00
Jae Kwon
84391b36d3
Conform to new go-config default config behavior
2016-03-06 12:31:22 -08:00
Jae Kwon
36c25f242f
s/InitValidators/InitChain/g, s/SyncValidators/EndBlock/g, added BeginBlock
2016-03-05 19:18:34 -08:00
Jae Kwon
72540f9cac
Fix tests to clean up after themselves
2016-02-29 21:53:04 -08:00
Jae Kwon
8b88496550
Merge branch 'validators'
2016-02-29 18:53:06 -08:00
Jae Kwon
dcabdad9b9
Implement Init/Sync Validators
2016-02-28 19:46:01 -08:00
Jae Kwon
1ffe780976
Initial update for Init/SyncValidators
2016-02-28 18:53:24 -08:00
Ethan Buchman
f23822bf55
export NewReqRes
2016-02-27 07:02:34 +00:00
Ethan Buchman
500c173604
nil app
2016-02-26 20:04:28 -05:00
Ethan Buchman
727fcd4ada
get_hash -> commit; printResponse improvement
2016-02-23 13:36:18 -05:00
Jae Kwon
b2bd661a61
s/TMSPClient/Client/g
2016-02-21 23:55:45 -08:00
Jae Kwon
2c1aa7af2b
s/StartListener/NewServer/g
2016-02-21 23:44:33 -08:00
Jae Kwon
1559ae1ac9
Add BitArray.Bytes()
2016-02-21 00:14:08 -08:00
Jae Kwon
90e38f08f4
Added counter test written in Golang
2016-02-14 14:59:53 -08:00
Jae Kwon
88fcacac7a
s/GetHash/Commit/g
2016-02-14 13:11:06 -08:00
Jae Kwon
851b961daf
Update README
2016-02-14 12:51:49 -08:00
Jae Kwon
089489cbf5
Merge branch 'blackstar'
2016-02-08 13:48:01 -08:00
Jae Kwon
b9499ad03e
Implemented dummy query
2016-02-08 13:47:47 -08:00
Jae Kwon
adf0392e56
Callbacks for ReqRes
2016-02-08 13:30:30 -08:00
Jae Kwon
76ba23e4c0
Fix bug in GenPrivKeyEd25519FromSecret
2016-02-08 02:18:06 -08:00
Jae Kwon
62550f474f
Merge branch 'master' of https://github.com/tendermint/go-crypto
2016-02-08 00:53:00 -08:00
Jae Kwon
372191dd5f
KeyString() in PubKey; Fix tests
2016-02-08 00:50:52 -08:00
Jae Kwon
2d5e1e8340
Callbacks for ReqRes
2016-02-08 00:50:00 -08:00
Ethan Buchman
b35492d9e7
better response printing
2016-02-07 19:59:19 -08:00
Jae Kwon
cf0ad66d51
Compile new types.proto for new CodeType enums
2016-02-05 23:15:08 -08:00
Ethan Buchman
4901b71ade
SetLogLevel
2016-02-05 23:00:03 +00:00
Jae Kwon
2281bba708
Add two new CodeTypes
2016-02-03 01:58:23 -08:00
Ethan Buchman
9364accf1f
service: start/stop logs are info, ignored are debug
2016-02-03 02:04:00 -05:00
Ethan Buchman
02022e356a
make ignore already stopped service Debug
2016-02-02 16:19:46 -05:00
Jae Kwon
69e587f57f
Use protobuf enums for RetCode. s/RetCode/CodeType/g
2016-01-31 20:39:43 -08:00
Jae Kwon
012abc437b
Use protobuf enums
2016-01-31 19:56:02 -08:00
Jae Kwon
028cc4aa06
Query returns Code
2016-01-31 18:11:24 -08:00
Jae Kwon
e110a04ae2
Fix benchmark -- needed to flush
2016-01-30 19:44:04 -08:00
Jae Kwon
2936c68339
Convert TMSP to use Protobuf
2016-01-30 19:36:33 -08:00
Jae Kwon
6132ad7d6e
Do not exit upon error, for tmsp-cli console
2016-01-29 16:06:39 -08:00
Jae Kwon
799ae4c006
Move js example to js-tmsp/example
2016-01-29 11:47:13 -08:00
Jae Kwon
b21c6b5e5b
s/logstr/logStr/g
2016-01-25 14:15:17 -08:00
Jae Kwon
9696a71f6e
Log not error; Remove Listener TMSP messages...; Make counter BigEndian
2016-01-25 13:58:34 -08:00
Jae Kwon
c4b87dcf14
new_message
2016-01-23 20:49:15 -08:00
Jae Kwon
e2426d2944
Start TMSPClient automatically
2016-01-22 17:56:56 -08:00
Jae Kwon
53a8a40785
Swap Query return params
2016-01-22 16:18:35 -08:00
Jae Kwon
8ae0a0a481
Add Query; Add TMSPClient
2016-01-22 15:50:11 -08:00
Jae Kwon
3f812038a4
Add Query; Add benchmark tests
2016-01-18 14:37:42 -08:00
Jae Kwon
19f5a93cff
Adjust Service log notice for duplicate stops
2016-01-18 13:19:11 -08:00
Jae Kwon
7b75ca7bb5
Remove SubscribeToEvent
2016-01-18 11:15:46 -08:00
Jae Kwon
ca259ce82a
Conform to go-merkle version 0.2.0
2016-01-17 21:29:18 -08:00
Jae Kwon
a7878f1d0d
Add basic test for level_db
2016-01-17 13:13:19 -08:00
Ethan Buchman
1fb7234ff5
fix test
2016-01-16 13:49:16 -05:00
Jae Kwon
e8ffe6bb4c
Remove AssertIsEventData; Remove EventResult
2016-01-14 11:01:44 -08:00
Ethan Buchman
a5f26a8999
EventResult
2016-01-12 18:35:42 -05:00
Jae Kwon
44f22e351b
Add RetCodeBadNonce and fix response formats
2016-01-12 14:06:31 -08:00
Ethan Buchman
089435d31b
move from tendermint/tendermint
2016-01-12 16:21:43 -05:00
Ethan Buchman
e85e2842a0
Initial commit
2016-01-12 16:13:26 -05:00
Jae Kwon
8dacd4172e
Fix bug where Unset halts ThrottleTimer
2016-01-11 17:12:38 -08:00
Jae Kwon
c58b1cbf8a
Add ThrottleTimer.Unset
2016-01-10 08:12:10 -08:00
Jae Kwon
87b9866d1f
Fix Makefile to get_deps then install
2016-01-09 19:05:41 -08:00
Jae Kwon
f15476b157
Remove TMSP Commit/Rollback; Add CheckTx
2016-01-08 17:07:19 -08:00
Ethan Buchman
aa3e87450a
fix tests
2016-01-08 16:06:33 -05:00
Jae Kwon
271a424d42
Merge pull request #7 from readevalprint/python3
...
Python3 example
2016-01-05 14:54:40 -08:00
Jae Kwon
57ce0c12e8
Merge pull request #6 from readevalprint/pep8
...
Python Pep8 style fixes
2016-01-05 14:54:12 -08:00
tim watts
eece2ae7a5
use floor division
2016-01-05 22:37:22 +00:00
tim watts
3092d2c043
missing modulename and fix refactoring
2016-01-05 22:00:19 +00:00
tim watts
65a0156412
python3 example
2016-01-05 21:49:21 +00:00
tim watts
8267f2ba4a
Fix except/pass
2016-01-03 16:42:58 +00:00
tim watts
06b48fe99f
pep8 style fixes
2016-01-03 16:35:23 +00:00
Jae Kwon
ba01cfbb58
Remove spurious fmt.Print
2016-01-02 16:20:39 -08:00
Jae Kwon
1b7243a990
Update README to point to blog post only
2016-01-01 19:09:03 -08:00
Jae Kwon
0c4650f329
Update README.md
...
Added introduction by Zaki
2016-01-01 18:19:58 -08:00
Jae Kwon
980f02a500
Change license to Apache2.0
2015-12-23 14:19:50 -08:00
Jae Kwon
634527f5b6
Change license to Apache2.0
2015-12-23 14:18:53 -08:00
Jae Kwon
ea56ed5ea2
Change license to Apache2.0
2015-12-23 14:17:27 -08:00
Jae Kwon
b24269fefc
Change license to Apache2.0
2015-12-23 14:16:29 -08:00
Jae Kwon
f592570310
Change license to Apache2.0
2015-12-23 14:14:41 -08:00
Jae Kwon
16e5e4e8c8
Change license format
2015-12-23 14:11:59 -08:00
Jae Kwon
da1ef93cef
Added link to tendermint.com blog post
2015-12-21 17:41:35 -08:00
Jae Kwon
20913c5e0e
Add .pyc to gitignore; Fix js example
2015-12-21 17:23:05 -08:00
Jae Kwon
cf3b287245
Remove spurious tmsp_cli.go
2015-12-21 16:36:50 -08:00
Jae Kwon
13c50a5fdf
Merge pull request #5 from tendermint/js
...
Length prefixed tmsp messages; counter app in javascript
2015-12-21 16:35:10 -08:00
Jae Kwon
844c4a519d
Fix tmsp-cli to conform to go-wire new TypeByte behavior; Rename tmsp_cli to tmsp-cli
2015-12-21 16:18:41 -08:00
Ethan Buchman
3fb3a81b92
fix js
2015-12-21 18:47:14 -05:00
Ethan Buchman
dc75b71f55
tmsp_cli -> tmsp-cli
2015-12-21 18:12:38 -05:00
Ethan Buchman
d560c1d455
example/js
2015-12-21 18:03:57 -05:00
Ethan Buchman
b7b4109413
msg prefix python
2015-12-21 18:03:57 -05:00
Jae Kwon
2d9abb06ca
Conform to new go-wire TypeByte behavior
2015-12-21 09:58:27 -08:00
Jae Kwon
3393fc34c2
Use wire.*LengthPrefixed
2015-12-20 09:16:05 -08:00
Ethan Buchman
a357f3156a
RetCodeEncodingError
2015-12-17 13:48:36 -08:00
Jae Kwon
4b67e9e9d2
Add Makefile
2015-12-17 13:46:04 -08:00
Jae Kwon
035966d273
Merge pull request #4 from tendermint/python
...
add counter app in python
2015-12-17 13:41:56 -08:00
Ethan Buchman
36b7045f5c
example/golang
2015-12-14 20:00:48 -05:00
Ethan Buchman
af2a1a6fc1
python fixes, tests
2015-12-14 20:00:48 -05:00
Ethan Buchman
bb4a58aa0a
add counter app in python
2015-12-14 19:58:51 -05:00
Jae Kwon
acdbd88e88
Add BypassHandler and NewBypass to bypass main filter
2015-12-09 09:38:40 -08:00
Jae Kwon
4a0469d3ec
Make counter app use LittleEndian uint64 encoding
2015-12-08 21:52:40 -08:00
Jae Kwon
5c20d1b3e5
Add way to enforce serial order in counter app from command line
2015-12-08 21:12:11 -08:00
Ethan Buchman
36e89b606e
fix test
2015-12-05 17:52:40 +00:00
Jae Kwon
21abda0602
Make Counter app return nil hash initially
2015-12-04 01:01:07 -08:00
Jae Kwon
3b50efbe02
WriteFile*() takes file mode
2015-12-03 23:56:50 -08:00
Jae Kwon
4b6741ca3b
EnsureDir() takes file mode
2015-12-03 23:44:24 -08:00
Jae Kwon
7b1ebb9245
Update README.md
2015-12-03 15:47:20 -08:00
Jae Kwon
bbaacce472
Change server listener addr to 0.0.0.0
2015-12-02 00:25:39 -08:00
Jae Kwon
7931e2b9ca
Change port 8080 to 46658
2015-12-01 15:27:50 -08:00
Jae Kwon
4fc7aa234f
Merge pull request #3 from tendermint/console
...
tmsp cli enhancements and simple tests
2015-12-01 11:26:18 -08:00
Ethan Buchman
3e721456f5
tmsp batch and some tests
2015-12-01 01:49:54 -05:00
Ethan Buchman
86c2484c29
cmdInfo, cmdSetOption; append_tx can take hex
2015-11-30 23:49:18 -05:00
Ethan Buchman
93308a3e6f
interactive tmsp console
2015-11-30 20:56:36 -05:00
Jae Kwon
7448cdc154
Add serial=on option for CounterApplication
2015-11-30 15:22:42 -08:00
Jae Kwon
e3d88d2d79
Add ScanRightDeleteRandom test; Add GCRandom test
2015-11-30 12:59:05 -08:00
Jae Kwon
dbd04eadeb
Remove CList, moved to go-clist
2015-11-29 21:23:33 -08:00
Jae Kwon
d939cd964b
First commit of CList
2015-11-29 21:22:55 -08:00
Jae Kwon
6a5b804523
Refactor CounterApplication to implement AppContext
2015-11-29 14:34:15 -08:00
Jae Kwon
5d994944c6
Refactor Application to Application & AppContext
2015-11-29 14:22:30 -08:00
Jae Kwon
8b9df7d685
Merge pull request #2 from tendermint/cli
...
refactor dummy; flush tmsp reqs
2015-11-29 13:07:43 -08:00
Ethan Buchman
fe782cb8ac
server: allow multiple connections
2015-11-29 10:35:37 -05:00
Ethan Buchman
c21c2ed69b
counter example
2015-11-29 03:43:49 -05:00
Ethan Buchman
2de72d26cf
refactor dummy; flush tmsp reqs
2015-11-27 18:45:27 -05:00
Jae Kwon
80c7e26bee
Fix memory-leak in CList; Patched with DetachPrev/DetachHead
2015-11-27 14:09:15 -08:00
Jae Kwon
76189fde0d
Add Remove() implementation, CList is doubly-linked
2015-11-27 13:04:24 -08:00
Jae Kwon
e40c4834a8
Replace SetEventsMode with SetOption
2015-11-27 10:14:46 -08:00
Jae Kwon
9a72da4fcd
Add .gitignore file
2015-11-27 09:57:08 -08:00
Jae Kwon
edf3abaf8f
Merge pull request #1 from tendermint/retcode
...
retcode.Error() from go generate
2015-11-27 08:51:06 -08:00
Jae Kwon
32937f2815
Add Apache2.0 license
2015-11-27 08:51:49 -08:00
Ethan Buchman
4d0eb1d95a
retcode.Error() from go generate
2015-11-27 11:07:16 -05:00
Jae Kwon
c65e9e7d91
Added CList
2015-11-25 16:50:28 -08:00
Jae Kwon
201bf2374b
Update README; Remove GetEvents() from Application
2015-11-16 15:50:26 -08:00
Jae Kwon
d319c5be0d
Conform to go-wire 1.0
2015-11-10 12:49:07 -08:00
Jae Kwon
32b3a27a9a
Conform to new go-wire 1.0
2015-11-10 11:53:35 -08:00
Jae Kwon
e8505a714b
Handle RequestInfo in handleRequest
2015-11-09 18:17:00 -08:00
Jae Kwon
5aec38bdc6
Fix DummyyApplication usage bug; Should call New
2015-11-09 18:16:35 -08:00
Jae Kwon
cce812b1fa
Remove retcode from echo; Add Info message
2015-11-09 16:29:45 -08:00
Jae Kwon
ef93c95853
Added new Flush request/response type
2015-11-08 15:18:58 -08:00
Jae Kwon
0bd4061cf6
initial commit
2015-11-07 20:42:02 -08:00
Jae Kwon
0424228e97
Added net.go Connect()
2015-11-05 15:00:42 -08:00
Jae Kwon
70b9a368ca
...
2015-11-05 14:21:33 -08:00
Jae Kwon
db87630689
initial commit
2015-11-05 10:54:58 -08:00
Jae Kwon
31a456c8d4
update package name
2015-10-25 13:45:13 -07:00
Jae Kwon
fcdea621bf
first commit
2015-10-25 13:42:49 -07:00
Jae Kwon
b072ed3173
...
2015-10-22 12:33:53 -07:00
Jae Kwon
28d39f8726
...
2015-10-22 12:31:02 -07:00
Jae Kwon
6b54e7b8d9
Added License
2015-10-22 12:30:20 -07:00
Jae Kwon
cfeac977fd
first commit
2015-10-21 18:19:14 -07:00
Jae Kwon
16372365c4
First commit
2015-10-21 12:15:19 -07:00
Maxim Khitrov
cca7078d47
Fix project name in LICENSE
2014-04-18 21:45:27 -04:00
Maxim Khitrov
3524264add
Add LICENSE and README files
2014-04-18 20:43:33 -04:00
Maxim Khitrov
6a20af8766
Rename package to 'flowrate'
2014-04-18 20:41:01 -04:00
Maxim Khitrov
10e10fd81d
Rename 'flowcontrol' directory
2014-04-18 20:32:46 -04:00
Maxim Khitrov
bec34fc8d7
Import flowcontrol package from Google Code
2014-04-18 20:31:57 -04:00