Skip to content

Commit

Permalink
node, ir: add debug logs for notary deposits (#2952)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov authored Sep 29, 2024
2 parents f7efbe0 + eaf6b47 commit 0c297f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
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 @@ func makeNotaryDeposit(c *cfg) error {
return fmt.Errorf("could not calculate notary deposit: %w", err)
}

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

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 @@ func (s *Server) depositMainNotary() error {
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))

return s.mainnetClient.DepositNotary(depositAmount, till)
}

func (s *Server) depositSideNotary() error {
Expand All @@ -43,6 +45,8 @@ func (s *Server) depositSideNotary() error {
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))

return s.morphClient.DepositEndlessNotary(depositAmount)
}

Expand Down

0 comments on commit 0c297f6

Please sign in to comment.