Skip to content

Commit

Permalink
exits bsp-geth if both light and replication targets provided
Browse files Browse the repository at this point in the history
Signed-off-by: Pranay Valson <[email protected]>
  • Loading branch information
noslav committed Apr 13, 2022
1 parent d1a92cb commit 7d9d6ea
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
5 changes: 5 additions & 0 deletions cmd/geth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,11 @@ func startNode(ctx *cli.Context, stack *node.Node, backend ethapi.Backend, isCon
}
}

// Kill bsp-geth if --syncmode flag is 'light'
if ctx.GlobalString(utils.BlockReplicationTargetsFlag.Name) != "" && ctx.GlobalString(utils.SyncModeFlag.Name) == "light" {
utils.Fatalf("Block specimen production not supported for 'light' sync (only supported modes are 'snap' and 'full'")
}

// Spawn a standalone goroutine for status synchronization monitoring,
// if full sync is completed in block specimen creation mode set replica config flag
if ctx.GlobalBool(utils.ReplicaEnableSpecimenFlag.Name) || ctx.GlobalBool(utils.ReplicaEnableResultFlag.Name) {
Expand Down
26 changes: 21 additions & 5 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
codecov:
require_ci_to_pass: yes
require_ci_to_pass: false

coverage:
precision: 2
round: down
range: "40...100"
status:
project:
default:
target: auto
threshold: 0%
base: auto
flags:
- unit
paths:
- "src"
# advanced settings
branches:
- main
if_ci_failed: success #success, failure, error, ignore
informational: false
only_pulls: false
patch:
default: false


parsers:
gcov:
Expand All @@ -17,4 +33,4 @@ parsers:
comment:
layout: "reach,diff,flags,files,footer"
behavior: default
require_changes: no
require_changes: false

0 comments on commit 7d9d6ea

Please sign in to comment.