Skip to content

Commit ee95a1e

Browse files
committed
validator_worker leader - fix double hex::encodeing state_root before adapter.sign()
1 parent 5772bd0 commit ee95a1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validator_worker/src/leader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn on_new_accounting<A: Adapter + 'static>(
2525
let state_root_raw = get_state_root_hash(&iface, &balances)?;
2626
let state_root = hex::encode(state_root_raw);
2727

28-
let signature = iface.adapter.sign(&hex::encode(&state_root))?;
28+
let signature = iface.adapter.sign(&state_root)?;
2929

3030
iface.propagate(&[&MessageTypes::NewState(NewState {
3131
state_root,

0 commit comments

Comments
 (0)