Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit bb43e00

Browse files
committed
Merge branch 'hotfix/0.11.2'
2 parents de2981f + d2ee0e7 commit bb43e00

File tree

6 files changed

+22
-25
lines changed

6 files changed

+22
-25
lines changed

app/js/account/store/account/actions.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { authorizationHeaderValue, btcToSatoshis, encrypt,
66
getBitcoinPrivateKeychain,
77
getIdentityOwnerAddressNode,
88
getBitcoinAddressNode } from '../../../utils'
9+
import roundTo from 'round-to'
910
import * as types from './types'
1011
import log4js from 'log4js'
1112

@@ -225,6 +226,11 @@ function resetCoreWithdrawal() {
225226
function withdrawBitcoinFromCoreWallet(coreWalletWithdrawUrl, recipientAddress, amount, coreAPIPassword) {
226227
return dispatch => {
227228
dispatch(withdrawingCoreBalance(recipientAddress, amount))
229+
230+
const satoshisAmount = btcToSatoshis(amount)
231+
const roundedSatoshiAmount = roundTo(satoshisAmount, 0)
232+
logger.debug(`withdrawBitcoinFromCoreWallet: ${roundedSatoshiAmount} satoshis to ${recipientAddress}`)
233+
228234
const requestHeaders = {
229235
'Accept': 'application/json',
230236
'Content-Type': 'application/json',
@@ -234,7 +240,7 @@ function withdrawBitcoinFromCoreWallet(coreWalletWithdrawUrl, recipientAddress,
234240
const requestBody = JSON.stringify({
235241
address: recipientAddress,
236242
min_confs: 0,
237-
amount: btcToSatoshis(amount)
243+
amount: roundedSatoshiAmount
238244
})
239245

240246
fetch(coreWalletWithdrawUrl, {

app/js/components/InputGroup.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ class InputGroup extends Component {
44
static propTypes = {
55
label: PropTypes.string.isRequired,
66
placeholder: PropTypes.string,
7+
step: PropTypes.number,
78
name: PropTypes.string,
89
data: PropTypes.object,
910
onChange: PropTypes.func,
@@ -19,10 +20,14 @@ class InputGroup extends Component {
1920
let value = '',
2021
type = "text",
2122
disabled = false,
22-
required = false
23+
required = false,
24+
step = 1
2325
if (this.props.data && this.props.name) {
2426
value = this.props.data[this.props.name]
2527
}
28+
if (this.props.step) {
29+
step = this.props.step
30+
}
2631
if (this.props.type) {
2732
type = this.props.type
2833
}
@@ -62,6 +67,7 @@ class InputGroup extends Component {
6267
className={inputClass}
6368
type={type}
6469
required={required}
70+
step={step}
6571
placeholder={
6672
this.props.placeholder ? this.props.placeholder : this.props.label
6773
}

app/js/wallet/SendPage.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { AccountActions } from '../account/store/account'
66

77
import {
88
broadcastTransaction, decryptPrivateKeychain, getNetworkFee,
9-
getBitcoinPrivateKeychain, getUtxo,
9+
getBitcoinPrivateKeychain, getUtxo
1010
} from '../utils'
1111
import Alert from '../components/Alert'
1212
import InputGroup from '../components/InputGroup'
@@ -84,7 +84,7 @@ class SendPage extends Component {
8484
parseFloat(this.state.amount), this.props.coreAPIPassword)
8585
return // TODO temporary until we switch back to built in wallet
8686

87-
const password = this.state.password
87+
const password = this.state.password
8888

8989

9090
// FIXME this needs to be written to use our BIP44 compliant wallet structure
@@ -192,7 +192,7 @@ class SendPage extends Component {
192192
required={true}/>
193193
<InputGroup data={this.state} onChange={this.onValueChange} name="amount"
194194
label="Amount" placeholder="0.937" className="wallet-form" type="number"
195-
required={true}/>
195+
required={true} step={0.000001} />
196196
<InputGroup data={this.state} onChange={this.onValueChange}
197197
name="password" label="Password"
198198
placeholder="Password" type="password" required={true}/>

native/macos/Blockstack/Blockstack/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>0.11.1</string>
20+
<string>0.11.2</string>
2121
<key>CFBundleURLTypes</key>
2222
<array>
2323
<dict>
@@ -30,7 +30,7 @@
3030
</dict>
3131
</array>
3232
<key>CFBundleVersion</key>
33-
<string>48</string>
33+
<string>49</string>
3434
<key>LSApplicationCategoryType</key>
3535
<string>public.app-category.utilities</string>
3636
<key>LSMinimumSystemVersion</key>

native/macos/build_blockstack_virtualenv.sh

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,10 @@ pip install cryptography --only-binary cryptography
3434
echo "Build statically-linked scrypt..."
3535
PYSCRYPT_NO_LINK_FLAGS="1" LDFLAGS="/usr/local/opt/openssl/lib/libcrypto.a /usr/local/opt/openssl/lib/libssl.a" CFLAGS="-I/usr/local/opt/openssl/include" pip install git+https://github.com/larrysalibra/py-scrypt --no-use-wheel
3636

37-
echo "Installing latest virtualchain..."
3837

39-
pip install --upgrade git+https://github.com/blockstack/virtualchain.git@c2f42e3a03d3d49d6e7d6fc7f5828a319b7a58e4
38+
echo "Installing blockstack-core..."
4039

41-
echo "Installing lastest jsontokens-py"
42-
43-
pip install --upgrade git+https://github.com/blockstack/jsontokens-py.git@0a6134820ee6929e7f00c62b331f5439d38b6b17
44-
45-
echo "Installing latest blockstack-profiles..."
46-
47-
pip install --upgrade git+https://github.com/blockstack/blockstack-profiles-py.git@103783798df78cf0f007801e79ec6298f00b2817
48-
49-
echo "Installing latest blockstack-zones..."
50-
51-
pip install --upgrade git+https://github.com/blockstack/zone-file-py.git@00d801b8c1d2d5024eec80dd6531ab8441742127
52-
53-
echo "Installing latest blockstack..."
54-
55-
pip install --upgrade git+https://github.com/blockstack/blockstack-core.git@cc16fff34c37dd52c10522668beddc215b6b09e8
40+
pip install --upgrade git+https://github.com/blockstack/blockstack-core.git@50a64766e6a4212ba25f74a210a35c0bf0b2bf93
5641

5742
echo "Blockstack virtual environment created."
5843

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blockstack-portal",
3-
"version": "0.11.1",
3+
"version": "0.11.2",
44
"author": "Blockstack Inc <admin@blockstack.com>",
55
"description": "The Blockstack browser portal",
66
"license": "MPL-2.0",

0 commit comments

Comments
 (0)