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

Merge dev master sep22 #326

Merged
merged 14 commits into from
Sep 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions cmd/proxy/config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@

# List of Observers. If you want to define a metachain observer (needed for validator statistics route) use
# shard id 4294967295
# Fallback observers which are only used when regular ones are offline should have IsFallback = true
[[Observers]]
ShardId = 0
Address = "http://127.0.0.1:8081"
Expand All @@ -72,6 +73,11 @@
ShardId = 1
Address = "http://127.0.0.1:8082"

[[Observers]]
ShardId = 1
Address = "http://127.0.0.1:8083"
IsFallback = true

[[FullHistoryNodes]]
ShardId = 0
Address = "http://127.0.0.1:8081"
Expand Down
7 changes: 4 additions & 3 deletions data/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package data

// NodeData holds an observer data
type NodeData struct {
ShardId uint32
Address string
IsSynced bool
ShardId uint32
Address string
IsSynced bool
IsFallback bool
}

// NodesReloadResponse is a DTO that holds details about nodes reloading
Expand Down
Loading