We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With this transaction, we can now modify the duration of an existing process (while in READY or PAUSE state).
If interruptible=false the duration can only be extended.
interruptible=false
The cost of the transactions is computed dynamically by: max(newPrice - previousPrice, txBaseCost)
max(newPrice - previousPrice, txBaseCost)
The required new fields already exist on the protobuf models (they were added some weeks ago), so the SDK should have already everything available.
The new transaction is of type: SetProcessTx / SET_PROCESS_DURATION https://github.com/vocdoni/dvote-protobuf/blob/master/src/vochain/vochain.proto#L168
SetProcessTx / SET_PROCESS_DURATION
The new field is uint32 duration and represents seconds. https://github.com/vocdoni/dvote-protobuf/blob/master/src/vochain/vochain.proto#L218
duration
The duration is added to startTime to compute the new endTime: endTime = startTime + duration
endTime = startTime + duration
EndTime cannot be lower than the current blockchain time, and duration must be different from zero.
PS: it would be great to add this feature to the UI, so the process end time can be set at any moment by the organizer or a delegate. cc/ @jpaulet
The text was updated successfully, but these errors were encountered:
PR: vocdoni/vocdoni-node#1344
Sorry, something went wrong.
Done in the SDK
No branches or pull requests
With this transaction, we can now modify the duration of an existing process (while in READY or PAUSE state).
If
interruptible=false
the duration can only be extended.The cost of the transactions is computed dynamically by:
max(newPrice - previousPrice, txBaseCost)
The required new fields already exist on the protobuf models (they were added some weeks ago), so the SDK should have already everything available.
The new transaction is of type:
SetProcessTx / SET_PROCESS_DURATION
https://github.com/vocdoni/dvote-protobuf/blob/master/src/vochain/vochain.proto#L168
The new field is uint32
duration
and represents seconds.https://github.com/vocdoni/dvote-protobuf/blob/master/src/vochain/vochain.proto#L218
The duration is added to startTime to compute the new endTime:
endTime = startTime + duration
EndTime cannot be lower than the current blockchain time, and duration must be different from zero.
PS: it would be great to add this feature to the UI, so the process end time can be set at any moment by the organizer or a delegate. cc/ @jpaulet
The text was updated successfully, but these errors were encountered: