gitlab.com/SkynetLabs/skyd@v1.6.9/skymodules/renter/contractor/watchdog_consts.go (about) 1 package contractor 2 3 import ( 4 "gitlab.com/SkynetLabs/skyd/build" 5 "go.sia.tech/siad/types" 6 7 "gitlab.com/NebulousLabs/errors" 8 ) 9 10 const ( 11 // If the watchdog sees one of its contractor's file contracts appear in a 12 // reverted block, it will begin watching for it again with some flexibility 13 // for when it appears in the future. 14 reorgLeeway = 24 15 ) 16 17 var ( 18 // waitTime is the number of blocks the watchdog will wait to see a 19 // pendingContract onchain before double-spending it. 20 waitTime = build.Select(build.Var{ 21 Dev: types.BlockHeight(100), 22 Standard: types.BlockHeight(288), 23 Testing: types.BlockHeight(100), 24 }).(types.BlockHeight) 25 ) 26 27 var ( 28 errAlreadyWatchingContract = errors.New("Watchdog already watching contract with this ID") 29 errTxnNotInSet = errors.New("Transaction not in set; cannot remove from set.") 30 )