Fixup: HTLC Object

This commit is contained in:
ryanRfox 2018-08-31 10:49:53 -04:00
parent 9f36ae2ad0
commit 492851edfc

View file

@ -174,23 +174,20 @@ Bob has now observed the `preimage` Alice used to "unlock" his HTLC, and he will
## **Objects**
```
htlc_obj
id // int
depositor // account object
quantity // int
symbol // string
recipient // account object
hash_algorithm // enum
preimage_hash // string
preimage_length // int
preimage_tx_id // reference to transaction object containing the preimage used for htlc_redeem
timeout_threshold // datetime
class htlc_object : public graphene::db::abstract_object<htlc_object> {
public:
static const uint8_t space_id = implementation_ids;
static const uint8_t type_id = impl_htlc_object_type;
// Constructor
Set: id = next available
Initialize other fields = NULL
return contract
account_id_type depositor;
account_id_type recipient;
asset amount;
fc::time_point_sec expiration;
asset pending_fee;
vector<unsigned char> preimage_hash;
uint16_t preimage_size;
transaction_id_type preimage_tx_id;
};
```
## **Operations**