Fix median time indexing

This commit is contained in:
nymkappa 2023-02-19 18:38:23 +09:00
parent b0ba5945bf
commit 35f213dd84
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ class BitcoinApi implements AbstractBitcoinApi {
size: block.size, size: block.size,
weight: block.weight, weight: block.weight,
previousblockhash: block.previousblockhash, previousblockhash: block.previousblockhash,
medianTime: block.mediantime,
}; };
} }

View File

@ -34,7 +34,7 @@ class BlocksRepository {
?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, FROM_UNIXTIME(?), ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?,