rgreen312 / OwlPlace

https://rgreen312.github.io/OwlPlace/
5 stars 1 forks source link

backend: add dragonboat and rocksdb #9

Closed lydiahuang59 closed 5 years ago

lydiahuang59 commented 5 years ago

Added example code from dragonboat here.

You can run it by entering:

go run server.go diskkv.go -nodeid 1
go run server.go diskkv.go -nodeid 2
go run server.go diskkv.go -nodeid 3

in three different terminal windows.

Then you can type in put key value and get key to test/use the database in the different windows.

This currently only works on Linux (pretty sure).

lydiahuang59 commented 5 years ago

@gvacaliuc yup working on that

aidan-curtis commented 5 years ago
  1. Moved all consensus code to a new consensus module
  2. Created a message struct that the API server and consensus module can use to communicate
  3. Created a communication example at the /hello endpoint of the API server