Skip to content

Commit 778aa1c

Browse files
committed
hard code a deposit due to cannot fetch a sent tx from rpc
1 parent 7af06e7 commit 778aa1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

solana/observer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ func (node *Node) releaseNonceAccounts(ctx context.Context) error {
463463
if err != nil {
464464
panic(err)
465465
}
466-
if rpcTx == nil {
466+
if rpcTx == nil || tx.Signatures[0].String() == "2BwfEFLQBv9QUXVNRRCKUTx69nM8jpzt2WR4JssMHjFvGt2tHtAzktZXi74T8vWNULF3gkDdcAoMi2xonxUTC5zN" {
467467
node.releaseLockedNonceAccount(ctx, nonce)
468468
continue
469469
}

solana/rpc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ func (node *Node) SendTransactionUtilConfirm(ctx context.Context, tx *solana.Tra
6363
retry := SolanaTxRetry
6464
for {
6565
rpcTx, err := node.RPCGetTransaction(ctx, hash)
66+
logger.Printf("solana.RPCGetTransaction(%s) => %v %v", hash, rpcTx, err)
6667
if err != nil {
67-
logger.Printf("solana.RPCGetTransaction(%s) => %v", hash, err)
6868
time.Sleep(time.Second * 3)
6969
}
7070
if rpcTx != nil {

0 commit comments

Comments
 (0)