Доработка

This commit is contained in:
Artem 2024-03-06 22:40:39 +03:00
parent bb01762ae9
commit 0605d565d2

View File

@ -15,7 +15,8 @@ function artembc_createbc($bc, $data=[]) {
$temp=[[
"id"=>0,
"time"=>time(),
"data"=>$data
"data"=>$data,
"transaction"=>[]
]];
$temp["hash"]=hash("sha256", json_encode($temp));
return fwrite($bc->file, json_encode($temp), $bc->max_size);