Fixup: HTLC Object
This commit is contained in:
parent
9f36ae2ad0
commit
492851edfc
1 changed files with 13 additions and 16 deletions
29
bsip-0044.md
29
bsip-0044.md
|
@ -174,23 +174,20 @@ Bob has now observed the `preimage` Alice used to "unlock" his HTLC, and he will
|
||||||
## **Objects**
|
## **Objects**
|
||||||
|
|
||||||
```
|
```
|
||||||
htlc_obj
|
class htlc_object : public graphene::db::abstract_object<htlc_object> {
|
||||||
id // int
|
public:
|
||||||
depositor // account object
|
static const uint8_t space_id = implementation_ids;
|
||||||
quantity // int
|
static const uint8_t type_id = impl_htlc_object_type;
|
||||||
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
|
|
||||||
|
|
||||||
// Constructor
|
account_id_type depositor;
|
||||||
Set: id = next available
|
account_id_type recipient;
|
||||||
Initialize other fields = NULL
|
asset amount;
|
||||||
|
fc::time_point_sec expiration;
|
||||||
return contract
|
asset pending_fee;
|
||||||
|
vector<unsigned char> preimage_hash;
|
||||||
|
uint16_t preimage_size;
|
||||||
|
transaction_id_type preimage_tx_id;
|
||||||
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
## **Operations**
|
## **Operations**
|
||||||
|
|
Loading…
Reference in a new issue