def setV4SpendEnforcement(self, fEnable=True):
    sporkName = 'SPORK_18_ZEROCOIN_PUBLICSPEND_V4'
    if fEnable:
        self.log.info('Enabling v4 PublicSpend version with SPORK 18...')
        res = self.activate_spork(0, sporkName)
    else:
        self.log.info('Enabling v3 PublicSpend version with SPORK 18...')
        res = self.deactivate_spork(0, sporkName)
    assert_equal(res, 'success')
    sleep(1)
    assert_equal(fEnable, self.is_spork_active(1, sporkName))
    self.log.info('done')
def setV4SpendEnforcement(self, fEnable=True):
    sporkName = 'SPORK_18_ZEROCOIN_PUBLICSPEND_V4'
    if fEnable:
        self.log.info('Enabling v4 PublicSpend version with SPORK 18...')
        res = self.activate_spork(0, sporkName)
    else:
        self.log.info('Enabling v3 PublicSpend version with SPORK 18...')
        res = self.deactivate_spork(0, sporkName)
    assert_equal(res, 'success')
    sleep(1)
    assert_equal(fEnable, self.is_spork_active(1, sporkName))
    self.log.info('done')