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
2017-10-30 13:01:18 -05:00
2017-12-28 03:05:55 -08:00
2018-02-02 22:31:17 -05:00
2017-04-18 17:56:05 -04:00
2017-12-29 11:01:37 -05:00
2017-11-11 11:25:30 -05:00
2017-11-09 17:42:32 -05:00
2018-01-02 10:53:56 -05:00
2017-10-11 12:48:05 +04:00
2018-02-02 23:49:14 -05:00
2018-02-02 18:09:48 +01:00
2017-12-06 02:05:57 -05:00
2018-02-02 12:51:30 +04:00
2017-04-18 17:56:05 -04:00
2017-12-29 10:42:02 -05:00

TMLIBS

This repo is a home for various small packages.

autofile

Autofile is file access with automatic log rotation. A group of files is maintained and rotation happens when the leading file gets too big. Provides a reader for reading from the file group.

cli

CLI wraps the cobra and viper packages and handles some common elements of building a CLI like flags and env vars for the home directory and the logger.

clist

Clist provides a linekd list that is safe for concurrent access by many readers.

common

Common provides a hodgepodge of useful functions.

db

DB provides a database interface and a number of implementions, including ones using an in-memory map, the filesystem directory structure, an implemention of LevelDB in Go, and the official LevelDB in C.

events

Events is a synchronous PubSub package.

flowrate

Flowrate is a fork of https://github.com/mxk/go-flowrate that added a SetREMA method.

log

Log is a log package structured around key-value pairs that allows logging level to be set differently for different keys.

merkle

Merkle provides a simple static merkle tree and corresponding proofs.

process

Process is a simple utility for spawning OS processes.

pubsub

PubSub is an asynchronous PubSub package.

S
Description
No description provided
Readme Apache-2.0
396 MiB
Languages
Go 85.9%
TeX 7.2%
TLA 4.9%
Shell 0.6%
Python 0.5%
Other 0.8%