Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 1b96295

Browse files
committed
Already a Vec
1 parent 64d7bc3 commit 1b96295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpc/src/v1/helpers/work.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub fn submit_work_detail<C: BlockChainClient, M: MinerService>(client: &Arc<C>,
3232
let pow_hash: EthcoreH256 = pow_hash.into();
3333
let mix_hash: EthcoreH256 = mix_hash.into();
3434
trace!(target: "miner", "submit_work_detail: Decoded: nonce={}, pow_hash={}, mix_hash={}", nonce, pow_hash, mix_hash);
35-
let seal = vec![rlp::encode(&mix_hash).into_vec(), rlp::encode(&nonce).into_vec()];
35+
let seal = vec![rlp::encode(&mix_hash), rlp::encode(&nonce)];
3636
let import = miner.submit_seal(pow_hash, seal)
3737
.and_then(|block| client.import_sealed_block(block));
3838
match import {

0 commit comments

Comments
 (0)