Scorum
Public Member Functions | Public Attributes | List of all members
scorum::protocol::delegate_scorumpower_operation Struct Reference

Delegates scorumpower from one account to the other. More...

#include <scorum_operations.hpp>

Inheritance diagram for scorum::protocol::delegate_scorumpower_operation:
scorum::protocol::base_operation

Public Member Functions

void get_required_active_authorities (flat_set< account_name_type > &a) const
 
void validate () const
 
- Public Member Functions inherited from scorum::protocol::base_operation
void get_required_authorities (std::vector< authority > &) const
 
void get_required_active_authorities (flat_set< account_name_type > &) const
 
void get_required_posting_authorities (flat_set< account_name_type > &) const
 
void get_required_owner_authorities (flat_set< account_name_type > &) const
 
bool is_virtual () const
 
void validate () const
 

Public Attributes

account_name_type delegator
 The account delegating scorumpower. More...
 
account_name_type delegatee
 The account receiving scorumpower. More...
 
asset scorumpower = asset(0, SP_SYMBOL)
 The amount of scorumpower delegated. More...
 

Detailed Description

Delegates scorumpower from one account to the other.

The scorumpower are still owned by the original account, but content voting rights and bandwidth allocation are transferred to the receiving account. This sets the delegation to scorumpower, increasing it or decreasing it as needed. (i.e. a delegation of 0 removes the delegation) When a delegation is removed the shares are placed in limbo for a week to prevent a satoshi of SP from voting on the same content twice.

Definition at line 722 of file scorum_operations.hpp.

Member Function Documentation

◆ get_required_active_authorities()

void scorum::protocol::delegate_scorumpower_operation::get_required_active_authorities ( flat_set< account_name_type > &  a) const
inline

Definition at line 728 of file scorum_operations.hpp.

◆ validate()

void scorum::protocol::delegate_scorumpower_operation::validate ( ) const

Definition at line 272 of file scorum_operations.cpp.

Member Data Documentation

◆ delegatee

account_name_type scorum::protocol::delegate_scorumpower_operation::delegatee

The account receiving scorumpower.

Definition at line 725 of file scorum_operations.hpp.

◆ delegator

account_name_type scorum::protocol::delegate_scorumpower_operation::delegator

The account delegating scorumpower.

Definition at line 724 of file scorum_operations.hpp.

◆ scorumpower

asset scorum::protocol::delegate_scorumpower_operation::scorumpower = asset(0, SP_SYMBOL)

The amount of scorumpower delegated.

Definition at line 726 of file scorum_operations.hpp.


The documentation for this struct was generated from the following files: