Skip to content
Merged
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
6 changes: 5 additions & 1 deletion node/coinstacks/solana/api/src/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,11 @@ export class Solana implements BaseAPI, API {
@Post('send/')
async sendTx(@Body() body: SendTxBody): Promise<string> {
try {
const txSig = await heliusSdk.connection.sendRawTransaction(Buffer.from(body.hex, 'base64'))
// Preflight against the confirmed bank - provider built txs (e.g. across) pin blockhashes at
// confirmed commitment, which the default finalized preflight won't know for ~30s
const txSig = await heliusSdk.connection.sendRawTransaction(Buffer.from(body.hex, 'base64'), {
preflightCommitment: 'confirmed',
})

return txSig
} catch (err) {
Expand Down
Loading