Skip to content
Compare
Choose a tag to compare

Syscoin 4.1.2.1 Release

@willyko willyko released this
· 24328 commits to master since this release
Compare
Choose a tag to compare

ZDAG fixes + miner code related to input conflicts (#392)

  • ZDAG fixes + miner code related to input conflicts

fixes #391

  • Update configure.ac

  • add existsConflict logic

modify removeConflicts to return a bool (for miner) if conflict got removed so miner can try again to create a new block. Also miner verifies inputs are valid or rejects/clears tx because a remnant from a input conflict where one got mined and the other stays (removeConflicts returns false but the input isn't valid in the mainchain because its spent)

zdag uses existsConflict so it doesnt remove it and subsequent calls pass to verifyzdag in the event of an error the first time due to inputs conflict

  • remove graph ordering by time logic

txmempool has a comparator which does hash if the ancestor account is equal so fall back to time in that case

  • rm graph