We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
buildEthblock
suave-geth version 0.1.5-d8f48a86-20240414
No response
Linux
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.19; import "suave-std/suavelib/Suave.sol"; contract Builder { event NewBuilderBidEvent(Suave.DataId dataId, uint64 decryptionCondition, address[] allowedPeekers); function emitNewBuilderBidEvent(Suave.DataRecord memory record) public { emit NewBuilderBidEvent(record.id, record.decryptionCondition, record.allowedPeekers); } function build( uint64 blockNumber, string calldata relayUrl, address[] calldata allowedPeekers, address[] calldata allowedStores ) external payable returns (bytes memory) { require(Suave.isConfidential()); Suave.DataId[] memory dataids = new Suave.DataId[](0); Suave.DataRecord memory record = Suave.newDataRecord(blockNumber, allowedPeekers, allowedStores, "random"); Suave.confidentialStore(record.id, "default:v0:mergedDataRecords", abi.encode(dataids)); Suave.BuildBlockArgs memory blockArgs; blockArgs.fillPending = true; (bytes memory builderBid, bytes memory envelope) = Suave.buildEthBlock(blockArgs, record.id, ""); // namespace not used. Suave.submitEthBlockToRelay(relayUrl, builderBid); return bytes.concat(this.emitNewBuilderBidEvent.selector, abi.encode(record)); } }
The method build() fails with 'out of gas' when Suave.buildEthBlock returns very large payload. When I ran It failed with 300 tx in a block
build()
Suave.buildEthBlock
The text was updated successfully, but these errors were encountered:
This is fixed, we added a new flag to the precompile to send directly to the relayer instead of loading the block into memory.
Sorry, something went wrong.
No branches or pull requests
What version of Suave are you on?
suave-geth version 0.1.5-d8f48a86-20240414
What command(s) is the bug in?
No response
Operating System
Linux
Describe the bug
The method
build()
fails with 'out of gas' whenSuave.buildEthBlock
returns very large payload. When I ran It failed with 300 tx in a blockThe text was updated successfully, but these errors were encountered: