Gas Station Network Transaction failing on rinkeby with > 1million gas

We have a working Ganache implemention of the Gas Station Network with the GSNSignatureRecipient bouncer pattern. When we deploy this contract to rinkeby and try to use the relayer transactions fail with:

Error: Returned error: gas required exceeds allowance (9990236) or always failing transaction

The transactions we are trying to relay are AZTEC proofs and are currently 900,000 - 1,4000,000 gas. Low gas transactions work correctly on Rinkeby.

Is there a gas limit imposed by the relayer, or any other issues that may be causing this?

:computer: Environment

Network: Rinkeby

    "@openzeppelin/contracts-ethereum-package": "^2.4.0",
    "@openzeppelin/gsn-helpers": "^0.2.1",
    "@openzeppelin/gsn-provider": "^0.1.9",
1 Like

Note that this amount is almost 10 million, not 1 million. Do you observe differences in the gas used by your transactions on Ganache and Rinkeby? Could you share a link to a relayed transaction on Etherscan?

Are using the GSNDevProvider when running tests on Ganache? There might be discrepancies between that one and a real relayer.

1 Like