Skip to content
New issue

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

Enhance schedule creation #98

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions services/response_code.proto
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,7 @@ enum ResponseCodeEnum {

/**
* A schedule already exists with the same identifying fields of an attempted ScheduleCreate (that is, all fields other than scheduledPayerAccountID)
* and the merge_with_identical_schedule field of the schedule is set to false.
*/
IDENTICAL_SCHEDULE_ALREADY_CREATED = 210;

Expand Down Expand Up @@ -1025,4 +1026,9 @@ enum ResponseCodeEnum {
* The provided pause key was invalid
*/
INVALID_PAUSE_KEY = 267;

/**
* A schedule already exists with the same identifying fields of an attempted ScheduleCreate except for its payerAccountID
*/
IDENTICAL_SCHEDULE_ALREADY_EXISTS_WITH_DIFFERENT_PAYER = 268;
}
9 changes: 9 additions & 0 deletions services/schedule_create.proto
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,13 @@ message ScheduleCreateTransactionBody {
* given
*/
AccountID payerAccountID = 4;

/**
* Controls how the network will behave when there is an identical transaction already scheduled (but not yet executed).
*
* If true, this ScheduleCreate will resolve to SUCCESS, and the existing schedule entity will receives any signatures from this transaction.
*
* If false, this ScheduleCreate will resolve to IDENTICAL_SCHEDULE_ALREADY_CREATED, and the receipt will contain the id of the existing schedule entity.
*/
bool merge_with_identical_schedule = 5;
}