Skip to content

Commit

Permalink
services/horizon: Bump expingest version (#1939)
Browse files Browse the repository at this point in the history
Bumps `expingest.CurrentVersion` to recreate state due to a bug fixed in
#1936. We need to reingest existing state due to a rules change
connected to trust lines authorization.
  • Loading branch information
bartekn authored Nov 15, 2019
1 parent d222515 commit 142d26b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion services/horizon/internal/expingest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ const (
// - 7: Fixes a bug in AccountSignersChanged method.
// - 8: Fixes AccountSigners processor to remove preauth tx signer
// when preauth tx is failed.
CurrentVersion = 8
// - 9: Fixes a bug in asset stats processor that counted unauthorized
// trustlines.
CurrentVersion = 9
)

var log = ilog.DefaultLogger.WithField("service", "expingest")
Expand Down
2 changes: 1 addition & 1 deletion services/horizon/internal/expingest/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const assetStatsBatchSize = 500
// check them.
// There is a test that checks it, to fix it: update the actual `verifyState`
// method instead of just updating this value!
const stateVerifierExpectedIngestionVersion = 8
const stateVerifierExpectedIngestionVersion = 9

// verifyState is called as a go routine from pipeline post hook every 64
// ledgers. It checks if the state is correct. If another go routine is already
Expand Down

0 comments on commit 142d26b

Please sign in to comment.