Skip to content

Commit 581171b

Browse files
authored
Merge pull request #195 from stellar/194/soroban-rpc-core-dep
Make soroban-rpc depend on stellar-core specific version
2 parents e78548e + 82a3c2c commit 581171b

6 files changed

+45
-4
lines changed

stellar-soroban-rpc/debian/control

+1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ Homepage: https://www.stellar.org/
88

99
Package: stellar-soroban-rpc
1010
Architecture: any
11+
Depends: stellar-core (= _CORE_VERSION_)
1112
Description: Soroban RPC is the client facing API server for the Stellar Soraban Smart Contracts ecosystem. It acts as the interface between stellar-core and applications that want to access smart contracts on the Stellar network.
1213

stellar-soroban-rpc/debian/stellar-soroban-rpc.default

+8-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

33
# define the port on local machine that soroban rpc server will bind to.
44
ENDPOINT=localhost:8003
5-
# for now rpc requires access to horizon, this will change.
6-
HORIZON_URL=http://localhost:8000
5+
FRIENDBOT_URL=https://friendbot-futurenet.stellar.org/
76
NETWORK_PASSPHRASE="Test SDF Future Network ; October 2022"
8-
# for now rpc requires access to core, this will change.
9-
STELLAR_CORE_URL="http://localhost:11626"
7+
CAPTIVE_CORE_CONFIG_PATH=/etc/stellar/soroban-rpc/stellar-captive-core.cfg
8+
CAPTIVE_CORE_STORAGE_PATH=/var/lib/stellar/soroban-rpc/captive-core
9+
CAPTIVE_CORE_USE_DB=true
10+
STELLAR_CORE_BINARY_PATH=/usr/bin/stellar-core
11+
HISTORY_ARCHIVE_URLS="https://history-futurenet.stellar.org"
12+
DB_PATH="/var/lib/stellar/soroban-rpc/soroban_rpc.sqlite"
13+
STELLAR_CAPTIVE_CORE_HTTP_PORT=0
1014

1115
# minimum log severity (debug, info, warn, error), default=info
1216
# LOG_LEVEL=info
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/var/lib/stellar/
2+
/var/lib/stellar/soroban-rpc/captive-core/
23
/var/log/stellar/
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
stellar-soroban-rpc usr/bin/
2+
stellar-core_captive-futurenet.cfg etc/stellar
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/stellar/stellar-core_captive-futurenet.cfg /etc/stellar/soroban-rpc/stellar-captive-core.cfg
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This is a sample configuration from the stellar-captive-core package.
2+
# Please note that only HOME_DOMAINS and VALIDATORS tables are required.
3+
4+
# IMPORTANT
5+
# You need to change domains and validators below to fit your needs
6+
7+
# captive core config for futurenet
8+
NETWORK_PASSPHRASE="Test SDF Future Network ; October 2022"
9+
# disable the web service port, not used
10+
HTTP_PORT=0
11+
PUBLIC_HTTP_PORT=false
12+
# To avoid conflicts with the core instance
13+
PEER_PORT=11726
14+
DATABASE="sqlite3:///var/lib/stellar/soroban-rpc/captive-core/stellar-rpc.db"
15+
16+
EXPERIMENTAL_BUCKETLIST_DB=true
17+
EXPERIMENTAL_BUCKETLIST_DB_INDEX_PAGE_SIZE_EXPONENT=12
18+
ENABLE_SOROBAN_DIAGNOSTIC_EVENTS=false
19+
20+
FAILURE_SAFETY=0
21+
UNSAFE_QUORUM=true
22+
23+
[[HOME_DOMAINS]]
24+
HOME_DOMAIN="futurenet.stellar.org"
25+
QUALITY="MEDIUM"
26+
27+
[[VALIDATORS]]
28+
NAME="sdf_futurenet_1"
29+
HOME_DOMAIN="futurenet.stellar.org"
30+
PUBLIC_KEY="GBRIF2N52GVN3EXBBICD5F4L5VUFXK6S6VOUCF6T2DWPLOLGWEPPYZTF"
31+
ADDRESS="core-live-futurenet.stellar.org:11625"
32+
HISTORY="curl -sf https://history-futurenet.stellar.org/{0} -o {1}"
33+

0 commit comments

Comments
 (0)