Research Article

Blockchain-Based Trust Auction for Dynamic Virtual Machine Provisioning and Allocation in Clouds

Algorithm 4

Payment management.
Input: Applicant A address, actual stored payment, actual stored time, deadline, auction contract AC, CFP address
Output: Complete transaction fee storage and transfer
1 User node (, ,) → TC
2 function TC()
3  matchAC(,P)
4 if<&&=then
5 return
6 else if<&&<
7 returnInsufficient transaction fee
8 else if>
9 returnStorage failure
10 end function
11 functionPay(,)
12
13 end function