sms verification: less block confirmations

This commit is contained in:
Jannis R 2016-11-14 12:33:29 +01:00
parent 8ce362b224
commit b1fcee73a5
No known key found for this signature in database
GPG Key ID: 0FE83946296A88A5
2 changed files with 4 additions and 4 deletions

View File

@ -64,7 +64,7 @@ export default class SendConfirmation extends Component {
if (step === 'posted') { if (step === 'posted') {
return ( return (
<div className={ styles.centered }> <div className={ styles.centered }>
<TxHash hash={ this.props.data.txHash } maxConfirmations={ 3 } /> <TxHash hash={ this.props.data.txHash } maxConfirmations={ 2 } />
<p>Please keep this window open.</p> <p>Please keep this window open.</p>
</div>); </div>);
} }
@ -98,7 +98,7 @@ export default class SendConfirmation extends Component {
.then((txHash) => { .then((txHash) => {
onData({ txHash: txHash }); onData({ txHash: txHash });
this.setState({ step: 'posted' }); this.setState({ step: 'posted' });
return waitForConfirmations(api, txHash, 3); return waitForConfirmations(api, txHash, 2);
}) })
.then(() => { .then(() => {
onSuccess(); onSuccess();

View File

@ -79,7 +79,7 @@ export default class SendRequest extends Component {
if (step === 'posted') { if (step === 'posted') {
return ( return (
<div className={ styles.centered }> <div className={ styles.centered }>
<TxHash hash={ this.props.data.txHash } maxConfirmations={ 3 } /> <TxHash hash={ this.props.data.txHash } maxConfirmations={ 1 } />
<p>Please keep this window open.</p> <p>Please keep this window open.</p>
</div>); </div>);
} }
@ -116,7 +116,7 @@ export default class SendRequest extends Component {
.then((txHash) => { .then((txHash) => {
onData({ txHash: txHash }); onData({ txHash: txHash });
this.setState({ step: 'posted' }); this.setState({ step: 'posted' });
return waitForConfirmations(api, txHash, 3); return waitForConfirmations(api, txHash, 1);
}); });
} }