Skip to content

Commit

Permalink
Merge pull request #326 from ElrondNetwork/merge-dev-master-sep22
Browse files Browse the repository at this point in the history
Merge dev master sep22
  • Loading branch information
bogdan-rosianu authored Sep 22, 2022
2 parents 5809a49 + 092a4a9 commit ddbe1ef
Show file tree
Hide file tree
Showing 7 changed files with 877 additions and 228 deletions.
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

0 comments on commit ddbe1ef

Please sign in to comment.