Skip to content

Add a leeway arg for the fee #2282

@kalepail

Description

@kalepail

I'm getting a ton of timeouts with the CLI due to the fee not being sufficiently higher than the base so the tx just keeps getting punted to the next ledger but never being included (thanks $KALE 🙄)

% stellar contract invoke --id CAK6Z6KFMB3V2ENEJ7THVKXUYQ5EG7EL2TM5UQ2FLDXI37FS6DRIMIZH --source rich -- add_game --id CDB6IODG5BNNVILLJXBXYZVR7NP4HDO2NL7WALWIXGIDMA6VY4V75CEX
ℹ️  Signing transaction: d7787e6b6423cdad1944763384cab2a905b44add08ad248258a3c4d4cab011b3
❌ error: transaction submission timeout
% stellar contract invoke --id CAK6Z6KFMB3V2ENEJ7THVKXUYQ5EG7EL2TM5UQ2FLDXI37FS6DRIMIZH --source rich -- add_game --id CDB6IODG5BNNVILLJXBXYZVR7NP4HDO2NL7WALWIXGIDMA6VY4V75CEX
ℹ️  Signing transaction: d7787e6b6423cdad1944763384cab2a905b44add08ad248258a3c4d4cab011b3
❌ error: transaction submission timeout

I can hardcode a --fee but that's too brute force. I'd prefer to be able to make an additive fee to the simulated fee vs just overwriting it.

Another fix you should consider is using the fee endpoint of the RPC to be smarter about what fee to use. Use p50 or even higher to get past the base fee Launchtube is using.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions