From 0605d565d2759f335331782e1f203e8ca97e2f24 Mon Sep 17 00:00:00 2001 From: Artem Date: Wed, 6 Mar 2024 22:40:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- artemsbc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artemsbc.php b/artemsbc.php index a8a0e0b..7880044 100644 --- a/artemsbc.php +++ b/artemsbc.php @@ -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);