forked from Qortal/qortal
According to Bitcoin source, CheckFinalTx() in validation.cpp ~line 223, we need to make sure median blocktime has passed P2SH refund transaction's nLockTime. Previously we were erroneously checking that median blocktime was in the past. This should fix issues where refunding P2SH results in a "non-final" error from the ElectrumX server network.