diff --git a/pool/page_blocks.php b/pool/page_blocks.php index af7394ff..54233825 100644 --- a/pool/page_blocks.php +++ b/pool/page_blocks.php @@ -58,6 +58,7 @@ function doblocks($data, $user) { $pg .= "
# | "; $pg .= "Height | "; if ($user !== null) $pg .= "Who | "; @@ -65,7 +66,7 @@ function doblocks($data, $user) $pg .= "When | "; $pg .= "Status | "; $pg .= "Diff | "; - $pg .= "% | "; + $pg .= "Diff% | "; $pg .= "CDF | "; $pg .= "
$seq | "; $pg .= "$hifld | "; if ($user !== null) $pg .= "".htmlspecialchars($ans['workername:'.$i]).' | '; @@ -155,11 +158,13 @@ function doblocks($data, $user) } else { + $csv .= "$seq,"; $csv .= "$hi,"; $csv .= "\"$stat\","; $csv .= $ans['firstcreatedate:'.$i].','; $csv .= "$diffacc,"; - $csv .= "$netdiff\n"; + $csv .= "$netdiff,"; + $csv .= $ans['blockhash:'.$i]."\n"; } } } diff --git a/src/ckdb.h b/src/ckdb.h index b0dec28d..3d6bb698 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -52,7 +52,7 @@ #define DB_VLOCK "1" #define DB_VERSION "0.9.6" -#define CKDB_VERSION DB_VERSION"-0.781" +#define CKDB_VERSION DB_VERSION"-0.782" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__ diff --git a/src/ckdb_cmd.c b/src/ckdb_cmd.c index 7e2dc96d..ecd43471 100644 --- a/src/ckdb_cmd.c +++ b/src/ckdb_cmd.c @@ -836,7 +836,7 @@ static char *cmd_blocklist(__maybe_unused PGconn *conn, char *cmd, char *id, snprintf(tmp, sizeof(tmp), "height:%d=%s%c", rows, reply, FLDSEP); APPEND_REALLOC(buf, off, len, tmp); - str_to_buf(blocks->blockhash, reply, sizeof(reply)); + dbhash2btchash(blocks->blockhash, reply, sizeof(reply)); snprintf(tmp, sizeof(tmp), "blockhash:%d=%s%c", rows, reply, FLDSEP); APPEND_REALLOC(buf, off, len, tmp);