Use BLS in more places
This commit is contained in:
parent
89dc87d890
commit
28409a60b1
@ -217,7 +217,7 @@ func createStorageMiner(ctx context.Context, api api.FullNode, peerid peer.ID) (
|
||||
return address.Undef, err
|
||||
}
|
||||
|
||||
k, err := api.WalletNew(ctx, types.KTSecp256k1)
|
||||
k, err := api.WalletNew(ctx, types.KTBLS)
|
||||
if err != nil {
|
||||
return address.Undef, err
|
||||
}
|
||||
|
@ -13,7 +13,8 @@ class FullNode extends React.Component {
|
||||
this.state = {}
|
||||
|
||||
this.loadInfo = this.loadInfo.bind(this)
|
||||
this.newScepAddr = this.newScepAddr.bind(this)
|
||||
this.newSecpAddr = this.newSecpAddr.bind(this)
|
||||
this.newBLSAddr = this.newBLSAddr.bind(this)
|
||||
this.startStorageMiner = this.startStorageMiner.bind(this)
|
||||
this.add1k = this.add1k.bind(this)
|
||||
this.explorer = this.explorer.bind(this)
|
||||
@ -61,12 +62,18 @@ class FullNode extends React.Component {
|
||||
}))
|
||||
}
|
||||
|
||||
async newScepAddr() {
|
||||
async newSecpAddr() {
|
||||
const t = "secp256k1"
|
||||
await this.props.client.call("Filecoin.WalletNew", [t])
|
||||
this.loadInfo()
|
||||
}
|
||||
|
||||
async newBLSAddr() {
|
||||
const t = "bls"
|
||||
await this.props.client.call("Filecoin.WalletNew", [t])
|
||||
this.loadInfo()
|
||||
}
|
||||
|
||||
async startStorageMiner() {
|
||||
this.props.mountWindow((onClose) => <StorageNodeInit fullRepo={this.props.node.Repo} fullConn={this.props.client} pondClient={this.props.pondClient} onClose={onClose} mountWindow={this.props.mountWindow}/>)
|
||||
}
|
||||
@ -135,7 +142,7 @@ class FullNode extends React.Component {
|
||||
{storageMine}
|
||||
</div>
|
||||
<div>
|
||||
<div>Balances: [New <a href="#" onClick={this.newScepAddr}>[Secp256k1]</a>]</div>
|
||||
<div>Balances: [New <a href="#" onClick={this.newSecpAddr}>[Secp256k1]</a> <a href="#" onClick={this.newBLSAddr}>[BLS]</a>]</div>
|
||||
<div>{addresses}</div>
|
||||
<div>{miners}</div>
|
||||
<div>{paychannels}</div>
|
||||
|
Loading…
Reference in New Issue
Block a user