correctly store cluster_time in sql
This commit is contained in:
parent
20a9914e76
commit
e28a1976b3
|
@ -334,7 +334,7 @@ impl BlockListener {
|
|||
slot: slot as i64,
|
||||
leader_id: 0, // TODO: lookup leader
|
||||
parent_slot: parent_slot as i64,
|
||||
cluster_time: Utc.timestamp_millis_opt(block_time).unwrap(),
|
||||
cluster_time: Utc.timestamp_millis_opt(block_time*1000).unwrap(),
|
||||
local_time: block_info.map(|b| b.processed_local_time).flatten(),
|
||||
}))
|
||||
.expect("Error sending block to postgres service");
|
||||
|
|
Loading…
Reference in New Issue