This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
Artems_Blockchain-old/artemsbc.php

22 lines
556 B
PHP

<?php
class artembc {}
function artembc_init($filename, $lock=true, $max_size=4094) {
$bc=new artembc;
$bc->max_size=$max_size;
$bc->file=fopen($filename, "w+");
if ($lock) {
if (!flock($bc->file, LOCK_EX)) {
return false;
die("bcerror:locked_file");
}
}
return $bc;
}
function artembc_createbc() {}
function artembc_addtransaction() {}
function artembc_initblock() {}
function artembc_checkbc() {}
function artembc_getblock() {}
function artembc_getbc() {}
function artembc_getnamebc() {}
?>