Skip to content

Commit 5658ebb

Browse files
committed
should check balance after synced
1 parent cf8f431 commit 5658ebb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

solana/node.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ func (node *Node) Boot(ctx context.Context, version string) {
7272
func (node *Node) mtgBalanceCheckLoop(ctx context.Context) {
7373
for {
7474
time.Sleep(time.Minute)
75+
if !node.synced(ctx) {
76+
continue
77+
}
7578
as, err := node.store.ListDeployedAssets(ctx)
7679
if err != nil {
7780
panic(err)

0 commit comments

Comments
 (0)