Parcourir la source

Ajout d'un block équilibré

master
MEUNIER Thibaud il y a 6 ans
Parent
révision
5e70658660
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. +7
    -1
      blockchain/inc/block.php

+ 7
- 1
blockchain/inc/block.php Voir le fichier

@ -44,6 +44,12 @@ class blockchain
{ {
self::$special_blocks = array (); self::$special_blocks = array ();
self::$special_blocks[] = new block(
'0000000000000000001085a869441fa2aa77f149a887af0ce59846ef51da6e4c',
616193,
'EQUILIBRE'
);
self::$special_blocks[] = new block( self::$special_blocks[] = new block(
'0000000000000000000b05f877e6e49b380f4f78b3cfb605b67439f825dba197', '0000000000000000000b05f877e6e49b380f4f78b3cfb605b67439f825dba197',
613470, 613470,
@ -175,7 +181,7 @@ class blockchain
} }
// --- // ---
// --- Retourne le nom d'un block à partie de son hash
// --- Retourne le nom d'un block à partir de son hash
// --- si ce n'est pas un block special, on renvoie le hash // --- si ce n'est pas un block special, on renvoie le hash
// --- // ---
public static function hash2SpecialName($block_hash) public static function hash2SpecialName($block_hash)

Chargement…
Annuler
Enregistrer