improvment

This commit is contained in:
BitcoinVM
2024-02-02 13:06:00 +08:00
parent bd080281a7
commit e19b309980
3 changed files with 36 additions and 26 deletions
+5 -5
View File
@@ -68,11 +68,11 @@ function showName(i: number, text: string) {
}
return i;
}
const txt = text.substring(text.indexOf(':') + 1, text.indexOf(' '));
const sig = text.split(' ');
// @ts-ignore
const val = validators.value.find((x) => x?.hex?.startsWith(txt));
return `${val?.description?.moniker || txt} - ${sig[2]}`;
// const txt = text.substring(text.indexOf(':') + 1, text.indexOf(' '));
// const sig = text.split(' ');
// // @ts-ignore
// const val = validators.value.find((x) => x?.hex?.startsWith(txt));
// return `${val?.description?.moniker || txt} - ${sig[2]}`;
}
function color(i: number, txt: string) {
if (i === roundState.value?.proposer?.index) {