Parity
平價私鏈如何入金賬戶?
在開始使用自定義鏈進行平價時,我在為賬戶注資時遇到問題。我的 json 文件是
{ "name": "開發鏈", “引擎”: { “即時密封”:空 }, “參數”:{ "gasLimitBoundDivisor": "0x0400", "accountStartNonce": "0x0", "maximumExtraDataSize": "0x20", "minGasLimit": "0x1388", “networkID”:“0x11”, “註冊商”:“0x0000000000000000000000000000000000001337”, “eip150Transition”:“0x0”, “eip160Transition”:“0x0”, “eip161abcTransition”:“0x0”, “eip161dTransition”:“0x0”, “eip155Transition”:“0x0”, "eip98Transition": "0x7fffffffffffff", “eip86Transition”:“0x7ffffffffffff”, “最大程式碼大小”:24576, "maxCodeSizeTransition": "0x0", “eip140Transition”:“0x0”, “eip211Transition”:“0x0”, “eip214Transition”:“0x0”, “eip658Transition”:“0x0”, “wasmActivationTransition”:“0x0” }, “創世紀”:{ “海豹”: { “通用”:“0x0” }, “難度”:“0x20000”, “作者”:“0x00000000000000000000000000000000000000000”, “時間戳”:“0x00”, "parentHash": "0x000000000000000000000000000000000000000000000000000000000000000000", “額外數據”:“0x”, “gasLimit”:“0x7A1200” }, “帳戶”:{ “00000000000000000000000000000000000000001”:{“餘額”:“1”,“內置”:{“名稱”:“ecrecover”,“定價”:{“線性”:{“基礎”:3000,“字”:0}}} }, “00000000000000000000000000000000000000002”:{“餘額”:“1”,“內置”:{“名稱”:“sha256”,“定價”:{“線性”:{“基礎”:60,“字”:12}}} }, “00000000000000000000000000000000000000003”:{“餘額”:“1”,“內置”:{“名稱”:“ripemd160”,“定價”:{“線性”:{“基礎”:600,“單詞”:120}}} }, “00000000000000000000000000000000000000004”:{“餘額”:“1”,“內置”:{“名稱”:“身份”,“定價”:{“線性”:{“基礎”:15,“單詞”:3 } } } }, “0x1f9945a4DBe3851beDc787434d2A63dd44303f77”:{“餘額”:“10”}, “0x68Ff636CA053Adb00804923ef1e23bA729760cf6”:{“餘額”:“12”}, “0x14fE6Fc199DdaB2b94b8d4bf8664c86a4d275711”:{“餘額”:“13”} } }
這是基於這個例子。
我用 . 開始我的本地奇偶校驗節點
parity --chain parity-dev.json --unsafe-expose --jsonrpc-cors="all"
。但是,每當我使用 metamask 連接到 parity 時,所有帳戶(0x1f9945a4DBe3851beDc787434d2A63dd44303f77
和0x68Ff636CA053Adb00804923ef1e23bA729760cf6
)0x14fE6Fc199DdaB2b94b8d4bf8664c86a4d275711
都沒有顯示任何餘額。同樣,當我打開平價 UI 並檢查錢包時,我沒有看到任何帳戶:這是我在 parity ui 錢包中看到的內容(
PARITY-DEV.JSON
右上角的註釋):
結果發現餘額在wei這就是為什麼它沒有出現。我改為
"0x1f9945a4DBe3851beDc787434d2A63dd44303f77": { "balance": "10" },
("0x1f9945a4DBe3851beDc787434d2A63dd44303f77": { "balance": "100000000000000000" },
添加了 18 個零),現在一切正常。在 gitter 頻道上向@tbaut 大喊:https ://gitter.im/paritytech/parity?at=5b5f2cb8d4527523f640622e