-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
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
fix: Use actual replayed tx's gas and pubdata prices to replay tx. #319
Conversation
zksync_utils = { git = "https://github.com/matter-labs/zksync-era.git", rev = "e10bbdd1e863962552f37e768ae6af649353e4ea" } | ||
zksync_state = { git = "https://github.com/matter-labs/zksync-era.git", rev = "e10bbdd1e863962552f37e768ae6af649353e4ea" } | ||
zksync_web3_decl = { git = "https://github.com/matter-labs/zksync-era.git", rev = "e10bbdd1e863962552f37e768ae6af649353e4ea", features = [ | ||
zksync_basic_types = { git = "https://github.com/matter-labs/zksync-era.git", rev = "0d51cd6f3e65eef1bda981fe96f3026d8e12156d" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this commit there was added fair_pubdata_price
value, that is needed for replaying transaction.
more details here:
matter-labs/zksync-era#2244
"server", | ||
"client", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zksync_web3_decl does not support client
feature on this commit
Web3Error::InternalError(_) | Web3Error::MethodNotImplemented => { | ||
ErrorCode::InternalError | ||
} | ||
Web3Error::NoBlock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes are caused by bumping the version of zksync_ dependencies
let hash = match tx_req.get_tx_hash() { | ||
Ok(result) => result, | ||
Err(e) => { | ||
tracing::error!("Transaction request serialization error: {}", e); | ||
return futures::future::err(into_jsrpc_error(Web3Error::SerializationError(e))) | ||
.boxed(); | ||
} | ||
}; | ||
let bytes = match tx_req.get_signed_bytes(&PackedEthSignature::from_rsv( | ||
&H256::default(), | ||
&H256::default(), | ||
27, | ||
)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes are caused by bumping the version of zksync_ dependencies
What 💻
zksync era
dependencies versionfork.rs
to extract l1 batch gas info.create_l1_batch_env
to constructBatchFeeInput
from values taken from l1 batch details, if memory node is running in fork mode.Why ✋
Context: successful txs from fork fails while replaying them with node.
This is caused by wrong gas/fee values stored in
fee_input_provider
that are used to calculate tx cost.