|
@@ -82,18 +82,21 @@
|
|
|
|
|
|
private async Task GetBlockChain()
|
|
|
{
|
|
|
- if (Blockchain.loaded.Count == 0)
|
|
|
- {
|
|
|
- Blockchain bc = new HyperCube.Models.Blockchain(bcURL, bcport);
|
|
|
- result = await bc.Initialize();
|
|
|
- if (result != "")
|
|
|
- hidecontr = "visible";
|
|
|
- //bcURL = bc.GetAddress();
|
|
|
- //bc.ExecuteContract();
|
|
|
- //bcURL = bc.address;
|
|
|
- //hidecontr = "hidden";
|
|
|
- }
|
|
|
+ var b2h = Blockchain.bin2hex("getCount()");
|
|
|
+ Console.WriteLine("bin2hex "+b2h);
|
|
|
+
|
|
|
+ //if (Blockchain.loaded.Count == 0)
|
|
|
+ //{
|
|
|
+ Blockchain bc = new HyperCube.Models.Blockchain(bcURL, bcport);
|
|
|
+ result = await bc.Initialize();
|
|
|
+ if (result != "")
|
|
|
+ hidecontr = "visible";
|
|
|
+ //bcURL = bc.GetAddress();
|
|
|
+ //bc.ExecuteContract();
|
|
|
+ //bcURL = bc.address;
|
|
|
+ //hidecontr = "hidden";
|
|
|
+ //}
|
|
|
|
|
|
//private Post post = new Post();
|
|
|
- }
|
|
|
+ }
|
|
|
}
|