public boolean moreWorkThan(StoredBlock other) {
        return chainWork.compareTo(other.chainWork) > 0;
    }
@Test
    public void moreWorkThan() {
        StoredBlock noWorkBlock = new StoredBlock(BLOCK, BigInteger.ZERO, 0);
        StoredBlock smallWorkBlock = new StoredBlock(BLOCK, BigInteger.ONE, 0);
        StoredBlock maxWorkBlockV1 = new StoredBlock(BLOCK, MAX_WORK_V1, 0);
        StoredBlock maxWorkBlockV2 = new StoredBlock(BLOCK, MAX_WORK_V2, 0);

        assertTrue(smallWorkBlock.moreWorkThan(noWorkBlock));
        assertTrue(maxWorkBlockV1.moreWorkThan(noWorkBlock));
        assertTrue(maxWorkBlockV1.moreWorkThan(smallWorkBlock));
        assertTrue(maxWorkBlockV2.moreWorkThan(maxWorkBlockV1));
    }