|
@@ -977,11 +977,31 @@ begin
|
|
OperationResume.Senders[0].N_Operation:=FData.n_operation;
|
|
OperationResume.Senders[0].N_Operation:=FData.n_operation;
|
|
OperationResume.Senders[0].Payload:=FData.payload;
|
|
OperationResume.Senders[0].Payload:=FData.payload;
|
|
OperationResume.Senders[0].Signature:=FData.sign;
|
|
OperationResume.Senders[0].Signature:=FData.sign;
|
|
- SetLength(OperationResume.Receivers,1);
|
|
|
|
- OperationResume.Receivers[0] := CT_TMultiOpReceiver_NUL;
|
|
|
|
- OperationResume.Receivers[0].Account:=FData.target;
|
|
|
|
- OperationResume.Receivers[0].Amount:=FData.amount;
|
|
|
|
- OperationResume.Receivers[0].Payload:=FData.payload;
|
|
|
|
|
|
+ case FData.opTransactionStyle of
|
|
|
|
+ transaction : begin
|
|
|
|
+ SetLength(OperationResume.Receivers,1);
|
|
|
|
+ OperationResume.Receivers[0] := CT_TMultiOpReceiver_NUL;
|
|
|
|
+ OperationResume.Receivers[0].Account:=FData.target;
|
|
|
|
+ OperationResume.Receivers[0].Amount:=FData.amount;
|
|
|
|
+ OperationResume.Receivers[0].Payload:=FData.payload;
|
|
|
|
+ end;
|
|
|
|
+ buy_account,transaction_with_auto_buy_account : begin
|
|
|
|
+ SetLength(OperationResume.Receivers,2);
|
|
|
|
+ OperationResume.Receivers[0] := CT_TMultiOpReceiver_NUL;
|
|
|
|
+ OperationResume.Receivers[0].Account:=FData.target;
|
|
|
|
+ OperationResume.Receivers[0].Amount:= (FData.amount - FData.AccountPrice);
|
|
|
|
+ OperationResume.Receivers[0].Payload:=FData.payload;
|
|
|
|
+ OperationResume.Receivers[1] := CT_TMultiOpReceiver_NUL;
|
|
|
|
+ OperationResume.Receivers[1].Account:=FData.SellerAccount;
|
|
|
|
+ OperationResume.Receivers[1].Amount:= FData.AccountPrice;
|
|
|
|
+ OperationResume.Receivers[1].Payload:=FData.payload;
|
|
|
|
+ SetLength(OperationResume.Changers,1);
|
|
|
|
+ OperationResume.Changers[0] := CT_TMultiOpChangeInfo_NUL;
|
|
|
|
+ OperationResume.Changers[0].Account := FData.target;
|
|
|
|
+ OperationResume.Changers[0].Changes_type := [public_key];
|
|
|
|
+ OperationResume.Changers[0].New_Accountkey := FData.new_accountkey;
|
|
|
|
+ end;
|
|
|
|
+ end;
|
|
end;
|
|
end;
|
|
|
|
|
|
function TOpTransaction.OperationAmount: Int64;
|
|
function TOpTransaction.OperationAmount: Int64;
|
|
@@ -1804,6 +1824,22 @@ begin
|
|
SetLength(OperationResume.Changers,1);
|
|
SetLength(OperationResume.Changers,1);
|
|
OperationResume.Changers[0] := CT_TMultiOpChangeInfo_NUL;
|
|
OperationResume.Changers[0] := CT_TMultiOpChangeInfo_NUL;
|
|
OperationResume.Changers[0].Account:=FData.account_target;
|
|
OperationResume.Changers[0].Account:=FData.account_target;
|
|
|
|
+ case FData.operation_type of
|
|
|
|
+ lat_ListForSale : begin
|
|
|
|
+ if (FData.new_public_key.EC_OpenSSL_NID=CT_TECDSA_Public_Nul.EC_OpenSSL_NID) then begin
|
|
|
|
+ OperationResume.Changers[0].Changes_type:=[list_for_public_sale];
|
|
|
|
+ end else begin
|
|
|
|
+ OperationResume.Changers[0].Changes_type:=[list_for_private_sale];
|
|
|
|
+ OperationResume.Changers[0].New_Accountkey := FData.new_public_key;
|
|
|
|
+ OperationResume.Changers[0].Locked_Until_Block := FData.locked_until_block;
|
|
|
|
+ end;
|
|
|
|
+ OperationResume.Changers[0].Seller_Account:=FData.account_to_pay;
|
|
|
|
+ OperationResume.Changers[0].Account_Price:=FData.account_price;
|
|
|
|
+ end;
|
|
|
|
+ lat_DelistAccount : begin
|
|
|
|
+ OperationResume.Changers[0].Changes_type:=[delist];
|
|
|
|
+ end;
|
|
|
|
+ end;
|
|
if (FData.account_signer = FData.account_target) then begin
|
|
if (FData.account_signer = FData.account_target) then begin
|
|
OperationResume.Changers[0].Fee:=FData.fee;
|
|
OperationResume.Changers[0].Fee:=FData.fee;
|
|
OperationResume.Changers[0].N_Operation:=FData.n_operation;
|
|
OperationResume.Changers[0].N_Operation:=FData.n_operation;
|