Skip to content

refactor: Move node utility functions from main.rs to commands/node.rs #73

@AlphaB135

Description

@AlphaB135

Overview

Move all node utility functions from main.rs to commands/node.rs to clean up the main module.

Functions to Move

  • check_balance (line ~3655)
  • verify_database (line ~3959)
  • genesis_verify (line ~4508)
  • build_tx (line ~2771)
  • script_from_address (line ~2398)
  • address_validate (line ~2418)

Current Status

  • ✅ Functions moved to commands/node.rs
  • ✅ Functions removed from main.rs
  • ❌ Main.rs still has compilation errors due to missing function calls

Next Steps

  1. Fix all compilation errors in main.rs
  2. Update any calls to moved functions
  3. Ensure all imports are correct
  4. Test compilation passes

Technical Details

  • Used crate::cli::invalid() instead of invalid()
  • Made all functions public
  • Added appropriate use statements
  • Functions now properly organized in commands module

Acceptance Criteria

  • All node utility functions moved successfully
  • main.rs compiles without errors
  • commands/node.rs contains all moved functions
  • All function calls updated to use new module paths

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions