@@ -0,0 +1,1495 @@
+import os, pickle%0A%0AbountyList = %5B%5D%0A%0Aclass Bounty:%0A  ip, btc, reward%0A  data = %5B%5D%0A  %0A  def __init__(ipAddress, btcAddress, rewardAmount):%0A    ip = ipAddress%0A    btc = btcAddress%0A    reward = rewardAmount%0A  %0A  def __init__(ipAddress, btcAddress, rewardAmount, dataList):%0A    ip = ipAddress%0A    btc = btcAddress%0A    reward = rewardAmount%0A    data = dataList%0A  %0A  def addData(dataList):%0A    data = dataList%0A    %0A  def isValid():%0A    #ping ip%0A    #check if all fields have things%0A    return False%0A  %0A  def isPayable():%0A    #check if address has enough%0A    return False%0A%0Adef saveToFile():%0A  if os.path.exists(%22bounties.pickle%22):%0A    pickle.dump(boutyList,%22bounties.pickle%22)%0A    return True%0A  return False%0A%0Adef loadFromFile():%0A  if os.path.exists(%22settings.conf%22):%0A    bountyList = pickle.load(%22bounties.pickle%22)%0A    return True%0A  return False%0A%0Adef loadBounties():%0A  loadFromFile()%0A  if len(bountyList) is 0:%0A    requestBounties()%0A  return len(bountyList) is not 0%0A%0Adef requestBounties(peerList):%0A  for peer in peerList:%0A    bountyList.extend(requestBounty(peer))%0A    %0Adef requestBounty(peer):%0A  print %22currently unsupported%22%0A%0Adef sendBounty(peer):%0A  print %22currently unsupported%22%0A  if len(bountyList) is 0:%0A    loadBounties()%0A  #send bounties%0A  dumpBounties()%0A%0Adef getBounty(charity, factor):%0A  for bounty in bountyList:%0A    if best is None:%0A      best = bounty%0A    elif best.rewardAmount %3C bounty.rewardAmount and bounty.isValid() and (isPayable(factor) or charity):%0A      best = bounty%0A  return best%0A

Create bounty.py