Skip to content

Commit aff064d

Browse files
authored
Migrate to Blockcore.RocksDB (#342)
- Replaces the existing RocksDB library that has not been updated since 2019. - Needs verification by others, please run and verify.
1 parent ee7a4ff commit aff064d

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

src/Features/Persistence/Blockcore.Persistence.RocksDb/Blockcore.Persistence.RocksDb.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<Description>RocksDb persistence common classes</Description>
@@ -10,12 +10,11 @@
1010
<IsPackable>true</IsPackable>
1111
</PropertyGroup>
1212
<ItemGroup>
13+
<PackageReference Include="Blockcore.RocksDB" Version="6.20.3.2" />
1314
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.1.11" />
1415
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.1.11" />
1516
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="3.1.11" />
1617
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.11" />
17-
<PackageReference Include="RocksDbNative" Version="6.2.2" />
18-
<PackageReference Include="RocksDbSharp" Version="6.2.2" />
1918
</ItemGroup>
2019

2120
<ItemGroup>

src/Node/Blockcore.Node/Properties/launchSettings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
"commandName": "Project",
2525
"commandLineArgs": "-server -rpcallowip=127.0.0.1 -rpcbind=127.0.0.1 -rpcpassword=rpcpassword -rpcuser=rpcuser -datadir=nodedata"
2626
},
27+
"BTC (MAIN/LOCAL/ROCKSDB)": {
28+
"commandName": "Project",
29+
"commandLineArgs": "-server -rpcallowip=127.0.0.1 -rpcbind=127.0.0.1 -rpcpassword=rpcpassword -rpcuser=rpcuser -dbtype=rocksdb -datadir=data"
30+
},
2731
"BTC (TEST/LOCAL)": {
2832
"commandName": "Project",
2933
"commandLineArgs": "-server -rpcallowip=127.0.0.1 -rpcbind=127.0.0.1 -rpcpassword=rpcpassword -rpcuser=rpcuser -datadir=nodedata -testnet"
@@ -112,6 +116,10 @@
112116
"commandName": "Project",
113117
"commandLineArgs": "--chain=EXOS -server -whitelist=192.168.1.180 -rpcallowip=127.0.0.1 -rpcbind=127.0.0.1 -rpcpassword=rpcpassword -rpcuser=rpcuser -datadir=nodedata"
114118
},
119+
"EXOS (MAIN/LOCAL/ROCKSDB)": {
120+
"commandName": "Project",
121+
"commandLineArgs": "--chain=EXOS -server -whitelist=192.168.1.180 -rpcallowip=127.0.0.1 -rpcbind=127.0.0.1 -rpcpassword=rpcpassword -rpcuser=rpcuser -dbtype=rocksdb -datadir=data"
122+
},
115123
"RUTA (MAIN)": {
116124
"commandName": "Project",
117125
"commandLineArgs": "--chain=RUTA -server -rpcallowip=127.0.0.1 -rpcbind=127.0.0.1 -rpcpassword=rpcpassword -rpcuser=rpcuser"

0 commit comments

Comments
 (0)