Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Use the `claim` API #2
This script should use the claim API to guarantee the exclusive right to call. This logic should probably do some semi-intelligent calculation using the call's
This is actually already implemented in the client.
It waits to claim until either the payment from the call is sufficient to cover the cost of the claiming transaction or the last 15 blocks in the claim window. Then on each block it does a random roll to decide whether it should claim the call.
This is just a simple way to use probability to try and ensure that multiple clients aren't competing for the same calls.