now measures total chain length by amount of work it takes to build the chain, instead of by number of blocks