Build a Blockchain from Scratch with Rust - Rust #2.2 - Implementing Nonce and block number in System Pallet
5.0(5)
40 learners
What you'll learn
This course includes
3.3 hours of video
Certificate of completion
Access on mobile and TV
Summary
Full Transcript
In this lesson, we enhance our Rust blockchain system module by implementing functions to manage block numbers and transaction counts (nonces). You'll learn how to create and test these functions using a test-driven development approach. We’ll cover initializing the block number, incrementing it with each transaction, and managing user nonces using BTreeMap. Watch as we write and run tests to ensure our code works correctly. By the end of this video, you'll understand how to implement and test critical state management functions in your Rust blockchain system module.
This video is part of a learning journey created by WEB3DEV. To watch all videos and learn more, sign-up at https://build.w3d.community/
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.