Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: CNS-891: Same provider conflict #1344

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
c5d09cc
Enable the subscription again
shleikes Apr 3, 2024
b4a4ece
Add GetParams() to GenericMessage struct
shleikes May 7, 2024
611b4af
Fix tendermint small bug
shleikes May 7, 2024
8e75303
RelayProcessor to skip some logic on subscription
shleikes May 7, 2024
37e3408
Add subscription management in the provider - some TODOs are left
shleikes May 19, 2024
a7ccc34
Fix the subscription category for supported chains
shleikes May 19, 2024
8c7b467
Remove unused functions
shleikes May 19, 2024
350b851
Small fix to the provider web socket manager
shleikes May 19, 2024
7f72a9a
Small fixes to the provider
shleikes May 20, 2024
2ec447c
Move finalization consensus to a new package
shleikes May 23, 2024
49eeda9
Split the SendRelay into 2 functions: ParseRelay & SendParsedRelay
shleikes May 23, 2024
da69039
Add an utility function for readable hex
shleikes May 23, 2024
7813dc6
Remove the logic of disconnecting consumers after the end of epoch
shleikes May 23, 2024
0171606
Fix to the sage channel sender
shleikes May 23, 2024
31bb594
Use a utility function CreateHashFromParams
shleikes May 23, 2024
96c0e19
Add some trace logs
shleikes May 23, 2024
781eecc
Rename IsSubscription -> IsSubscriptionCategory
shleikes May 23, 2024
a21de48
Add LongLastingProvidersStorage
shleikes May 23, 2024
5ca0201
Add the cancellable context to subscription relays int he rpcconsumer…
shleikes May 23, 2024
7f04c47
Add ConsumerWebsocketManager & ConsumerWSSubscriptionManager
shleikes May 23, 2024
3c7acde
Move the subscription closing logic to a new function
shleikes May 23, 2024
9e8cce6
Rename to make the code more sense
shleikes May 23, 2024
f77016d
Implemented timeout of 15 minutes for open subscription
shleikes May 23, 2024
f5b34ee
Add the subscription function tags
shleikes May 26, 2024
5761f74
Updated cosmos and ethereum specs with new subscription parse directives
shleikes May 26, 2024
420995c
Implemented unsubscribe logic in the consumer
shleikes May 26, 2024
7fb9291
Small logs improvements
shleikes May 26, 2024
7a32b05
Rename CreateSubscriptionKey -> CreateDappKey
shleikes May 27, 2024
5961c66
Use hashed params as map keys for subscription context
shleikes May 27, 2024
1fe0917
Move the websocket replies channel creation to the subscription manager
shleikes May 27, 2024
706456f
Rethink the storing of connected dapps and active subscriptions in th…
shleikes May 27, 2024
d17e7ea
Some small fixes to the Unsubscribe function
shleikes May 27, 2024
80cca49
Small rename
shleikes May 27, 2024
aa252f5
Implement unsubscribe_all for consumer
shleikes May 27, 2024
98693ec
Typos fix
shleikes May 28, 2024
09734e5
Improved some logs
shleikes May 28, 2024
54e3499
Add a missing lock
shleikes May 28, 2024
1ef3b36
Make the websocket channel writing a little bit safer
shleikes May 28, 2024
cfdbe3a
Fix a small bug
shleikes May 28, 2024
ff8a7a2
Don't support ubsubscribe_all in Relay flow
shleikes May 28, 2024
8ebc728
Split the TryRelay into smaller pieces
shleikes May 28, 2024
48271f4
Add GetID to RPCInput interface
shleikes May 28, 2024
a528a5a
Add support for unsubscribe relay in the provider
shleikes May 28, 2024
580fffb
Safe channel sender improvements
shleikes May 28, 2024
d3fd48d
Use SafeChannelSender for the subscription in the consumer and fix bugs
shleikes May 28, 2024
8bc5fa8
Use formatter to preserve original jsonrpc ID
shleikes May 28, 2024
83fa17d
Add some comments
shleikes May 29, 2024
90bb6b3
Small fixes
shleikes May 29, 2024
8b85bd7
Rename and fix AnalyzeWebSocketErrorAndWriteMessage
shleikes May 29, 2024
48b171c
Add a comment
shleikes May 31, 2024
6e6f662
Remove done TODO
shleikes May 31, 2024
fa8e5b1
Merge branch 'main' into PRT-1178-subscriptions-phase-1-without-handover
shleikes Jun 2, 2024
954feda
Some log improvements
shleikes Jun 2, 2024
28983e6
Provider subscription manager fix
shleikes Jun 2, 2024
e8af54b
Move UpdateCU call to start of subscription instead of its end
shleikes Jun 2, 2024
a458643
Updated subscription CU cost
shleikes Jun 2, 2024
ec3e5c5
Fix finalization consensus test
shleikes Jun 2, 2024
d24aa55
Lint fixes
shleikes Jun 2, 2024
b4f15fb
Add LongLastingProvidersStorage tests
shleikes Jun 2, 2024
eb81fb0
Add SafeChannelSender tests
shleikes Jun 2, 2024
2a7e4e0
Add 10 seconds timeout to handle hang when waiting for first message …
shleikes Jun 3, 2024
0153989
Move the first subscription reply verification into the rpcconsumer_s…
shleikes Jun 3, 2024
4f4e0fa
Handle bad provider signature better
shleikes Jun 4, 2024
87ac3d9
Fix a small bug and remove redundant return value
shleikes Jun 4, 2024
93d453e
Fix typos
shleikes Jun 4, 2024
bcc8f61
Move ProviderNodeSubscriptionManager to chainlib
shleikes Jun 4, 2024
2c010f7
Fix to the UnsubscribeAll call
shleikes Jun 5, 2024
ac8da0d
Create a const for the subscription relay timeout
shleikes Jun 5, 2024
4e9f787
Sync the consumer and provider on session failure
shleikes Jun 5, 2024
da37f8f
Change the type of replyServer to not be a pointer to interface
shleikes Jun 5, 2024
c80ab90
Small fix for the consumer subscription manager
shleikes Jun 5, 2024
9122693
Fix a small bug in the provider node subscription manager
shleikes Jun 5, 2024
548d691
Small fix to the consumer subscription manager
shleikes Jun 6, 2024
baa0bf0
Remove epochs from provider subscription manager
shleikes Jun 6, 2024
ecc3c2a
Small fix to the safe channel sender
shleikes Jun 6, 2024
bf1ebfe
Tiny log fix
shleikes Jun 6, 2024
0a5d142
Allow weboscket and http connectors in jsonRPC
shleikes Jun 6, 2024
de96a73
Small log fix to connector.go
shleikes Jun 6, 2024
d739f36
Add websocket server to mock chain lib
shleikes Jun 6, 2024
7717693
Add tests for provider and consumer subscription manager
shleikes Jun 6, 2024
75ac860
Merge branch 'main' into PRT-1178-subscriptions-phase-1-without-handover
shleikes Jun 6, 2024
05a94b6
Post merge fixes
shleikes Jun 6, 2024
d882a53
Fix lint errors
shleikes Jun 6, 2024
754b4eb
Verify webSocket is up in consumer in protocol integration tests
shleikes Jun 6, 2024
0490ce5
Revert "Allow weboscket and http connectors in jsonRPC"
shleikes Jun 6, 2024
12d2daf
WIP
shleikes Jun 7, 2024
b8dd924
Merge branch 'main' into PRT-1178-subscriptions-phase-1-without-handover
ranlavanet Jun 10, 2024
7bf73c8
changing functionality of parsed directive to be saved on the chain m…
ranlavanet Jun 10, 2024
db31712
rename long lasting to active subscription provider storage
ranlavanet Jun 10, 2024
c032cf4
adding purge callback.
ranlavanet Jun 10, 2024
9ed2249
two consumers setup
ranlavanet Jun 10, 2024
39e7d22
fix a bug where 2 consumers wouldn't be able to subscribe.
ranlavanet Jun 10, 2024
d1faaae
fixing test for subscriptions, fixing bug in chain router, and managi…
ranlavanet Jun 11, 2024
8a0d892
fixing safe channel sender functionality
ranlavanet Jun 12, 2024
91b6509
fixing provider subscription manager test.
ranlavanet Jun 12, 2024
c71712f
fix problem with websocket listener in tests.
ranlavanet Jun 12, 2024
cfcb508
fixing test routine condition.
ranlavanet Jun 12, 2024
6cb691a
lint
ranlavanet Jun 12, 2024
57c0d8b
fix ws issue on generic chain lib mocks
ranlavanet Jun 12, 2024
8bd629c
fix e2e for jsonrpc.
ranlavanet Jun 12, 2024
b238107
removing unused code.
ranlavanet Jun 12, 2024
99f0e94
fix typo
ranlavanet Jun 12, 2024
e45a40d
adding comments
ranlavanet Jun 12, 2024
d8ea9c3
comment fix
ranlavanet Jun 12, 2024
95d3b10
adding more comments.
ranlavanet Jun 12, 2024
6bfb630
removing spam trace logs
ranlavanet Jun 12, 2024
7013bb3
Post merge fixes
shleikes Jun 13, 2024
fba07bd
Merge branch 'PRT-1178-subscriptions-phase-1-without-handover' into C…
shleikes Jun 13, 2024
ad44dcf
Post merge fix
shleikes Jun 13, 2024
ebe5ab9
Fix some errors usage in finalization consensus
shleikes Jun 16, 2024
983ef14
Create an interface for finalization consensus
shleikes Jun 16, 2024
ccf4870
Add a function to chain listener to get the listening address, and us…
shleikes Jun 16, 2024
204d863
Small fix to uniqueAddressGenerator
shleikes Jun 16, 2024
e881474
Remove some comments
shleikes Jun 16, 2024
1813214
Add log handling for error slice
shleikes Jun 17, 2024
0908545
Remove String() function for finalization consensus
shleikes Jun 17, 2024
7941395
Add a benchmark test for finalization consensus GetExpectedBlockHeight
shleikes Jun 17, 2024
91a859c
Finalization consensus GetExpectedBlockHeight improvement
shleikes Jun 17, 2024
36f0d14
Fix a bug in GetConsumerSessionInstanceFromEndpoint
shleikes Jun 17, 2024
ebbc5bf
Fix a bug in GetSessions
shleikes Jun 17, 2024
0d92ff0
Small bug fix in finalization consensus tests
shleikes Jun 17, 2024
9422287
Add a benchmark to finalization consensus UpdateFinalizedHashes
shleikes Jun 17, 2024
319a744
Another improvement to the finalization consensus GetExpectedBlockHei…
shleikes Jun 17, 2024
95c4bdb
Small fix to lavalog
shleikes Jun 17, 2024
f465d82
Add a safe check to make sure the new reported finalized block is newer
shleikes Jun 19, 2024
bde467a
Merge branch 'CNS-891-same-provider-conflict-benchmark-test' into CNS…
shleikes Jun 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
226 changes: 114 additions & 112 deletions .github/workflows/lava.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,69 +16,107 @@ jobs:
test-consensus:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- name: cp lava
run: cp -r ~/work/lava/lava ~/go/lava
- name: export PATH
run: export PATH=$PATH:/go:/go/bin:$(go env GOPATH)/bin:/usr/local:`pwd`:/home/runner/work/lava/lava/
- name: export GOPATH
run: export GOPATH=$GOPATH:$(go env GOPATH):/go:/go/lava:/usr/local:`pwd`
- name: export LAVA
run: export LAVA=/home/runner/work/lava/lava

######################################################
### Run Consensus unitests
######################################################
- name: Lava Unit Tests
run: |
go install github.com/jstemmer/go-junit-report/v2@latest
go test -v ./utils/... | go-junit-report -iocopy -set-exit-code -out utils-report.xml
go test -v ./common/... | go-junit-report -iocopy -set-exit-code -out common-report.xml
go test -v ./x/... | go-junit-report -iocopy -set-exit-code -out x-report.xml

- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: Test Results (Consensus)
path: "*-report.xml"
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.sum
# Setup Paths
# - name: home
# run: pwd && ls -l
# - name: ls usr
# run: ls -l /home/runner/work/lava/lava
# - name: cp lava
# run: cp -r ~/work/lava/lava ~/go/lava
# - name: export PATH
# run: export PATH=$PATH:/go:/go/bin:$(go env GOPATH)/bin:/usr/local:`pwd`:/home/runner/work/lava/lava/
# - name: export GOPATH
# run: export GOPATH=$GOPATH:$(go env GOPATH):/go:/go/lava:/usr/local:`pwd`
# - name: export LAVA
# run: export LAVA=/home/runner/work/lava/lava
# - name: go env
# run: go env
# - name: pwd
# run: pwd
# - name: tree
# run: tree
# - name: ls -l
# run: ls -l

######################################################
### Run Consensus unitests
######################################################
- name: Lava Unit Tests
run: |
go install github.com/jstemmer/go-junit-report/v2@latest
go test -v ./utils/... | go-junit-report -iocopy -set-exit-code -out utils-report.xml
go test -v ./common/... | go-junit-report -iocopy -set-exit-code -out common-report.xml
go test -v ./x/pairing/... | go-junit-report -iocopy -set-exit-code -out pairing-report.xml
go test -v ./x/epochstorage/... | go-junit-report -iocopy -set-exit-code -out epochstorage-report.xml
go test -v ./x/spec/... | go-junit-report -iocopy -set-exit-code -out spec-report.xml
go test -v ./x/conflict/... | go-junit-report -iocopy -set-exit-code -out conflict-report.xml
go test -v ./x/plans/... | go-junit-report -iocopy -set-exit-code -out plans-report.xml
go test -v ./x/projects/... | go-junit-report -iocopy -set-exit-code -out projects-report.xml
go test -v ./x/subscription/... | go-junit-report -iocopy -set-exit-code -out subscription-report.xml
go test -v ./x/dualstaking/... | go-junit-report -iocopy -set-exit-code -out dualstaking-report.xml
go test -v ./x/fixationstore/... | go-junit-report -iocopy -set-exit-code -out fixationstore-report.xml
go test -v ./x/timerstore/... | go-junit-report -iocopy -set-exit-code -out timerstore-report.xml
go test -v ./x/downtime/... | go-junit-report -iocopy -set-exit-code -out downtime-report.xml
go test -v ./x/rewards/... | go-junit-report -iocopy -set-exit-code -out rewards-report.xml

- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: Test Results (Consensus)
path: "*-report.xml"

test-protocol:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- name: cp lava
run: cp -r ~/work/lava/lava ~/go/lava
- name: export GOPATH
run: export GOPATH=$GOPATH:$(go env GOPATH):/go:/go/lava:/usr/local:`pwd`
- name: export PATH
run: export PATH=$PATH:/go:/go/bin:$(go env GOPATH)/bin:/usr/local:`pwd`:/home/runner/work/lava/lava/:$GOPATH/bin
- name: export LAVA
run: export LAVA=/home/runner/work/lava/lava

######################################################
### Run protocol unitests
######################################################
- name: Run Lava Protocol Tests
run: |
go install github.com/jstemmer/go-junit-report/v2@latest
go test -v ./protocol/... | go-junit-report -iocopy -set-exit-code -out protocol-report.xml
go test -v ./ecosystem/cache/... | go-junit-report -iocopy -set-exit-code -out cache-report.xml

- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: Test Results (Protocol)
path: "*-report.xml"
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.sum

# Setup Paths
# - name: home
# run: pwd && ls -l
# - name: ls usr
# run: ls -l /home/runner/work/lava/lava
# - name: cp lava
# run: cp -r ~/work/lava/lava ~/go/lava
# - name: export GOPATH
# run: export GOPATH=$GOPATH:$(go env GOPATH):/go:/go/lava:/usr/local:`pwd`
# - name: export PATH
# run: export PATH=$PATH:/go:/go/bin:$(go env GOPATH)/bin:/usr/local:`pwd`:/home/runner/work/lava/lava/:$GOPATH/bin
# - name: export LAVA
# run: export LAVA=/home/runner/work/lava/lava
# - name: go env
# run: go env
# - name: pwd
# run: pwd
# - name: tree
# run: tree
# - name: ls -l
# run: ls -l

######################################################
### Run protocol unitests
######################################################
- name: Run Lava Protocol Tests
run: |
go install github.com/jstemmer/go-junit-report/v2@latest
go test -v ./protocol/... | go-junit-report -iocopy -set-exit-code -out protocol-report.xml
go test -v ./ecosystem/cache/... | go-junit-report -iocopy -set-exit-code -out cache-report.xml

- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: Test Results (Protocol)
path: "*-report.xml"

test-protocol-e2e:
runs-on: ubuntu-latest
Expand All @@ -96,7 +134,7 @@ jobs:
run: |
go install github.com/jstemmer/go-junit-report/v2@latest
go test ./testutil/e2e/ -run ^TestLavaProtocol$ -v -timeout 1200s | go-junit-report -iocopy -set-exit-code -out protocol-e2e-report.xml # 20mins

- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
Expand All @@ -107,7 +145,7 @@ jobs:
- name: tail -n 1000 Lavad Logs
if: always()
run: tail -n 1000 testutil/e2e/protocolLogs/00_StartLava.log

- name: Print all warnings and errors from lavad
continue-on-error: true
if: always()
Expand Down Expand Up @@ -179,7 +217,7 @@ jobs:
if: always()
continue-on-error: true
run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --include="*errors*"

- name: Upload Protocol E2E Logs
if: always()
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -296,7 +334,7 @@ jobs:
if: always()
continue-on-error: true
run: grep "" testutil/e2e/sdkLogs/01_sdkTest* --include="*errors*"

- name: Upload SDK E2E Logs
if: always()
uses: actions/upload-artifact@v4
Expand All @@ -320,7 +358,7 @@ jobs:
run: |
go install github.com/jstemmer/go-junit-report/v2@latest
go test ./testutil/e2e/ -run ^TestLavaProtocolPayment$ -v -timeout 1200s | go-junit-report -iocopy -set-exit-code -out payment-e2e-report.xml # 20mins

- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -358,8 +396,8 @@ jobs:
if: always()
continue-on-error: true
run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --include="*errors*"
- name: Upload Payment E2E Logs

- name: Upload Payment E2E Logs
if: always()
uses: actions/upload-artifact@v4
with:
Expand All @@ -368,7 +406,14 @@ jobs:

report-tests-results:
runs-on: ubuntu-latest
needs: [test-consensus, test-protocol, test-protocol-e2e, test-sdk-e2e, test-payment-e2e]
needs:
[
test-consensus,
test-protocol,
test-protocol-e2e,
test-sdk-e2e,
test-payment-e2e,
]
if: always()
steps:
- name: Download Artifacts
Expand All @@ -380,49 +425,6 @@ jobs:
with:
files: "artifacts/**/*.xml"

build_docker:
permissions:
contents: write
packages: write
id-token: write
needs: [test-consensus, test-protocol]
runs-on: ubuntu-latest
strategy:
matrix:
binary: [lavap, lavad]
env:
REGISTRY: ghcr.io
IMAGE_NAME: "lavanet/lava/${{ matrix.binary }}"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push
uses: docker/build-push-action@v5
continue-on-error: true
with:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
file: cmd/${{ matrix.binary }}/Dockerfile
build-args: |
GIT_VERSION="${{ steps.meta.outputs.version }}"
GIT_COMMIT="${{ github.sha }}"
push: true

build_and_package:
name: ${{ matrix.binary }}-${{ matrix.targetos }}-${{ matrix.arch }}
needs: [test-consensus, test-protocol]
Expand Down Expand Up @@ -455,9 +457,9 @@ jobs:
- name: Build ${{ matrix.binary }}
run: |
GOWRK=off go build -o out/${{ matrix.binary }} cmd/${{ matrix.binary }}/main.go

- name: Upload Lava Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.binary }}-${{ matrix.targetos }}-${{ matrix.arch }}
path: out/${{ matrix.binary }}
path: out/${{ matrix.binary }}
7 changes: 7 additions & 0 deletions config/consumer_examples/eth_consumer_example1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
endpoints:
- chain-id: ETH1
api-interface: jsonrpc
network-address: 127.0.0.1:3333
metrics-listen-address: ":7779"
# referer-be-address: "http://127.0.0.1:6500"
# reports-be-address: "http://127.0.0.1:6501"
7 changes: 7 additions & 0 deletions config/consumer_examples/eth_consumer_example2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
endpoints:
- chain-id: ETH1
api-interface: jsonrpc
network-address: 127.0.0.1:3334
metrics-listen-address: ":7780"
# referer-be-address: "http://127.0.0.1:6500"
# reports-be-address: "http://127.0.0.1:6501"
16 changes: 16 additions & 0 deletions config/consumer_examples/eth_lava_consumer_example1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
endpoints:
- chain-id: ETH1
api-interface: jsonrpc
network-address: 127.0.0.1:3333
- chain-id: LAV1
api-interface: rest
network-address: 127.0.0.1:3360
- chain-id: LAV1
api-interface: tendermintrpc
network-address: 127.0.0.1:3361
- chain-id: LAV1
api-interface: grpc
network-address: 127.0.0.1:3362
metrics-listen-address: ":7779"
# referer-be-address: "http://127.0.0.1:6500"
# reports-be-address: "http://127.0.0.1:6501"
16 changes: 16 additions & 0 deletions config/consumer_examples/eth_lava_consumer_example2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
endpoints:
- chain-id: ETH1
api-interface: jsonrpc
network-address: 127.0.0.1:3334
- chain-id: LAV1
api-interface: rest
network-address: 127.0.0.1:3363
- chain-id: LAV1
api-interface: tendermintrpc
network-address: 127.0.0.1:3364
- chain-id: LAV1
api-interface: grpc
network-address: 127.0.0.1:3365
metrics-listen-address: ":7780"
# referer-be-address: "http://127.0.0.1:6500"
# reports-be-address: "http://127.0.0.1:6501"
13 changes: 13 additions & 0 deletions config/consumer_examples/lava_consumer_example1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
endpoints:
- chain-id: LAV1
api-interface: rest
network-address: 127.0.0.1:3360
- chain-id: LAV1
api-interface: tendermintrpc
network-address: 127.0.0.1:3361
- chain-id: LAV1
api-interface: grpc
network-address: 127.0.0.1:3362
metrics-listen-address: ":7779"
# referer-be-address: "http://127.0.0.1:6500"
# reports-be-address: "http://127.0.0.1:6501"
13 changes: 13 additions & 0 deletions config/consumer_examples/lava_consumer_example2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
endpoints:
- chain-id: LAV1
api-interface: rest
network-address: 127.0.0.1:3363
- chain-id: LAV1
api-interface: tendermintrpc
network-address: 127.0.0.1:3364
- chain-id: LAV1
api-interface: grpc
network-address: 127.0.0.1:3365
metrics-listen-address: ":7780"
# referer-be-address: "http://127.0.0.1:6500"
# reports-be-address: "http://127.0.0.1:6501"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
endpoints:
- chain-id: LAV1
api-interface: tendermintrpc
network-address: 127.0.0.1:3361
# referer-be-address: "http://127.0.0.1:6500"
# reports-be-address: "http://127.0.0.1:6501"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
endpoints:
- chain-id: LAV1
api-interface: tendermintrpc
network-address: 127.0.0.1:3362
# referer-be-address: "http://127.0.0.1:6500"
# reports-be-address: "http://127.0.0.1:6501"
Loading
Loading