Skip to content

Commit

Permalink
Minor nits
Browse files Browse the repository at this point in the history
  • Loading branch information
zathras-crypto committed Jun 19, 2016
1 parent 8de1c41 commit 3a8a193
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
22 changes: 12 additions & 10 deletions src/omnicore/doc/rpc-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,13 @@ Create and broadcast a send-to-owners transaction.

**Arguments:**

| Name | Type | Presence | Description |
|---------------------|---------|----------|----------------------------------------------------------------------------------------------|
| `fromaddress` | string | required | the address to send from |
| `propertyid` | number | required | the identifier of the tokens to distribute |
| `amount` | string | required | the amount to distribute |
| `redeemaddress` | string | optional | an address that can spend the transaction dust (sender by default) |
| Name | Type | Presence | Description |
|------------------------|---------|----------|----------------------------------------------------------------------------------------------|
| `fromaddress` | string | required | the address to send from |
| `propertyid` | number | required | the identifier of the tokens to distribute |
| `amount` | string | required | the amount to distribute |
| `redeemaddress` | string | optional | an address that can spend the transaction dust (sender by default) |
| `distributionproperty` | number | optional | the identifier of the property holders to distribute to |

**Result:**
```js
Expand Down Expand Up @@ -1721,10 +1722,11 @@ Creates the payload for a send-to-owners transaction.

**Arguments:**

| Name | Type | Presence | Description |
|---------------------|---------|----------|----------------------------------------------------------------------------------------------|
| `propertyid` | number | required | the identifier of the token to distribute |
| `amount` | string | required | the amount to distribute |
| Name | Type | Presence | Description |
|------------------------|---------|----------|----------------------------------------------------------------------------------------------|
| `propertyid` | number | required | the identifier of the token to distribute |
| `amount` | string | required | the amount to distribute |
| `distributionproperty` | number | optional | the identifier of the property holders to distribute to |

**Result:**
```js
Expand Down
2 changes: 1 addition & 1 deletion src/omnicore/rpcpayload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Value omni_createpayload_sto(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 2 || params.size() > 3)
throw runtime_error(
"omni_createpayload_sto propertyid \"amount\"\n"
"omni_createpayload_sto propertyid \"amount\" ( distributionproperty )\n"

"\nCreates the payload for a send-to-owners transaction.\n"

Expand Down
2 changes: 1 addition & 1 deletion src/omnicore/rpctx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ Value omni_sendsto(const Array& params, bool fHelp)
"2. propertyid (number, required) the identifier of the tokens to distribute\n"
"3. amount (string, required) the amount to distribute\n"
"4. redeemaddress (string, optional) an address that can spend the transaction dust (sender by default)\n"
"5. distributionproperty (number, required) the identifier of the property holders to distribute to\n"
"5. distributionproperty (number, optional) the identifier of the property holders to distribute to\n"

"\nResult:\n"
"\"hash\" (string) the hex-encoded transaction hash\n"
Expand Down
2 changes: 1 addition & 1 deletion src/omnicore/tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ bool CMPTransaction::interpret_SendToOwners()
PrintToLog("\t property: %d (%s)\n", property, strMPProperty(property));
PrintToLog("\t value: %s\n", FormatMP(property, nValue));
if (version > MP_TX_PKT_V1) {
PrintToLog("\t distributionproperty: %s\n", FormatMP(distribution_property, nValue));
PrintToLog("\t distributionproperty: %d (%s)\n", distribution_property, strMPProperty(distribution_property));
}
}

Expand Down

0 comments on commit 3a8a193

Please sign in to comment.