The createblock had to change because the AddressTo160 doesnt exist in the new bitcoin src. But I suspect blocks wouldnt download if I didnt port it correctly.
What does bitcoin use instead? Presumably bitcoin still needs to validate its old blocks that did use 160 bit whatzits?
-MarkM-
So here
https://github.com/sidhujag/devcoin/blob/master/src/main.cppIn connectblock it was checking address validity by seeing if hash160
was non zero but there were two new classes I used to check validity and get the address to store in the coinlist structure. CxDestination allow you to extract address destination using ExtractDestination passing in the script public key.. Then i pass the destination into
a new CBitcoinAddress which has a isvalid and then a tostring()...
In createnewblock (near end) Im doing an additional validity check and then using CKeyID to
call GetID() on the CBitcoinAddress which returns the hash160 of the public address. So its just using these other functions to do same thing