No description
Find a file
2018-08-14 23:55:18 -07:00
cfg wip: commits, nodes, and trie are all backed with storage. 2018-08-07 19:29:05 -07:00
change fixup: add missing file 2018-08-07 19:39:58 -07:00
claim claim: don't re-calculate activeAt for those already active 2018-08-14 19:51:27 -07:00
cmd/claimtrie misc: export more functions, make save/load to db default. 2018-08-14 19:50:42 -07:00
nodemgr nodemgr: add locks for the node cache 2018-08-14 23:55:18 -07:00
trie wip: commits, nodes, and trie are all backed with storage. 2018-08-07 19:29:05 -07:00
claimtrie.go nodemgr: save and load nm.nextUpdates 2018-08-14 19:51:27 -07:00
commit.go commit: add locks 2018-08-14 19:46:51 -07:00
error.go wip: a few updates so far. 2018-08-05 15:12:35 -07:00
import.go nmodemgr, ct: add Value to AddClaim() and UpdateClaim() 2018-08-14 19:45:54 -07:00
README.md docs: add quick start guide to example section 2018-08-08 12:22:08 -07:00

ClaimTrie

coming soon

Installation

go get -u -v github.com/lbryio/claimtrie

Usage

Refer to claimtrie for an interactive CLI tool as example.

NAME:
   claimtrie - A CLI tool for LBRY ClaimTrie

USAGE:
   main [global options] command [command options] [arguments...]

VERSION:
   0.0.1

COMMANDS:
     add-claim, ac      Claim a name.
     spend-claim, sc    Spend a Claim.
     update-claim, uc   Update a Claim.
     add-support, as    Support a Claim.
     spend-support, ss  Spend a specified Support.
     show, s            Show the status of nodes)
     merkle, m          Show the Merkle Hash of the ClaimTrie.
     commit, c          Commit the current changes to database.
     reset, r           Reset the Head commit and a specified commit (by Height).
     log, l             List the commits in the coommit database.
     ipmort, i          Import changes from datbase.
     load, ld           Load nodes from datbase.
     save, sv           Save nodes to datbase.
     erase              Erase datbase
     shell, sh          Enter interactive mode
     help, h            Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

Running from Source

This project requires Go v1.10 or higher.

Examples

Testing

go test -v github.com/lbryio/claimtrie
gocov test -v github.com/lbryio/claimtrie 1>/dev/null

Contributing

coming soon

License

This project is MIT licensed.

Security

We take security seriously. Please contact security@lbry.io regarding any security issues. Our PGP key is here if you need it.

Contact

The primary contact for this project is @roylee17 (roylee@lbry.io) or @lyoshenka (grin@lbry.io)