mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
VC: use block publication v2 SSZ API (#6523)
* VC: use block publication v2 SSZ API
This commit is contained in:
@@ -525,7 +525,7 @@ impl<T: SlotClock + 'static, E: EthSpec> BlockService<T, E> {
|
|||||||
&[metrics::BEACON_BLOCK_HTTP_POST],
|
&[metrics::BEACON_BLOCK_HTTP_POST],
|
||||||
);
|
);
|
||||||
beacon_node
|
beacon_node
|
||||||
.post_beacon_blocks(signed_block)
|
.post_beacon_blocks_v2_ssz(signed_block, None)
|
||||||
.await
|
.await
|
||||||
.or_else(|e| handle_block_post_error(e, slot, log))?
|
.or_else(|e| handle_block_post_error(e, slot, log))?
|
||||||
}
|
}
|
||||||
@@ -535,7 +535,7 @@ impl<T: SlotClock + 'static, E: EthSpec> BlockService<T, E> {
|
|||||||
&[metrics::BLINDED_BEACON_BLOCK_HTTP_POST],
|
&[metrics::BLINDED_BEACON_BLOCK_HTTP_POST],
|
||||||
);
|
);
|
||||||
beacon_node
|
beacon_node
|
||||||
.post_beacon_blinded_blocks(signed_block)
|
.post_beacon_blinded_blocks_v2_ssz(signed_block, None)
|
||||||
.await
|
.await
|
||||||
.or_else(|e| handle_block_post_error(e, slot, log))?
|
.or_else(|e| handle_block_post_error(e, slot, log))?
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user