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

node, ir: add debug logs for notary deposits #2952

Merged
merged 1 commit into from
Sep 29, 2024
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
2 changes: 2 additions & 0 deletions cmd/neofs-node/morph.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
return fmt.Errorf("could not calculate notary deposit: %w", err)
}

c.log.Debug("making neofs chain notary deposit", zap.Stringer("fixed8 deposit", depositAmount))

Check warning on line 57 in cmd/neofs-node/morph.go

View check run for this annotation

Codecov / codecov/patch

cmd/neofs-node/morph.go#L57

Added line #L57 was not covered by tests

return c.cfgMorph.client.DepositEndlessNotary(depositAmount)
}

Expand Down
12 changes: 8 additions & 4 deletions pkg/innerring/notary.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@
return fmt.Errorf("could not calculate main notary deposit amount: %w", err)
}

return s.mainnetClient.DepositNotary(
depositAmount,
uint32(s.epochDuration.Load())+notaryExtraBlocks,
)
till := uint32(s.epochDuration.Load()) + notaryExtraBlocks
s.log.Debug("making main chain notary deposit",
zap.Stringer("fixed8 deposit", depositAmount),
zap.Uint32("till", till))

Check warning on line 37 in pkg/innerring/notary.go

View check run for this annotation

Codecov / codecov/patch

pkg/innerring/notary.go#L34-L37

Added lines #L34 - L37 were not covered by tests

return s.mainnetClient.DepositNotary(depositAmount, till)

Check warning on line 39 in pkg/innerring/notary.go

View check run for this annotation

Codecov / codecov/patch

pkg/innerring/notary.go#L39

Added line #L39 was not covered by tests
}

func (s *Server) depositSideNotary() error {
Expand All @@ -43,6 +45,8 @@
return fmt.Errorf("could not calculate side notary deposit amount: %w", err)
}

s.log.Debug("making neofs chain endless notary deposit", zap.Stringer("fixed8 deposit", depositAmount))

Check warning on line 48 in pkg/innerring/notary.go

View check run for this annotation

Codecov / codecov/patch

pkg/innerring/notary.go#L48

Added line #L48 was not covered by tests

return s.morphClient.DepositEndlessNotary(depositAmount)
}

Expand Down
Loading