找到约 9 条结果

文章 Jolt 速度提升 6 倍——而我们才刚刚开始

经过六个月的工作,Jolt 现在完全集成了 [Twist and Shout](https://learnblockchain.cn/article/14456/) 内存检查参数。这[解锁了](https://x.com/SuccinctJT/status/1882435762190504143): - 在 [**32 核 CPU**](https://www.cpubenchmark.net/cpu.php?cpu=AMD+Ryzen+Threadripper+PRO+7...

文章 optimism sequencer背后的魔法(二):op-stack中区块的传递

原文链接:https://github.com/joohhnnn/Understanding-Optimism-Codebase-CN/blob/main/sequencer/01-how-block-sync.md 作者:[joohhnnn](https://github.com/joohhnnn) # optimism中区块的传递 区块的传递是整个optimism rollup系统中较为重要的概念,在这一章节,我们...

文章 Web3系列教程之入门篇---11. DAO

... uint256 NFTPrice = 0.1 ether; /// @dev purchase() accepts ETH and marks the owner of the given tokenId as the caller address /// @param _tokenId - the fake NFT token Id to purchase function purchase(uint256 _tokenId) external payable { require(msg.value == NFTPrice, "...

文章 如何构建自己的索引器和用于合约部署详情的 API

...tm_source=internal&utm_campaign=guides&utm_content=how-to-build-an-indexer-and-api-for-smart-contract-deployments) - 对 [智能合约](https://learnblockchain.cn/article/11180) 和 [Solidity](https://learnblockchain.cn/article/11577) 的基本知识 - JavaScript 编程的基础知识 ## Streams ...

文章 Ethernaut 题库闯关 #4 — Telephone

...的[区块和交易属性](https://learnblockchain.cn/docs/solidity/units-and-global-variables.html#index-2)文档页,可以找到他们的定义: - `tx.origin` (`address`): 交易的发起者(完整的调用链) - `msg.sender` (`address`): 消息的发送者(当前调用) `tx.origin`和`...

文章 剖析go-ethereum源码--->2. ethereum node如何工作

...stack, true) defer stack.Close() // Attach to the newly started node and create the JavaScript console. client := stack.Attach() config := console.Config{ DataDir: utils.MakeDataDir(ctx), DocRoot: ctx.String(utils.JSpathFlag.Name), Client: client, Preload: utils.MakeConsolePre...

文章 在 Solidity 智能合约中调用 Chainlink 预言机获取外部数据及生成随机数

...量/自定义变量 * 返回时转换成uint256类型 */ function getRandomOnchain() public view returns(uint256){ // remix运行blockhash会报错 bytes32 randomBytes = keccak256(abi.encodePacked(block.number, msg.sender, blockhash(block.timestamp-1))); return uint256(randomBytes)...

文章 字节码与初始化代码与运行时代码,我的天哪!

...Solidity 的类型信息](https://solidity.readthedocs.io/en/v0.5.11/units-and-global-variables.html#type-information)在链上检索。用于检索此代码的 Solidity 代码是 `type(ContractName).creationCode`。 创建字节码可以通过 `getTransactionByHash` JSON RPC 调用来链下检索...

文章 区块链对银行业经营管理的影响及对策分析

...管理,技术创新,商业模式 Copyright © 2019 by author(s) and Hans Publishers Inc. This work is licensed under the Creative Commons Attribution-NonCommercial International License (CC BY-NC 4.0). http://creativecommons.org/licenses/by-nc/4.0/ 1. 区块链的兴起 ...