HomePhabricator

Use a uint256 for bnChainWork
1657c4bc4958Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Use a uint256 for bnChainWork

Every block index entry currently requires a separately-allocated
CBigNum. By replacing them with uint256, it's just 32 bytes extra
in CBlockIndex itself.

This should save us a few megabytes in RAM, and less allocation
overhead.

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Mar 28 2013, 22:51
Pieter Wuille <pieterw@google.com>Committed on Apr 12 2013, 10:17
deadalnixPushed on May 14 2017, 22:04
Parents
rABC2aa462ec30c3: Merge pull request #2514 from TheBlueMatt/master
Branches
Unknown
Tags
Unknown

Event Timeline

Pieter Wuille <pieterw@google.com> committed rABC1657c4bc4958: Use a uint256 for bnChainWork (authored by Pieter Wuille <pieter.wuille@gmail.com>).Apr 12 2013, 10:17