Package net.sdiz.bitcoin

Examples of net.sdiz.bitcoin.Work


  public void setUp() {
    scanHash = new ScanHash();
  }

  public void testScanHashNegative() {
    Work work = new Work(
        "00000001569be4f2b5b23e745240aaa149084029850973b78b0c5ce40002f41600000000f1c3d9c8a8a701275715da32e577521340180146e3517c8ebb1d0044feaa9f3f4d1d355d1b04864c00000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000",
        "00000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000010000",
        "ffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000",
        "babe3a22106e8bd2274bcb1571042c5dde2ee927a3fb62606938ab8ae7b241ba");
    Assert.assertFalse("No match for casial hash",
View Full Code Here


    Assert.assertFalse("No match for casial hash",
        scanHash.scan(work, 1, 0xffff));
  }

  public void testScanHashPositive() {
    Work work = new Work(
        "0000000114cbad4d7252a937cb65437645722fa3c6cf16cfd3eaa3fc0001e6f6000000008249f5c8ee2f04f0cdca30b97949373d00db1b34d45253407567df2ce552a9ed4d1d5c9c1b04864c00000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000",
        "00000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000010000",
        "ffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000",
        "f5cb759978f54c15cef60cc43fa510bb5621fc1ddb4bb285efe6e4c55aa3fb85");
View Full Code Here

TOP

Related Classes of net.sdiz.bitcoin.Work

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.