[#963] node: Add logging for waitNotaryDeposit
DCO action / DCO (pull_request) Successful in 2m19s Details
Vulncheck / Vulncheck (pull_request) Successful in 3m13s Details
Build / Build Components (1.21) (pull_request) Successful in 4m13s Details
Build / Build Components (1.20) (pull_request) Successful in 4m18s Details
Tests and linters / Staticcheck (pull_request) Successful in 5m57s Details
Tests and linters / Lint (pull_request) Successful in 6m31s Details
Tests and linters / gopls check (pull_request) Successful in 7m11s Details
Tests and linters / Tests (1.20) (pull_request) Successful in 9m42s Details
Tests and linters / Tests (1.21) (pull_request) Successful in 10m30s Details
Tests and linters / Tests with -race (pull_request) Successful in 10m33s Details

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
pull/1042/head
Airat Arifullin 2024-03-13 11:57:51 +03:00
parent 7a4b6057ce
commit d1d53d2bb6
2 changed files with 4 additions and 0 deletions

View File

@ -158,6 +158,7 @@ var (
func waitNotaryDeposit(ctx context.Context, c *cfg, tx util.Uint256) error {
for i := 0; i < notaryDepositRetriesAmount; i++ {
c.log.Debug(logs.ClientAttemptToWaitForNotaryDepositTransactionToGetPersisted)
select {
case <-ctx.Done():
return ctx.Err()
@ -167,6 +168,7 @@ func waitNotaryDeposit(ctx context.Context, c *cfg, tx util.Uint256) error {
ok, err := c.cfgMorph.client.TxHalt(tx)
if err == nil {
if ok {
c.log.Info(logs.ClientNotaryDepositTransactionWasSuccessfullyPersisted)
return nil
}

View File

@ -158,6 +158,8 @@ const (
ClientNotaryDepositInvoke = "notary deposit invoke"
ClientNotaryRequestWithPreparedMainTXInvoked = "notary request with prepared main TX invoked"
ClientNotaryRequestInvoked = "notary request invoked"
ClientNotaryDepositTransactionWasSuccessfullyPersisted = "notary deposit transaction was successfully persisted"
ClientAttemptToWaitForNotaryDepositTransactionToGetPersisted = "attempt to wait for notary deposit transaction to get persisted"
ClientNeoClientInvoke = "neo client invoke"
ClientNativeGasTransferInvoke = "native gas transfer invoke"
ClientBatchGasTransferInvoke = "batch gas transfer invoke"