File tree 3 files changed +3
-4
lines changed
executor/src/system_contract/metadata
3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ pub fn time_now() -> u64 {
38
38
/// `keccak256` hash calculation at the end of each height. The reason why not
39
39
/// use address directly is that the `PeerId` is binding with public key not
40
40
/// address.
41
+ /// The `common_ref` do not affect the signature verification, it is a
42
+ /// placeholder.
41
43
pub struct OverlordCrypto {
42
44
private_key : BlsPrivateKey ,
43
45
addr_pubkey : RwLock < HashMap < Bytes , BlsPublicKey > > ,
Original file line number Diff line number Diff line change @@ -86,10 +86,6 @@ impl<Adapter: ExecutorAdapter + ApplyBackend> SystemContract<Adapter>
86
86
) ;
87
87
}
88
88
metadata_abi:: MetadataContractCalls :: SetCkbRelatedInfo ( c) => {
89
- if !adapter. block_number ( ) . is_zero ( ) {
90
- return revert_resp ( gas_limit) ;
91
- }
92
-
93
89
exec_try ! (
94
90
store. set_ckb_related_info( & c. info. into( ) ) ,
95
91
gas_limit,
Original file line number Diff line number Diff line change @@ -368,6 +368,7 @@ fn init_crypto(
368
368
bls_pub_keys. insert ( address, pub_key) ;
369
369
}
370
370
371
+ // The `common_ref` is a placeholder, use empty string.
371
372
let crypto = OverlordCrypto :: new ( bls_priv_key, bls_pub_keys, String :: new ( ) ) ;
372
373
Ok ( Arc :: new ( crypto) )
373
374
}
You can’t perform that action at this time.
0 commit comments