package org.bdware.sc.blockdb.test;

import org.bdware.bdledger.api.grpc.Client;

public class ElasticDBUtilTest {
    public static void main(String[] args) {
        Client ci = new Client("127.0.0.1", 18095);
        System.out.println(ci.clientVersionSync());
//		long start = System.currentTimeMillis();
//		ElasticDBUtil util = new ElasticDBUtil();
//		//System.out.println(util.Create_DB());
//		for (int i=0;i<10000000;i++) {
//			Transaction trans = new Transaction();
//			trans.data = ("eee1688b9d431ee448d97ed1dbdb62339b1b68d3"+i).getBytes();
//			trans.hash = ("aee1688b9d431ee448d97ed1dbdb62339"+i).getBytes();
//			util.Put(trans);
//		}
//		//Map<String,Object> condition = new HashMap<>();
//		//condition.put("data", "hello10");
//		//util.Get(condition);
//		long end = System.currentTimeMillis();
//		System.out.println("consume time =>"+(end-start));
    }
}
