![](/img/trans.png)
[英]Why does Total Issuance (balances pallet) go down when making a transaction?
所以我開始一個鏈的目的是它會有固定數量的令牌,我這樣做的方式是配置一個endowed_account : Alice在創世配置中具有一定數量的令牌。 Alice恰好也是唯一的驗證者,她也是唯一運行該節點的人。 當我嘗試從 Alice 向 Bob 發送一些代幣,比如 10 個單位時,Bob 得到了 ...
[英]Why does Total Issuance (balances pallet) go down when making a transaction?
所以我開始一個鏈的目的是它會有固定數量的令牌,我這樣做的方式是配置一個endowed_account : Alice在創世配置中具有一定數量的令牌。 Alice恰好也是唯一的驗證者,她也是唯一運行該節點的人。 當我嘗試從 Alice 向 Bob 發送一些代幣,比如 10 個單位時,Bob 得到了 ...
[英]Substrate development learning resources
我是基板開發的新手。 請參考一些從頭開始涵蓋基板開發的學習資源,並解釋基本概念。 請參考任何資源,如博客、書籍、教程或培訓視頻。 尾注:我在谷歌上搜索了很多,但發現沒有或很少有關於基板開發的資源。 ...
[英]Rejected tx with old nonce on Parity
我觀察到發送到 Parity 節點的事務沒有處理,並且顯示了錯誤消息“Rejected tx with old nonce”。 計算 sendTransaction 調用的 nonce 值,使其成為下一個 nonce 值。 該消息不適用於這種情況。 我們的 Parity 環境中有三個驗證器節點。 ...
[英]Filtering substrate logs
運行基板節點時,如何根據日志行中存在的單詞或模式過濾日志行? 我試過運行:RUST_LOG=runtime=debug cargo run -- --dev | grep 'INFO' 然而,這仍然給了我 output 的所有行,例如: ...
[英]Could not convert parameter `tx` between node and runtime: Error decoding field CheckMortality.0
我嘗試使用 polkadot-js libray 運行一個簡單的應用程序,用於在 plasm 上的 Dusty 帳戶之間傳輸令牌。 用於運行代碼段的源代碼和 package.json 可在此 git 存儲庫中找到節點版本: v12.8.2 紗線版本: 1.22.5 堆棧跟蹤: trying con ...
[英]build substrate ink contract
我嘗試按照https://substrate.dev/substrate-contracts-workshop/#/0/setup中描述的教程創建一個底層智能合約。 我已經在 Windows 10 OS 上安裝了所有依賴項。 但是,該過程在完成 3 個步驟([3/5] 優化 wasm 文件)后失敗, ...
[英]In Substrate, what's the difference between `spec_version` and `authoring_version`?
每個 Substrate 運行時都有一個RuntimeVersion 。 此 RuntimeVersion 結構中的字段指示運行時的各個方面何時更改,並且每個字段在這些文檔中都有自己的語義描述。 我不確定authoring_version是什么意思以及它應該在什么時候改變。 文檔中的描述對我來說並 ...
[英]Accessing full header and post-runtime digests in offchain worker
我知道鏈下工作人員在 wasm 環境中運行,但它是確定性 wasm 運行時的獨立環境。 鏈下工作人員可以訪問運行時 state(只讀)。 關於運行時后摘要,我相信底物會在塊導入之前剝離這些? (然后被推回)。我想這是因為運行時在塊執行期間無法知道后摘要而完成的。 總而言之,由於鏈下工作人員是塊后執 ...
[英]How do I run Substrate in a way so that transactions get validated instantly for development pauperises?
我如何在虛假驗證模式下運行Substrate以用於開發目的(在geth中是否有任何類似於--dev的東西可以立即挖掘交易)? ...
[英]Accessing chain id and genesis hash from the Substrate runtime during extrinsic execution
我正在使用 Substrate 的最新穩定版pre-v2.0-3e65111我想在處理外部數據時從 Substrate 運行時訪問鏈 ID 或創世哈希(我接受簽名的有效負載並嘗試確保有效負載針對正確的鏈) . 是否可以訪問它們? (我知道我可以用 polkadot-js 做到這一點)我看到了 tr ...
[英]Substrate transaction per second performance
嘿伙計們,我有一個與性能相關的問題。 我正在運行 2 個具有 30GB 存儲空間的 aws 實例 (t2.2xlarge)。 我正在使用默認設置在每個節點上運行 v2.0 節點(幾天前從 master 分支),我正在測試每秒可以處理多少事務。 發送 495 個(略低於默認的 500 個)余額轉賬交 ...
[英]`paint_evm::Event` is not implemented for `Event`
在向您的運行時添加模塊之后,我正在嘗試為Dothereum Runtime實現Parity Substrate paint-evm特征。 根據我之前的工作: How to implement the EVM Trait for a Substrate Runtime? 我為 Dothereum 運 ...
[英]How to implement the EVM Trait for a Substrate Runtime?
在向您的運行時添加模塊之后,我正在嘗試為Dothereum Runtime實現Parity Substrate paint-evm特征。 EVM 模塊特征定義如下:pub trait Trait: Trait + Trait { type FeeCalculator: FeeCalcul ...
[英]In Substrate, What is the difference beteween Babe, Aura, and Grandpa
Substrate 支持“可插拔共識”,因此開發人員可以從多種共識算法中進行選擇。 它標配四種算法:光環寶貝 工作證明 爺爺其中一些(例如babe 和 grandpa )甚至可以在單個節點中一起使用。 每種共識算法之間有什么區別,哪些可以或應該一起使用? ...
[英]Parity Error: It doesn't connect to Volta testnetwork of EWF
我正在使用奇偶校驗設置本地節點。 每當我嘗試將客戶端連接到 Volta 時,盡管如此處所示,它只會引發錯誤。 錯誤始終相同: Spec json is invalid: missing field eip1108_transition_base at line 142 column 21 我試圖連接 ...
[英]What is the cost of event storage in substrate?
在實施鏈式邏輯時,我想知道是否要使用事件,因為它們可能會使節點花費更多的事件日志存儲空間。 這里涉及的實際存儲成本是多少? 日志是否會在某些時候自動清除? ...
[英]How to disambiguate between traits with the same name?
我正在嘗試在運行時中同時使用Assets模塊和Balances模塊。 他們都導出了Trait T::Balance 。 當我將資產模塊帶入我的特征范圍時,如下所示: 我收到以下錯誤: ...
[英]Fast forward time when writing Substrate Runtime Test
我正在用 Substrate 運行時編寫一個拍賣類型的應用程序。 在編寫測試用例時,如何快進區塊鏈時間(從<timestamp::Module<T>>::get()檢索到的內容)以便達到拍賣結束時間並測試結束邏輯? 謝謝。 ...
[英]No `kitties` module available in the extrinsics tab
我正在關注Substrate Kitties研討會。 在1/Viewing a Storage Mapping ,我無法在 Polkadot UI 的#extrinsics選項卡上訪問我的kitties模塊: 我多次嘗試重新加載它。 這是我的kitties.rs (編譯良好): use sup ...
[英]How to access the `Alice` account on a Parity Substrate developer chain?
Substrate Collectables Workshop在某些時候建議開發者鏈為Alice提供一個預先資助的帳戶。 讓我們進入Transfer應用程序,然后進行交易。 名為“Alice”的默認帳戶預先注滿了大量Units 。 但是,將 Polkadot-JS 連接到我的本地--de ...