| commit | f9d2ee222abdea58e40ee8747a1cafa07950eead | [log] [tgz] |
|---|---|---|
| author | Ubuntu <ubuntu@ip-172-31-66-55.ec2.internal> | Tue Mar 07 19:20:57 2023 +0000 |
| committer | Ubuntu <ubuntu@ip-172-31-66-55.ec2.internal> | Tue Mar 07 19:20:57 2023 +0000 |
| tree | f249136cf55ef50751a9c770800e85a3384baef1 | |
| parent | 18163e375846373bcb8df6d74d875bba07d2a513 [diff] |
rm addr2'
ResilientDB is a High Throughput Yielding Permissioned Blockchain Fabric founded by ExpoLab at UC Davis in 2018. ResilientDB advocates a system-centric design by adopting a multi-threaded architecture that encompasses deep pipelines. Further, ResilientDB separates the ordering of client transactions from their execution, which allows it to process messages out-of-order.
You may find the latest ResilientDB documentation, including a programming guide, on our blog repository. This README file provides basic setup instructions.
Ubuntu 20.*
Install dependencies:
./INSTALL.sh
Run ResilientDB (Providing a Key-Value Service):
./example/start_kv_server.sh
Build Interactive Tools:
bazel build example/kv_server_tools
Run tools to set a value by a key (for example, set the value with key “test” and value “test_value”):
bazel-bin/example/kv_server_tools example/kv_client_config.config set test test_value
You will see the following result if successful:
client set ret = 0
Run tools to get value by a key (for example, get the value with key “test”):
bazel-bin/example/kv_server_tools example/kv_client_config.config get test
You will see the following result if successful:
client get value = test_value
Run tools to get all values that have been set:
bazel-bin/example/kv_server_tools example/kv_client_config.config getvalues
You will see the following result if successful:
client getvalues value = [test_value]
If you want to enable sdk verification, add a flag to the command
./example/start_kv_server.sh --define enable_sdk=True
And in example/kv_config.config
require_txn_validation:true,
If installing bazel fails on a ubuntu server, follow these steps:
mkdir bazel-src
cd bazel-src
wget https://github.com/bazelbuild/bazel/releases/download/5.4.0/bazel-5.4.0-dist.zip
sudo apt-get install build-essential openjdk-11-jdk python zip unzip
unzip bazel-5.4.0-dist.zip
env EXTRA_BAZEL_ARGS=“--tool_java_runtime_version=local_jdk” bash ./compile.sh
sudo mv output/bazel /usr/local/bin