Skip to content

add(core): eth finalized block#67

Merged
bladehan1 merged 1 commit intobttcprotocol:developfrom
bladehan1:fea-eth-finalized
Oct 13, 2023
Merged

add(core): eth finalized block#67
bladehan1 merged 1 commit intobttcprotocol:developfrom
bladehan1:fea-eth-finalized

Conversation

@bladehan1
Copy link
Copy Markdown
Contributor

What does this PR do?

Add query eth finalized block to prevent transaction verification error when eth is forked.

Why are these changes required?

The eth2.0 finalized block may be more than 64 blocks away from the head block. At this time, it is not safe to use the original method to verify transactions on the eth chain.

This PR has been tested by:

  • Unit Tests

  • Manual Testing

Follow up

Extra details

@bladehan1 bladehan1 force-pushed the fea-eth-finalized branch 2 times, most recently from b590633 to 98d8e4f Compare August 15, 2023 09:38
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 15, 2023

Codecov Report

Merging #67 (f694774) into develop (363c61b) will increase coverage by 0.03%.
The diff coverage is 75.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@             Coverage Diff             @@
##           develop      #67      +/-   ##
===========================================
+ Coverage    60.29%   60.33%   +0.03%     
===========================================
  Files           52       52              
  Lines         4423     4427       +4     
===========================================
+ Hits          2667     2671       +4     
  Misses        1519     1519              
  Partials       237      237              
Files Coverage Δ
clerk/querier.go 61.64% <75.00%> (+1.08%) ⬆️
clerk/side_handler.go 66.39% <75.00%> (+0.56%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@bladehan1 bladehan1 force-pushed the fea-eth-finalized branch 2 times, most recently from 0ede86f to e727c81 Compare August 15, 2023 11:00
@bladehan1 bladehan1 merged commit a565d79 into bttcprotocol:develop Oct 13, 2023
@bladehan1 bladehan1 deleted the fea-eth-finalized branch April 15, 2024 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants